diff --git a/.gitignore b/.gitignore index 1ef280e1..8b1228a8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,10 @@ -.prism.log +*.gem .idea/ +.prism.log .ruby-lsp/ .yardoc/ -doc/ -sorbet/ Brewfile.lock.json bin/tapioca -*.gem +doc/ +sorbet/* +!/sorbet/config diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f4710698..c412e974 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.28" + ".": "0.1.0-alpha.29" } \ No newline at end of file diff --git a/.rubocop.yml b/.rubocop.yml index ec407bea..8cddf3f5 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -10,6 +10,10 @@ AllCops: SuggestExtensions: false TargetRubyVersion: 3.1.0 +# Whether MFA is required or not should be left to the token configuration. +Gemspec/RequireMFA: + Enabled: false + # Don't require this extra line break, it can be excessive. Layout/EmptyLineAfterGuardClause: Enabled: false @@ -68,6 +72,10 @@ Lint/EmptyInPattern: Exclude: - "test/**/*" +Lint/MissingCopEnableDirective: + Exclude: + - "examples/**/*.rb" + Lint/MissingSuper: Exclude: - "**/*.rbi" @@ -79,6 +87,12 @@ Lint/UnusedMethodArgument: Metrics/AbcSize: Enabled: false +Metrics/BlockLength: + AllowedPatterns: + - assert_pattern + Exclude: + - "**/*.rbi" + Metrics/ClassLength: Enabled: false @@ -88,6 +102,10 @@ Metrics/CyclomaticComplexity: Metrics/MethodLength: Enabled: false +Metrics/ModuleLength: + Exclude: + - "**/*.rbi" + Metrics/ParameterLists: Enabled: false @@ -98,10 +116,18 @@ Naming/BlockForwarding: Exclude: - "**/*.rbi" +Naming/ClassAndModuleCamelCase: + Exclude: + - "**/*.rbi" + Naming/MethodParameterName: Exclude: - "**/*.rbi" +Naming/PredicateName: + Exclude: + - "**/*.rbi" + Naming/VariableNumber: Enabled: false @@ -215,3 +241,8 @@ Style/StringLiterals: # Prefer explicit symbols for clarity; you can search for `:the_symbol`. Style/SymbolArray: EnforcedStyle: brackets + +# This option makes examples harder to read for ruby novices. +Style/SymbolProc: + Exclude: + - "examples/**/*.rb" diff --git a/.solargraph.yml b/.solargraph.yml new file mode 100644 index 00000000..74911df2 --- /dev/null +++ b/.solargraph.yml @@ -0,0 +1,10 @@ +--- +max_files: 0 +include: + - '*.gemspec' + - 'Rakefile' + - 'examples/**/*.rb' + - 'lib/**/*.rb' + - 'test/orb/test_helper.rb' +exclude: + - 'rbi/**/*' diff --git a/.stats.yml b/.stats.yml index 85c391c8..d1b66331 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-aeb94d91af916dbff0132ee7c4501df9223609b19fef0398a1a495e7a432ee36.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-36a6db97756e8658369c9af3c0ac532ecacb032e5b8f6211094dcb4052943ff3.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index a9001d2a..94af7d36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,34 @@ # Changelog +## 0.1.0-alpha.29 (2025-03-21) + +Full Changelog: [v0.1.0-alpha.28...v0.1.0-alpha.29](https://github.com/orbcorp/orb-ruby/compare/v0.1.0-alpha.28...v0.1.0-alpha.29) + +### ⚠ BREAKING CHANGES + +* support `for item in stream` style iteration on `Stream`s ([#173](https://github.com/orbcorp/orb-ruby/issues/173)) + +### Features + +* support `for item in stream` style iteration on `Stream`s ([#173](https://github.com/orbcorp/orb-ruby/issues/173)) ([588fd1d](https://github.com/orbcorp/orb-ruby/commit/588fd1de378ca262b9db8b368386a7aab7b2a36f)) + + +### Bug Fixes + +* pages should be able to accept non-converter models ([#176](https://github.com/orbcorp/orb-ruby/issues/176)) ([99b36e2](https://github.com/orbcorp/orb-ruby/commit/99b36e212b42bcc173fb6b37991f4d82731ef507)) + + +### Chores + +* add `[@yieldparam](https://github.com/yieldparam)` to yard doc ([#170](https://github.com/orbcorp/orb-ruby/issues/170)) ([b6918c1](https://github.com/orbcorp/orb-ruby/commit/b6918c1152a904e29ce040c5dd2cd5e5cb056191)) +* disable overloads in `*.rbs` definitions for readable LSP errors ([#172](https://github.com/orbcorp/orb-ruby/issues/172)) ([44a5b19](https://github.com/orbcorp/orb-ruby/commit/44a5b194dfcbea531ee4bdf63a34008304f9c878)) +* document Client's concurrency capability ([#169](https://github.com/orbcorp/orb-ruby/issues/169)) ([99f36ef](https://github.com/orbcorp/orb-ruby/commit/99f36efba8586dae3cde19d103254335142e8341)) +* ignore some spurious linter warnings and formatting changes ([#168](https://github.com/orbcorp/orb-ruby/issues/168)) ([0925835](https://github.com/orbcorp/orb-ruby/commit/0925835eceda886f027946a4368ddc534f5c3ce0)) +* **internal:** codegen related update ([#174](https://github.com/orbcorp/orb-ruby/issues/174)) ([4b4ddd6](https://github.com/orbcorp/orb-ruby/commit/4b4ddd67f9c8f51e786dd6cd902f0e4677942945)) +* **internal:** version bump ([#166](https://github.com/orbcorp/orb-ruby/issues/166)) ([421c2f7](https://github.com/orbcorp/orb-ruby/commit/421c2f770dcb42147266c5630f0919f247d21b9c)) +* switch to prettier looking sorbet annotations ([#175](https://github.com/orbcorp/orb-ruby/issues/175)) ([19ab2d6](https://github.com/orbcorp/orb-ruby/commit/19ab2d6ba75461fd1f96598b480932e152407157)) +* use multi-line formatting style for really long lines ([#171](https://github.com/orbcorp/orb-ruby/issues/171)) ([7b3ad6e](https://github.com/orbcorp/orb-ruby/commit/7b3ad6e5dbee813dfc0a7f1ea04e01a48e31dd11)) + ## 0.1.0-alpha.28 (2025-03-18) Full Changelog: [v0.1.0-alpha.27...v0.1.0-alpha.28](https://github.com/orbcorp/orb-ruby/compare/v0.1.0-alpha.27...v0.1.0-alpha.28) diff --git a/Gemfile.lock b/Gemfile.lock index 017ff7df..affaad2c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - orb (0.1.0.pre.alpha.28) + orb (0.1.0.pre.alpha.29) connection_pool GEM diff --git a/README.md b/README.md index 84d22f22..8021caaa 100644 --- a/README.md +++ b/README.md @@ -136,6 +136,8 @@ orb.customers.create( ## Sorbet Support +**This library emits an intentional warning under the [`tapioca` toolchain](https://github.com/Shopify/tapioca)**. This is normal, and does not impact functionality. + This library is written with [Sorbet type definitions](https://sorbet.org/docs/rbi). However, there is no runtime dependency on the `sorbet-runtime`. What this means is that while you can use Sorbet to type check your code statically, and benefit from the [Sorbet Language Server](https://sorbet.org/docs/lsp) in your editor, there is no runtime type checking and execution overhead from Sorbet itself. @@ -150,6 +152,18 @@ model = CustomerCreateParams.new(email: "example-customer@withorb.com", name: "M orb.customers.create(**model) ``` +## Advanced + +### Concurrency & Connection Pooling + +The `Orb::Client` instances are thread-safe, and should be re-used across multiple threads. By default, each `Client` have their own HTTP connection pool, with a maximum number of connections equal to thread count. + +When the maximum number of connections has been checked out from the connection pool, the `Client` will wait for an in use connection to become available. The queue time for this mechanism is accounted for by the per-request timeout. + +Unless otherwise specified, other classes in the SDK do not have locks protecting their underlying data structure. + +Currently, `Orb::Client` instances are only fork-safe if there are no in-flight HTTP requests. + ## Versioning This package follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions. As the library is in initial development and has a major version of `0`, APIs may change at any time. diff --git a/Rakefile b/Rakefile index 7fbac7a5..5f3bd994 100644 --- a/Rakefile +++ b/Rakefile @@ -35,24 +35,25 @@ multitask(:syntax_tree) do inplace = /darwin|bsd/ =~ RUBY_PLATFORM ? %w[-i''] : %w[-i] uuid = SecureRandom.uuid - # `syntax_tree` has trouble with `rbs`'s class aliases + # `syntax_tree` has trouble with `rbs`'s class & module aliases sed = xargs + %w[sed -E] + inplace + %w[-e] - # annotate class aliases with a unique comment - pre = sed + ["s/class ([^ ]+) = (.+$)/# #{uuid}\\n\\1: \\2/", "--"] + # annotate unprocessable aliases with a unique comment + pre = sed + ["s/(class|module) ([^ ]+) = (.+$)/# \\1 #{uuid}\\n\\2: \\3/", "--"] fmt = xargs + %w[stree write --plugin=rbs --] - # remove the unique comment and transform class aliases to type aliases + # remove the unique comment and unprocessable aliases to type aliases subst = <<~SED - s/# #{uuid}// + s/# (class|module) #{uuid}/\\1/ t l1 b + : l1 - n - s/([^ :]+): (.+$)/class \\1 = \\2/ + N + s/\\n *([^:]+): (.+)$/ \\1 = \\2/ SED - # 1. delete the unique comment - # 2. if deletion happened, branch to label `l1`, else continue - # 3. transform the class alias to a type alias at label `l1` + # for each line: + # 1. try transform the unique comment into `class | module`, if successful, branch to label `l1`. + # 2. at label `l1`, join previously annotated line with `class | module` information. pst = sed + [subst, "--"] # transform class aliases to type aliases, which syntax tree has no trouble with @@ -70,7 +71,7 @@ multitask(:steep) do end multitask(:sorbet) do - sh(*%w[srb typecheck -- .], chdir: "./rbi") + sh(*%w[srb typecheck]) end file("sorbet/tapioca") do diff --git a/examples/.keep b/examples/.keep new file mode 100644 index 00000000..d8c73e93 --- /dev/null +++ b/examples/.keep @@ -0,0 +1,4 @@ +File generated from our OpenAPI spec by Stainless. + +This directory can be used to store example files demonstrating usage of this SDK. +It is ignored by Stainless code generation and its content (other than this keep file) won't be touched. \ No newline at end of file diff --git a/lib/orb.rb b/lib/orb.rb index 8062aaf6..ec71d656 100644 --- a/lib/orb.rb +++ b/lib/orb.rb @@ -1,5 +1,20 @@ # frozen_string_literal: true +# We already ship the preferred sorbet manifests in the package itself. +# `tapioca` currently does not offer us a way to opt out of unnecessary compilation. +if defined?(:Tapioca) && caller_locations.any? { _1.path.end_with?("tapioca/cli.rb") } + Warning.warn( + <<~WARN + \n + ⚠️ skipped loading of "orb" gem under `tapioca`. + + This message is normal and expected if you are running a `tapioca` command, and does not impact `.rbi` generation. + \n + WARN + ) + return +end + # Standard libraries. require "cgi" require "date" diff --git a/lib/orb/base_client.rb b/lib/orb/base_client.rb index e424dc36..4ec8d462 100644 --- a/lib/orb/base_client.rb +++ b/lib/orb/base_client.rb @@ -9,14 +9,15 @@ class BaseClient MAX_REDIRECTS = 20 # rubocop:disable Style/MutableConstant - PLATFORM_HEADERS = { - "x-stainless-arch" => Orb::Util.arch, - "x-stainless-lang" => "ruby", - "x-stainless-os" => Orb::Util.os, - "x-stainless-package-version" => Orb::VERSION, - "x-stainless-runtime" => ::RUBY_ENGINE, - "x-stainless-runtime-version" => ::RUBY_ENGINE_VERSION - } + PLATFORM_HEADERS = + { + "x-stainless-arch" => Orb::Util.arch, + "x-stainless-lang" => "ruby", + "x-stainless-os" => Orb::Util.os, + "x-stainless-package-version" => Orb::VERSION, + "x-stainless-runtime" => ::RUBY_ENGINE, + "x-stainless-runtime-version" => ::RUBY_ENGINE_VERSION + } # rubocop:enable Style/MutableConstant class << self @@ -219,7 +220,7 @@ def initialize( # # @option opts [Hash{String=>String, nil}, nil] :extra_headers # - # @option opts [Hash{Symbol=>Object}, nil] :extra_body + # @option opts [Object, nil] :extra_body # # @option opts [Integer, nil] :max_retries # @@ -436,7 +437,7 @@ def request(req) decoded = Orb::Util.decode_content(response, stream: stream) case req in { stream: Class => st } - st.new(model: model, url: url, status: status, response: response, messages: decoded) + st.new(model: model, url: url, status: status, response: response, stream: decoded) in { page: Class => page } page.new(client: self, req: req, headers: response, page_data: decoded) else diff --git a/lib/orb/base_model.rb b/lib/orb/base_model.rb index 36762693..63548de6 100644 --- a/lib/orb/base_model.rb +++ b/lib/orb/base_model.rb @@ -48,7 +48,7 @@ def type_info(spec) type_info(spec.slice(:const, :enum, :union).first&.last) in Proc spec - in Orb::Converter | Class | Symbol + in Orb::Converter | Module | Symbol -> { spec } in true | false -> { Orb::BooleanModel } @@ -81,7 +81,7 @@ def coerce(target, value) else value end - in Class + in Module case target in -> { _1 <= NilClass } nil @@ -144,7 +144,7 @@ def try_strict_coerce(target, value) else [false, false, 0] end - in Class + in Module case [target, value] in [-> { _1 <= NilClass }, _] [true, nil, value.nil? ? 1 : 0] @@ -182,8 +182,6 @@ class Unknown # rubocop:disable Lint/UnusedMethodArgument - private_class_method :new - # @param other [Object] # # @return [Boolean] @@ -233,8 +231,6 @@ def try_strict_coerce(value) class BooleanModel extend Orb::Converter - private_class_method :new - # @param other [Object] # # @return [Boolean] @@ -280,8 +276,6 @@ def try_strict_coerce(value) # @api private # - # @abstract - # # A value from among a specified list of options. OpenAPI enum values map to Ruby # values in the SDK as follows: # @@ -294,99 +288,89 @@ def try_strict_coerce(value) # values safely. # # @example - # ```ruby - # # `billing_cycle_relative_date` is a `Orb::Models::BillingCycleRelativeDate` - # case billing_cycle_relative_date - # when Orb::Models::BillingCycleRelativeDate::START_OF_TERM - # # ... - # when Orb::Models::BillingCycleRelativeDate::END_OF_TERM - # # ... - # else - # puts(billing_cycle_relative_date) - # end - # ``` + # # `billing_cycle_relative_date` is a `Orb::Models::BillingCycleRelativeDate` + # case billing_cycle_relative_date + # when Orb::Models::BillingCycleRelativeDate::START_OF_TERM + # # ... + # when Orb::Models::BillingCycleRelativeDate::END_OF_TERM + # # ... + # else + # puts(billing_cycle_relative_date) + # end # # @example - # ```ruby - # case billing_cycle_relative_date - # in :start_of_term - # # ... - # in :end_of_term - # # ... - # else - # puts(billing_cycle_relative_date) - # end - # ``` - class Enum - extend Orb::Converter - - class << self - # All of the valid Symbol values for this enum. - # - # @return [Array] - def values = (@values ||= constants.map { const_get(_1) }) + # case billing_cycle_relative_date + # in :start_of_term + # # ... + # in :end_of_term + # # ... + # else + # puts(billing_cycle_relative_date) + # end + module Enum + include Orb::Converter - # @api private - # - # Guard against thread safety issues by instantiating `@values`. - private def finalize! = values - end + # All of the valid Symbol values for this enum. + # + # @return [Array] + def values = (@values ||= constants.map { const_get(_1) }) - private_class_method :new + # @api private + # + # Guard against thread safety issues by instantiating `@values`. + private def finalize! = values # @param other [Object] # # @return [Boolean] - def self.===(other) = values.include?(other) + def ===(other) = values.include?(other) # @param other [Object] # # @return [Boolean] - def self.==(other) - other.is_a?(Class) && other <= Orb::Enum && other.values.to_set == values.to_set + def ==(other) + other.is_a?(Module) && other.singleton_class.ancestors.include?(Orb::Enum) && other.values.to_set == values.to_set end - class << self - # @api private - # - # @param value [String, Symbol, Object] - # - # @return [Symbol, Object] - def coerce(value) - case value - in Symbol | String if values.include?(val = value.to_sym) - val - else - value - end + # @api private + # + # @param value [String, Symbol, Object] + # + # @return [Symbol, Object] + def coerce(value) + case value + in Symbol | String if values.include?(val = value.to_sym) + val + else + value end + end - # @!parse - # # @api private - # # - # # @param value [Symbol, Object] - # # - # # @return [Symbol, Object] - # def dump(value) = super + # @!parse + # # @api private + # # + # # @param value [Symbol, Object] + # # + # # @return [Symbol, Object] + # def dump(value) = super - # @api private - # - # @param value [Object] - # - # @return [Array(true, Object, nil), Array(false, Boolean, Integer)] - def try_strict_coerce(value) - return [true, value, 1] if values.include?(value) + # @api private + # + # @param value [Object] + # + # @return [Array(true, Object, nil), Array(false, Boolean, Integer)] + def try_strict_coerce(value) + return [true, value, 1] if values.include?(value) - case value - in Symbol | String if values.include?(val = value.to_sym) - [true, val, 1] + case value + in Symbol | String if values.include?(val = value.to_sym) + [true, val, 1] + else + case [value, values.first] + in [true | false, true | false] | [Integer, Integer] | [Symbol | String, Symbol] + [false, true, 0] else - case [value, values.first] - in [true | false, true | false] | [Integer, Integer] | [Symbol | String, Symbol] - [false, true, 0] - else - [false, false, 0] - end + [false, false, 0] end end end @@ -394,146 +378,136 @@ def try_strict_coerce(value) # @api private # - # @abstract - # # @example - # ```ruby - # # `discount` is a `Orb::Models::Discount` - # case discount - # when Orb::Models::PercentageDiscount - # puts(discount.applies_to_price_ids) - # when Orb::Models::TrialDiscount - # puts(discount.discount_type) - # when Orb::Models::UsageDiscount - # puts(discount.usage_discount) - # else - # puts(discount) - # end - # ``` + # # `discount` is a `Orb::Models::Discount` + # case discount + # when Orb::Models::PercentageDiscount + # puts(discount.applies_to_price_ids) + # when Orb::Models::TrialDiscount + # puts(discount.discount_type) + # when Orb::Models::UsageDiscount + # puts(discount.usage_discount) + # else + # puts(discount) + # end # # @example - # ```ruby - # case discount - # in { - # discount_type: :percentage, - # applies_to_price_ids: applies_to_price_ids, - # percentage_discount: percentage_discount, - # reason: reason - # } - # puts(applies_to_price_ids) - # in { - # discount_type: :trial, - # applies_to_price_ids: applies_to_price_ids, - # reason: reason, - # trial_amount_discount: trial_amount_discount - # } - # puts(reason) - # in { - # discount_type: :usage, - # applies_to_price_ids: applies_to_price_ids, - # usage_discount: usage_discount, - # reason: reason - # } - # puts(usage_discount) - # else - # puts(discount) - # end - # ``` - class Union - extend Orb::Converter + # case discount + # in { + # discount_type: :percentage, + # applies_to_price_ids: applies_to_price_ids, + # percentage_discount: percentage_discount, + # reason: reason + # } + # puts(applies_to_price_ids) + # in { + # discount_type: :trial, + # applies_to_price_ids: applies_to_price_ids, + # reason: reason, + # trial_amount_discount: trial_amount_discount + # } + # puts(reason) + # in { + # discount_type: :usage, + # applies_to_price_ids: applies_to_price_ids, + # usage_discount: usage_discount, + # reason: reason + # } + # puts(usage_discount) + # else + # puts(discount) + # end + module Union + include Orb::Converter - class << self - # @api private - # - # All of the specified variant info for this union. - # - # @return [Array] - private def known_variants = (@known_variants ||= []) + # @api private + # + # All of the specified variant info for this union. + # + # @return [Array] + private def known_variants = (@known_variants ||= []) - # @api private - # - # @return [Array] - protected def derefed_variants - @known_variants.map { |key, variant_fn| [key, variant_fn.call] } - end + # @api private + # + # @return [Array] + protected def derefed_variants + @known_variants.map { |key, variant_fn| [key, variant_fn.call] } + end - # All of the specified variants for this union. - # - # @return [Array] - def variants - derefed_variants.map(&:last) + # All of the specified variants for this union. + # + # @return [Array] + def variants + derefed_variants.map(&:last) + end + + # @api private + # + # @param property [Symbol] + private def discriminator(property) + case property + in Symbol + @discriminator = property end + end - # @api private - # - # @param property [Symbol] - private def discriminator(property) - case property + # @api private + # + # @param key [Symbol, Hash{Symbol=>Object}, Proc, Orb::Converter, Class] + # + # @param spec [Hash{Symbol=>Object}, Proc, Orb::Converter, Class] . + # + # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const + # + # @option spec [Proc] :enum + # + # @option spec [Proc] :union + # + # @option spec [Boolean] :"nil?" + private def variant(key, spec = nil) + variant_info = + case key in Symbol - @discriminator = property + [key, Orb::Converter.type_info(spec)] + in Proc | Orb::Converter | Module | Hash + [nil, Orb::Converter.type_info(key)] end - end - # @api private - # - # @param key [Symbol, Hash{Symbol=>Object}, Proc, Orb::Converter, Class] - # - # @param spec [Hash{Symbol=>Object}, Proc, Orb::Converter, Class] . - # - # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const - # - # @option spec [Proc] :enum - # - # @option spec [Proc] :union - # - # @option spec [Boolean] :"nil?" - private def variant(key, spec = nil) - variant_info = - case key - in Symbol - [key, Orb::Converter.type_info(spec)] - in Proc | Orb::Converter | Class | Hash - [nil, Orb::Converter.type_info(key)] - end - - known_variants << variant_info - end + known_variants << variant_info + end - # @api private - # - # @param value [Object] - # - # @return [Orb::Converter, Class, nil] - private def resolve_variant(value) - case [@discriminator, value] - in [_, Orb::BaseModel] - value.class - in [Symbol, Hash] - key = - if value.key?(@discriminator) - value.fetch(@discriminator) - elsif value.key?((discriminator = @discriminator.to_s)) - value.fetch(discriminator) - end + # @api private + # + # @param value [Object] + # + # @return [Orb::Converter, Class, nil] + private def resolve_variant(value) + case [@discriminator, value] + in [_, Orb::BaseModel] + value.class + in [Symbol, Hash] + key = + if value.key?(@discriminator) + value.fetch(@discriminator) + elsif value.key?((discriminator = @discriminator.to_s)) + value.fetch(discriminator) + end - key = key.to_sym if key.is_a?(String) - _, resolved = known_variants.find { |k,| k == key } - resolved.nil? ? Orb::Unknown : resolved.call - else - nil - end + key = key.to_sym if key.is_a?(String) + _, resolved = known_variants.find { |k,| k == key } + resolved.nil? ? Orb::Unknown : resolved.call + else + nil end end # rubocop:disable Style/HashEachMethods # rubocop:disable Style/CaseEquality - private_class_method :new - # @param other [Object] # # @return [Boolean] - def self.===(other) + def ===(other) known_variants.any? do |_, variant_fn| variant_fn.call === other end @@ -542,90 +516,88 @@ def self.===(other) # @param other [Object] # # @return [Boolean] - def self.==(other) - other.is_a?(Class) && other <= Orb::Union && other.derefed_variants == derefed_variants + def ==(other) + other.is_a?(Module) && other.singleton_class.ancestors.include?(Orb::Union) && other.derefed_variants == derefed_variants end - class << self - # @api private - # - # @param value [Object] - # - # @return [Object] - def coerce(value) - if (variant = resolve_variant(value)) - return Orb::Converter.coerce(variant, value) - end + # @api private + # + # @param value [Object] + # + # @return [Object] + def coerce(value) + if (variant = resolve_variant(value)) + return Orb::Converter.coerce(variant, value) + end - matches = [] + matches = [] - known_variants.each do |_, variant_fn| - variant = variant_fn.call + known_variants.each do |_, variant_fn| + variant = variant_fn.call - case Orb::Converter.try_strict_coerce(variant, value) - in [true, coerced, _] - return coerced - in [false, true, score] - matches << [score, variant] - in [false, false, _] - nil - end + case Orb::Converter.try_strict_coerce(variant, value) + in [true, coerced, _] + return coerced + in [false, true, score] + matches << [score, variant] + in [false, false, _] + nil end + end - _, variant = matches.sort! { _2.first <=> _1.first }.find { |score,| !score.zero? } - variant.nil? ? value : Orb::Converter.coerce(variant, value) + _, variant = matches.sort! { _2.first <=> _1.first }.find { |score,| !score.zero? } + variant.nil? ? value : Orb::Converter.coerce(variant, value) + end + + # @api private + # + # @param value [Object] + # + # @return [Object] + def dump(value) + if (variant = resolve_variant(value)) + return Orb::Converter.dump(variant, value) end - # @api private - # - # @param value [Object] - # - # @return [Object] - def dump(value) - if (variant = resolve_variant(value)) + known_variants.each do |_, variant_fn| + variant = variant_fn.call + if variant === value return Orb::Converter.dump(variant, value) end - - known_variants.each do |_, variant_fn| - variant = variant_fn.call - if variant === value - return Orb::Converter.dump(variant, value) - end - end - value end + value + end - # @api private - # - # @param value [Object] - # - # @return [Array(true, Object, nil), Array(false, Boolean, Integer)] - def try_strict_coerce(value) - # TODO(ruby) this will result in super linear decoding behaviour for nested unions - # follow up with a decoding context that captures current strictness levels - if (variant = resolve_variant(value)) - return Converter.try_strict_coerce(variant, value) - end + # @api private + # + # @param value [Object] + # + # @return [Array(true, Object, nil), Array(false, Boolean, Integer)] + def try_strict_coerce(value) + # TODO(ruby) this will result in super linear decoding behaviour for nested unions + # follow up with a decoding context that captures current strictness levels + if (variant = resolve_variant(value)) + return Converter.try_strict_coerce(variant, value) + end - coercible = false - max_score = 0 + coercible = false + max_score = 0 - known_variants.each do |_, variant_fn| - variant = variant_fn.call + known_variants.each do |_, variant_fn| + variant = variant_fn.call - case Orb::Converter.try_strict_coerce(variant, value) - in [true, coerced, score] - return [true, coerced, score] - in [false, true, score] - coercible = true - max_score = [max_score, score].max - in [false, false, _] - nil - end + case Orb::Converter.try_strict_coerce(variant, value) + in [true, coerced, score] + return [true, coerced, score] + in [false, true, score] + coercible = true + max_score = [max_score, score].max + in [false, false, _] + nil end - - [false, coercible, max_score] end + + [false, coercible, max_score] end # rubocop:enable Style/CaseEquality @@ -640,9 +612,18 @@ def try_strict_coerce(value) class ArrayOf include Orb::Converter - private_class_method :new - - def self.[](...) = new(...) + # @param type_info [Hash{Symbol=>Object}, Proc, Orb::Converter, Class] + # + # @param spec [Hash{Symbol=>Object}] . + # + # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const + # + # @option spec [Proc] :enum + # + # @option spec [Proc] :union + # + # @option spec [Boolean] :"nil?" + def self.[](type_info, spec = {}) = new(type_info, spec) # @param other [Object] # @@ -763,9 +744,18 @@ def initialize(type_info, spec = {}) class HashOf include Orb::Converter - private_class_method :new - - def self.[](...) = new(...) + # @param type_info [Hash{Symbol=>Object}, Proc, Orb::Converter, Class] + # + # @param spec [Hash{Symbol=>Object}] . + # + # @option spec [NilClass, TrueClass, FalseClass, Integer, Float, Symbol] :const + # + # @option spec [Proc] :enum + # + # @option spec [Proc] :union + # + # @option spec [Boolean] :"nil?" + def self.[](type_info, spec = {}) = new(type_info, spec) # @param other [Object] # @@ -891,14 +881,12 @@ def initialize(type_info, spec = {}) # @abstract # # @example - # ```ruby - # # `amount_discount` is a `Orb::Models::AmountDiscount` - # amount_discount => { - # amount_discount: amount_discount, - # applies_to_price_ids: applies_to_price_ids, - # discount_type: discount_type - # } - # ``` + # # `amount_discount` is a `Orb::Models::AmountDiscount` + # amount_discount => { + # amount_discount: amount_discount, + # applies_to_price_ids: applies_to_price_ids, + # discount_type: discount_type + # } class BaseModel extend Orb::Converter @@ -954,7 +942,7 @@ def defaults = (@defaults ||= {}) private def add_field(name_sym, required:, type_info:, spec:) type_fn, info = case type_info - in Proc | Class | Orb::Converter + in Proc | Module | Orb::Converter [Orb::Converter.type_info({**spec, union: type_info}), spec] in Hash [Orb::Converter.type_info(type_info), type_info] @@ -1226,7 +1214,7 @@ def initialize(data = {}) type = self.class.fields[mapped]&.fetch(:type) stored = case [type, value] - in [Class, Hash] if type <= Orb::BaseModel + in [Module, Hash] if type <= Orb::BaseModel type.new(value) in [Orb::ArrayOf, Array] | [Orb::HashOf, Hash] type.coerce(value) diff --git a/lib/orb/base_page.rb b/lib/orb/base_page.rb index 596c20b4..4e665f97 100644 --- a/lib/orb/base_page.rb +++ b/lib/orb/base_page.rb @@ -2,32 +2,29 @@ module Orb # @example - # ```ruby - # if page.has_next? - # page = page.next_page - # end - # ``` + # if page.has_next? + # page = page.next_page + # end # # @example - # ```ruby - # page.auto_paging_each do |top_level| - # puts(top_level) - # end - # ``` + # page.auto_paging_each do |top_level| + # puts(top_level) + # end # # @example - # ```ruby - # top_levels = page - # .to_enum - # .lazy - # .select { _1.object_id.even? } - # .map(&:itself) - # .take(2) - # .to_a + # top_levels = + # page + # .to_enum + # .lazy + # .select { _1.object_id.even? } + # .map(&:itself) + # .take(2) + # .to_a # - # top_levels => Array - # ``` + # top_levels => Array module BasePage + # rubocop:disable Lint/UnusedMethodArgument + # @return [Boolean] def next_page? = (raise NotImplementedError) @@ -56,5 +53,7 @@ def initialize(client:, req:, headers:, page_data:) @req = req super() end + + # rubocop:enable Lint/UnusedMethodArgument end end diff --git a/lib/orb/models/alert.rb b/lib/orb/models/alert.rb index 1d7b8de2..6c7af48c 100644 --- a/lib/orb/models/alert.rb +++ b/lib/orb/models/alert.rb @@ -197,10 +197,10 @@ class Threshold < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The type of alert. This must be a valid alert type. - class Type < Orb::Enum + module Type + extend Orb::Enum + CREDIT_BALANCE_DEPLETED = :credit_balance_depleted CREDIT_BALANCE_DROPPED = :credit_balance_dropped CREDIT_BALANCE_RECOVERED = :credit_balance_recovered @@ -208,6 +208,12 @@ class Type < Orb::Enum COST_EXCEEDED = :cost_exceeded finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/alert_create_for_customer_params.rb b/lib/orb/models/alert_create_for_customer_params.rb index f2d5b41c..bb32b4bb 100644 --- a/lib/orb/models/alert_create_for_customer_params.rb +++ b/lib/orb/models/alert_create_for_customer_params.rb @@ -37,15 +37,21 @@ class AlertCreateForCustomerParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The type of alert to create. This must be a valid alert type. - class Type < Orb::Enum + module Type + extend Orb::Enum + CREDIT_BALANCE_DEPLETED = :credit_balance_depleted CREDIT_BALANCE_DROPPED = :credit_balance_dropped CREDIT_BALANCE_RECOVERED = :credit_balance_recovered finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class Threshold < Orb::BaseModel diff --git a/lib/orb/models/alert_create_for_external_customer_params.rb b/lib/orb/models/alert_create_for_external_customer_params.rb index c0177c24..92bd5a49 100644 --- a/lib/orb/models/alert_create_for_external_customer_params.rb +++ b/lib/orb/models/alert_create_for_external_customer_params.rb @@ -37,15 +37,21 @@ class AlertCreateForExternalCustomerParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The type of alert to create. This must be a valid alert type. - class Type < Orb::Enum + module Type + extend Orb::Enum + CREDIT_BALANCE_DEPLETED = :credit_balance_depleted CREDIT_BALANCE_DROPPED = :credit_balance_dropped CREDIT_BALANCE_RECOVERED = :credit_balance_recovered finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class Threshold < Orb::BaseModel diff --git a/lib/orb/models/alert_create_for_subscription_params.rb b/lib/orb/models/alert_create_for_subscription_params.rb index e69a7169..20e11c30 100644 --- a/lib/orb/models/alert_create_for_subscription_params.rb +++ b/lib/orb/models/alert_create_for_subscription_params.rb @@ -55,14 +55,20 @@ class Threshold < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The type of alert to create. This must be a valid alert type. - class Type < Orb::Enum + module Type + extend Orb::Enum + USAGE_EXCEEDED = :usage_exceeded COST_EXCEEDED = :cost_exceeded finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/amount_discount.rb b/lib/orb/models/amount_discount.rb index 8c8fe6d3..1044e276 100644 --- a/lib/orb/models/amount_discount.rb +++ b/lib/orb/models/amount_discount.rb @@ -36,11 +36,18 @@ class AmountDiscount < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + AMOUNT = :amount finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/billable_metric.rb b/lib/orb/models/billable_metric.rb index fd8d9d86..e1c509c8 100644 --- a/lib/orb/models/billable_metric.rb +++ b/lib/orb/models/billable_metric.rb @@ -56,13 +56,20 @@ class BillableMetric < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active DRAFT = :draft ARCHIVED = :archived finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/billing_cycle_relative_date.rb b/lib/orb/models/billing_cycle_relative_date.rb index def48522..b743063a 100644 --- a/lib/orb/models/billing_cycle_relative_date.rb +++ b/lib/orb/models/billing_cycle_relative_date.rb @@ -2,12 +2,19 @@ module Orb module Models - # @abstract - class BillingCycleRelativeDate < Orb::Enum + module BillingCycleRelativeDate + extend Orb::Enum + START_OF_TERM = :start_of_term END_OF_TERM = :end_of_term finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/coupon.rb b/lib/orb/models/coupon.rb index f7a2fe9a..5f23f55c 100644 --- a/lib/orb/models/coupon.rb +++ b/lib/orb/models/coupon.rb @@ -66,8 +66,9 @@ class Coupon < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Discount < Orb::Union + module Discount + extend Orb::Union + discriminator :discount_type variant :percentage, -> { Orb::Models::PercentageDiscount } diff --git a/lib/orb/models/coupon_create_params.rb b/lib/orb/models/coupon_create_params.rb index 50129048..ebeb2f47 100644 --- a/lib/orb/models/coupon_create_params.rb +++ b/lib/orb/models/coupon_create_params.rb @@ -43,8 +43,9 @@ class CouponCreateParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Discount < Orb::Union + module Discount + extend Orb::Union + discriminator :discount_type variant :percentage, -> { Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount } diff --git a/lib/orb/models/credit_note.rb b/lib/orb/models/credit_note.rb index 12408ad1..eca35c1a 100644 --- a/lib/orb/models/credit_note.rb +++ b/lib/orb/models/credit_note.rb @@ -321,12 +321,19 @@ class Discount < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE = :percentage AMOUNT = :amount finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -372,11 +379,18 @@ class MaximumAmountAdjustment < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE = :percentage finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class AppliesToPrice < Orb::BaseModel @@ -400,22 +414,36 @@ class AppliesToPrice < Orb::BaseModel end end - # @abstract - class Reason < Orb::Enum + module Reason + extend Orb::Enum + DUPLICATE = :Duplicate FRAUDULENT = :Fraudulent ORDER_CHANGE = :"Order change" PRODUCT_UNSATISFACTORY = :"Product unsatisfactory" finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end - # @abstract - class Type < Orb::Enum + module Type + extend Orb::Enum + REFUND = :refund ADJUSTMENT = :adjustment finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class Discount < Orb::BaseModel @@ -457,11 +485,18 @@ class Discount < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE = :percentage finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class AppliesToPrice < Orb::BaseModel diff --git a/lib/orb/models/credit_note_create_params.rb b/lib/orb/models/credit_note_create_params.rb index 841d52e6..a08aa164 100644 --- a/lib/orb/models/credit_note_create_params.rb +++ b/lib/orb/models/credit_note_create_params.rb @@ -56,16 +56,22 @@ class LineItem < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # An optional reason for the credit note. - class Reason < Orb::Enum + module Reason + extend Orb::Enum + DUPLICATE = :duplicate FRAUDULENT = :fraudulent ORDER_CHANGE = :order_change PRODUCT_UNSATISFACTORY = :product_unsatisfactory finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/customer.rb b/lib/orb/models/customer.rb index 07d361ef..37cd9408 100644 --- a/lib/orb/models/customer.rb +++ b/lib/orb/models/customer.rb @@ -420,12 +420,12 @@ class Parent < Orb::BaseModel end end - # @abstract - # # This is used for creating charges or invoices in an external system via Orb. # When not in test mode, the connection must first be configured in the Orb # webapp. - class PaymentProvider < Orb::Enum + module PaymentProvider + extend Orb::Enum + QUICKBOOKS = :quickbooks BILL_COM = :"bill.com" STRIPE_CHARGE = :stripe_charge @@ -433,6 +433,12 @@ class PaymentProvider < Orb::Enum NETSUITE = :netsuite finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class ShippingAddress < Orb::BaseModel @@ -610,8 +616,9 @@ class TaxID < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Country < Orb::Enum + module Country + extend Orb::Enum + AD = :AD AE = :AE AR = :AR @@ -692,10 +699,17 @@ class Country < Orb::Enum ZA = :ZA finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end - # @abstract - class Type < Orb::Enum + module Type + extend Orb::Enum + AD_NRT = :ad_nrt AE_TRN = :ae_trn AR_CUIT = :ar_cuit @@ -769,6 +783,12 @@ class Type < Orb::Enum ZA_VAT = :za_vat finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -812,12 +832,19 @@ class AccountingProvider < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class ProviderType < Orb::Enum + module ProviderType + extend Orb::Enum + QUICKBOOKS = :quickbooks NETSUITE = :netsuite finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/customer_create_params.rb b/lib/orb/models/customer_create_params.rb index b6c66837..db62ceb4 100644 --- a/lib/orb/models/customer_create_params.rb +++ b/lib/orb/models/customer_create_params.rb @@ -396,12 +396,12 @@ class Hierarchy < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # This is used for creating charges or invoices in an external system via Orb. # When not in test mode, the connection must first be configured in the Orb # webapp. - class PaymentProvider < Orb::Enum + module PaymentProvider + extend Orb::Enum + QUICKBOOKS = :quickbooks BILL_COM = :"bill.com" STRIPE_CHARGE = :stripe_charge @@ -409,6 +409,12 @@ class PaymentProvider < Orb::Enum NETSUITE = :netsuite finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class ReportingConfiguration < Orb::BaseModel @@ -469,8 +475,9 @@ class ShippingAddress < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class TaxConfiguration < Orb::Union + module TaxConfiguration + extend Orb::Union + discriminator :tax_provider variant :avalara, -> { Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration } @@ -661,8 +668,9 @@ class TaxID < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Country < Orb::Enum + module Country + extend Orb::Enum + AD = :AD AE = :AE AR = :AR @@ -743,10 +751,17 @@ class Country < Orb::Enum ZA = :ZA finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end - # @abstract - class Type < Orb::Enum + module Type + extend Orb::Enum + AD_NRT = :ad_nrt AE_TRN = :ae_trn AR_CUIT = :ar_cuit @@ -820,6 +835,12 @@ class Type < Orb::Enum ZA_VAT = :za_vat finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end 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 83ee48de..56413c1f 100644 --- a/lib/orb/models/customer_update_by_external_id_params.rb +++ b/lib/orb/models/customer_update_by_external_id_params.rb @@ -395,8 +395,6 @@ class Hierarchy < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # This is used for creating charges or invoices in an external system via Orb. # When not in test mode: # @@ -404,7 +402,9 @@ class Hierarchy < Orb::BaseModel # - if the provider is an invoicing provider (`stripe_invoice`, `quickbooks`, # `bill.com`, `netsuite`), any product mappings must first be configured with # the Orb team. - class PaymentProvider < Orb::Enum + module PaymentProvider + extend Orb::Enum + QUICKBOOKS = :quickbooks BILL_COM = :"bill.com" STRIPE_CHARGE = :stripe_charge @@ -412,6 +412,12 @@ class PaymentProvider < Orb::Enum NETSUITE = :netsuite finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class ReportingConfiguration < Orb::BaseModel @@ -472,8 +478,9 @@ class ShippingAddress < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class TaxConfiguration < Orb::Union + module TaxConfiguration + extend Orb::Union + discriminator :tax_provider variant :avalara, @@ -666,8 +673,9 @@ class TaxID < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Country < Orb::Enum + module Country + extend Orb::Enum + AD = :AD AE = :AE AR = :AR @@ -748,10 +756,17 @@ class Country < Orb::Enum ZA = :ZA finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end - # @abstract - class Type < Orb::Enum + module Type + extend Orb::Enum + AD_NRT = :ad_nrt AE_TRN = :ae_trn AR_CUIT = :ar_cuit @@ -825,6 +840,12 @@ class Type < Orb::Enum ZA_VAT = :za_vat finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/customer_update_params.rb b/lib/orb/models/customer_update_params.rb index acd2b85c..17f1b612 100644 --- a/lib/orb/models/customer_update_params.rb +++ b/lib/orb/models/customer_update_params.rb @@ -387,8 +387,6 @@ class Hierarchy < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # This is used for creating charges or invoices in an external system via Orb. # When not in test mode: # @@ -396,7 +394,9 @@ class Hierarchy < Orb::BaseModel # - if the provider is an invoicing provider (`stripe_invoice`, `quickbooks`, # `bill.com`, `netsuite`), any product mappings must first be configured with # the Orb team. - class PaymentProvider < Orb::Enum + module PaymentProvider + extend Orb::Enum + QUICKBOOKS = :quickbooks BILL_COM = :"bill.com" STRIPE_CHARGE = :stripe_charge @@ -404,6 +404,12 @@ class PaymentProvider < Orb::Enum NETSUITE = :netsuite finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class ReportingConfiguration < Orb::BaseModel @@ -464,8 +470,9 @@ class ShippingAddress < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class TaxConfiguration < Orb::Union + module TaxConfiguration + extend Orb::Union + discriminator :tax_provider variant :avalara, -> { Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration } @@ -656,8 +663,9 @@ class TaxID < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Country < Orb::Enum + module Country + extend Orb::Enum + AD = :AD AE = :AE AR = :AR @@ -738,10 +746,17 @@ class Country < Orb::Enum ZA = :ZA finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end - # @abstract - class Type < Orb::Enum + module Type + extend Orb::Enum + AD_NRT = :ad_nrt AE_TRN = :ae_trn AR_CUIT = :ar_cuit @@ -815,6 +830,12 @@ class Type < Orb::Enum ZA_VAT = :za_vat finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/customers/balance_transaction_create_params.rb b/lib/orb/models/customers/balance_transaction_create_params.rb index 1e0a2061..e01ac158 100644 --- a/lib/orb/models/customers/balance_transaction_create_params.rb +++ b/lib/orb/models/customers/balance_transaction_create_params.rb @@ -34,12 +34,19 @@ class BalanceTransactionCreateParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Type < Orb::Enum + module Type + extend Orb::Enum + INCREMENT = :increment DECREMENT = :decrement finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/customers/balance_transaction_create_response.rb b/lib/orb/models/customers/balance_transaction_create_response.rb index 2bb773a0..1593e7a3 100644 --- a/lib/orb/models/customers/balance_transaction_create_response.rb +++ b/lib/orb/models/customers/balance_transaction_create_response.rb @@ -94,8 +94,9 @@ class BalanceTransactionCreateResponse < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Action < Orb::Enum + module Action + extend Orb::Enum + APPLIED_TO_INVOICE = :applied_to_invoice MANUAL_ADJUSTMENT = :manual_adjustment PRORATED_REFUND = :prorated_refund @@ -107,6 +108,12 @@ class Action < Orb::Enum EXTERNAL_PAYMENT = :external_payment finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditNote < Orb::BaseModel @@ -139,12 +146,19 @@ class Invoice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Type < Orb::Enum + module Type + extend Orb::Enum + INCREMENT = :increment DECREMENT = :decrement finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/customers/balance_transaction_list_response.rb b/lib/orb/models/customers/balance_transaction_list_response.rb index e0b50cb9..92303c16 100644 --- a/lib/orb/models/customers/balance_transaction_list_response.rb +++ b/lib/orb/models/customers/balance_transaction_list_response.rb @@ -94,8 +94,9 @@ class BalanceTransactionListResponse < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Action < Orb::Enum + module Action + extend Orb::Enum + APPLIED_TO_INVOICE = :applied_to_invoice MANUAL_ADJUSTMENT = :manual_adjustment PRORATED_REFUND = :prorated_refund @@ -107,6 +108,12 @@ class Action < Orb::Enum EXTERNAL_PAYMENT = :external_payment finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditNote < Orb::BaseModel @@ -139,12 +146,19 @@ class Invoice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Type < Orb::Enum + module Type + extend Orb::Enum + INCREMENT = :increment DECREMENT = :decrement finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end 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 9b7b54e0..d90ba826 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 @@ -46,17 +46,23 @@ class CostListByExternalIDParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # Controls whether Orb returns cumulative costs since the start of the billing # period, or incremental day-by-day costs. If your customer has minimums or # discounts, it's strongly recommended that you use the default cumulative # behavior. - class ViewMode < Orb::Enum + module ViewMode + extend Orb::Enum + PERIODIC = :periodic CUMULATIVE = :cumulative finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/customers/cost_list_params.rb b/lib/orb/models/customers/cost_list_params.rb index 28022675..d3554473 100644 --- a/lib/orb/models/customers/cost_list_params.rb +++ b/lib/orb/models/customers/cost_list_params.rb @@ -46,17 +46,23 @@ class CostListParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # Controls whether Orb returns cumulative costs since the start of the billing # period, or incremental day-by-day costs. If your customer has minimums or # discounts, it's strongly recommended that you use the default cumulative # behavior. - class ViewMode < Orb::Enum + module ViewMode + extend Orb::Enum + PERIODIC = :periodic CUMULATIVE = :cumulative finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/customers/credit_list_by_external_id_response.rb b/lib/orb/models/customers/credit_list_by_external_id_response.rb index 7ff8c472..6ed2d5ba 100644 --- a/lib/orb/models/customers/credit_list_by_external_id_response.rb +++ b/lib/orb/models/customers/credit_list_by_external_id_response.rb @@ -52,12 +52,19 @@ class CreditListByExternalIDResponse < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active PENDING_PAYMENT = :pending_payment finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/customers/credit_list_response.rb b/lib/orb/models/customers/credit_list_response.rb index 907bad6d..411e8ca0 100644 --- a/lib/orb/models/customers/credit_list_response.rb +++ b/lib/orb/models/customers/credit_list_response.rb @@ -52,12 +52,19 @@ class CreditListResponse < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active PENDING_PAYMENT = :pending_payment finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end 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 a8fdde83..a98e4ded 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 @@ -134,11 +134,18 @@ class LedgerCreateEntryByExternalIDParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class EntryType < Orb::Enum + module EntryType + extend Orb::Enum + AMENDMENT = :amendment finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class InvoiceSettings < Orb::BaseModel @@ -190,13 +197,19 @@ class InvoiceSettings < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # Can only be specified when `entry_type=void`. The reason for the void. - class VoidReason < Orb::Enum + module VoidReason + extend Orb::Enum + REFUND = :refund finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end 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 eef004cc..c17fe37f 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 @@ -4,11 +4,11 @@ module Orb module Models module Customers module Credits - # @abstract - # # The [Credit Ledger Entry resource](/product-catalog/prepurchase) models prepaid # credits within Orb. - class LedgerCreateEntryByExternalIDResponse < Orb::Union + module LedgerCreateEntryByExternalIDResponse + extend Orb::Union + discriminator :entry_type variant :increment, @@ -187,12 +187,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -372,12 +379,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -543,12 +557,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -707,12 +728,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -885,12 +913,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1070,12 +1105,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1234,12 +1276,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end 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 6e5569a2..857ba309 100644 --- a/lib/orb/models/customers/credits/ledger_create_entry_params.rb +++ b/lib/orb/models/customers/credits/ledger_create_entry_params.rb @@ -133,11 +133,18 @@ class LedgerCreateEntryParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class EntryType < Orb::Enum + module EntryType + extend Orb::Enum + AMENDMENT = :amendment finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class InvoiceSettings < Orb::BaseModel @@ -189,13 +196,19 @@ class InvoiceSettings < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # Can only be specified when `entry_type=void`. The reason for the void. - class VoidReason < Orb::Enum + module VoidReason + extend Orb::Enum + REFUND = :refund finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end 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 45cf1155..4d23a1b2 100644 --- a/lib/orb/models/customers/credits/ledger_create_entry_response.rb +++ b/lib/orb/models/customers/credits/ledger_create_entry_response.rb @@ -4,11 +4,11 @@ module Orb module Models module Customers module Credits - # @abstract - # # The [Credit Ledger Entry resource](/product-catalog/prepurchase) models prepaid # credits within Orb. - class LedgerCreateEntryResponse < Orb::Union + module LedgerCreateEntryResponse + extend Orb::Union + discriminator :entry_type variant :increment, @@ -186,12 +186,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -371,12 +378,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -542,12 +556,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -706,12 +727,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -884,12 +912,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1069,12 +1104,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1233,12 +1275,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end diff --git a/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb b/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb index 0a11de2d..2140cd90 100644 --- a/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb +++ b/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb @@ -103,16 +103,24 @@ class LedgerListByExternalIDParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end - # @abstract - class EntryType < Orb::Enum + module EntryType + extend Orb::Enum + INCREMENT = :increment DECREMENT = :decrement EXPIRATION_CHANGE = :expiration_change @@ -122,6 +130,12 @@ class EntryType < Orb::Enum AMENDMENT = :amendment finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end 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 3cfbbe3e..babbaa28 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 @@ -4,11 +4,11 @@ module Orb module Models module Customers module Credits - # @abstract - # # The [Credit Ledger Entry resource](/product-catalog/prepurchase) models prepaid # credits within Orb. - class LedgerListByExternalIDResponse < Orb::Union + module LedgerListByExternalIDResponse + extend Orb::Union + discriminator :entry_type variant :increment, @@ -186,12 +186,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -371,12 +378,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -542,12 +556,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -706,12 +727,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -884,12 +912,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1069,12 +1104,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1233,12 +1275,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end diff --git a/lib/orb/models/customers/credits/ledger_list_params.rb b/lib/orb/models/customers/credits/ledger_list_params.rb index 8ecdf7ab..08630170 100644 --- a/lib/orb/models/customers/credits/ledger_list_params.rb +++ b/lib/orb/models/customers/credits/ledger_list_params.rb @@ -103,16 +103,24 @@ class LedgerListParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end - # @abstract - class EntryType < Orb::Enum + module EntryType + extend Orb::Enum + INCREMENT = :increment DECREMENT = :decrement EXPIRATION_CHANGE = :expiration_change @@ -122,6 +130,12 @@ class EntryType < Orb::Enum AMENDMENT = :amendment finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/customers/credits/ledger_list_response.rb b/lib/orb/models/customers/credits/ledger_list_response.rb index 0b6bd6bc..9d392fa2 100644 --- a/lib/orb/models/customers/credits/ledger_list_response.rb +++ b/lib/orb/models/customers/credits/ledger_list_response.rb @@ -4,11 +4,11 @@ module Orb module Models module Customers module Credits - # @abstract - # # The [Credit Ledger Entry resource](/product-catalog/prepurchase) models prepaid # credits within Orb. - class LedgerListResponse < Orb::Union + module LedgerListResponse + extend Orb::Union + discriminator :entry_type variant :increment, -> { Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry } @@ -183,12 +183,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -368,12 +375,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -539,12 +553,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -703,12 +724,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -880,12 +908,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1065,12 +1100,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1229,12 +1271,19 @@ class Customer < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED = :committed PENDING = :pending finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end 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 e5357492..47493403 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 @@ -138,14 +138,20 @@ class InvoiceSettings < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The unit of expires_after. - class ExpiresAfterUnit < Orb::Enum + module ExpiresAfterUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end 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 7e1f4b22..59184853 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 @@ -130,14 +130,20 @@ class InvoiceSettings < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The unit of expires_after. - class ExpiresAfterUnit < Orb::Enum + module ExpiresAfterUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end 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 992f1cdb..8905f7f6 100644 --- a/lib/orb/models/customers/credits/top_up_create_params.rb +++ b/lib/orb/models/customers/credits/top_up_create_params.rb @@ -137,14 +137,20 @@ class InvoiceSettings < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The unit of expires_after. - class ExpiresAfterUnit < Orb::Enum + module ExpiresAfterUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end 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 7f37f6c7..fe393956 100644 --- a/lib/orb/models/customers/credits/top_up_create_response.rb +++ b/lib/orb/models/customers/credits/top_up_create_response.rb @@ -129,14 +129,20 @@ class InvoiceSettings < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The unit of expires_after. - class ExpiresAfterUnit < Orb::Enum + module ExpiresAfterUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end 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 8cad200e..f074a037 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 @@ -130,14 +130,20 @@ class InvoiceSettings < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The unit of expires_after. - class ExpiresAfterUnit < Orb::Enum + module ExpiresAfterUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end 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 1935b45c..79d44aaf 100644 --- a/lib/orb/models/customers/credits/top_up_list_response.rb +++ b/lib/orb/models/customers/credits/top_up_list_response.rb @@ -129,14 +129,20 @@ class InvoiceSettings < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The unit of expires_after. - class ExpiresAfterUnit < Orb::Enum + module ExpiresAfterUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/discount.rb b/lib/orb/models/discount.rb index bc978e4f..978e192f 100644 --- a/lib/orb/models/discount.rb +++ b/lib/orb/models/discount.rb @@ -2,8 +2,9 @@ module Orb module Models - # @abstract - class Discount < Orb::Union + module Discount + extend Orb::Union + discriminator :discount_type variant :percentage, -> { Orb::Models::PercentageDiscount } diff --git a/lib/orb/models/evaluate_price_group.rb b/lib/orb/models/evaluate_price_group.rb index 766f46f7..93a0119b 100644 --- a/lib/orb/models/evaluate_price_group.rb +++ b/lib/orb/models/evaluate_price_group.rb @@ -30,8 +30,9 @@ class EvaluatePriceGroup < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class GroupingValue < Orb::Union + module GroupingValue + extend Orb::Union + variant String variant Float diff --git a/lib/orb/models/events/backfill_close_response.rb b/lib/orb/models/events/backfill_close_response.rb index 3b7b5ad0..bf8fccd4 100644 --- a/lib/orb/models/events/backfill_close_response.rb +++ b/lib/orb/models/events/backfill_close_response.rb @@ -107,16 +107,22 @@ class BackfillCloseResponse < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The status of the backfill. - class Status < Orb::Enum + module Status + extend Orb::Enum + PENDING = :pending REFLECTED = :reflected PENDING_REVERT = :pending_revert REVERTED = :reverted finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/events/backfill_create_response.rb b/lib/orb/models/events/backfill_create_response.rb index 0f78ae9e..029b8bf1 100644 --- a/lib/orb/models/events/backfill_create_response.rb +++ b/lib/orb/models/events/backfill_create_response.rb @@ -107,16 +107,22 @@ class BackfillCreateResponse < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The status of the backfill. - class Status < Orb::Enum + module Status + extend Orb::Enum + PENDING = :pending REFLECTED = :reflected PENDING_REVERT = :pending_revert REVERTED = :reverted finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/events/backfill_fetch_response.rb b/lib/orb/models/events/backfill_fetch_response.rb index 75bd4d10..021d7c5e 100644 --- a/lib/orb/models/events/backfill_fetch_response.rb +++ b/lib/orb/models/events/backfill_fetch_response.rb @@ -107,16 +107,22 @@ class BackfillFetchResponse < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The status of the backfill. - class Status < Orb::Enum + module Status + extend Orb::Enum + PENDING = :pending REFLECTED = :reflected PENDING_REVERT = :pending_revert REVERTED = :reverted finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/events/backfill_list_response.rb b/lib/orb/models/events/backfill_list_response.rb index d34821a5..93d64ec7 100644 --- a/lib/orb/models/events/backfill_list_response.rb +++ b/lib/orb/models/events/backfill_list_response.rb @@ -107,16 +107,22 @@ class BackfillListResponse < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The status of the backfill. - class Status < Orb::Enum + module Status + extend Orb::Enum + PENDING = :pending REFLECTED = :reflected PENDING_REVERT = :pending_revert REVERTED = :reverted finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/events/backfill_revert_response.rb b/lib/orb/models/events/backfill_revert_response.rb index 93fc26a7..1325f08e 100644 --- a/lib/orb/models/events/backfill_revert_response.rb +++ b/lib/orb/models/events/backfill_revert_response.rb @@ -107,16 +107,22 @@ class BackfillRevertResponse < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The status of the backfill. - class Status < Orb::Enum + module Status + extend Orb::Enum + PENDING = :pending REFLECTED = :reflected PENDING_REVERT = :pending_revert REVERTED = :reverted finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/invoice.rb b/lib/orb/models/invoice.rb index 24073823..da0add59 100644 --- a/lib/orb/models/invoice.rb +++ b/lib/orb/models/invoice.rb @@ -710,8 +710,9 @@ class CustomerBalanceTransaction < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Action < Orb::Enum + module Action + extend Orb::Enum + APPLIED_TO_INVOICE = :applied_to_invoice MANUAL_ADJUSTMENT = :manual_adjustment PRORATED_REFUND = :prorated_refund @@ -723,6 +724,12 @@ class Action < Orb::Enum EXTERNAL_PAYMENT = :external_payment finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditNote < Orb::BaseModel @@ -755,12 +762,19 @@ class Invoice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Type < Orb::Enum + module Type + extend Orb::Enum + INCREMENT = :increment DECREMENT = :decrement finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -895,8 +909,9 @@ class CustomerTaxID < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Country < Orb::Enum + module Country + extend Orb::Enum + AD = :AD AE = :AE AR = :AR @@ -977,10 +992,17 @@ class Country < Orb::Enum ZA = :ZA finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end - # @abstract - class Type < Orb::Enum + module Type + extend Orb::Enum + AD_NRT = :ad_nrt AE_TRN = :ae_trn AR_CUIT = :ar_cuit @@ -1054,16 +1076,29 @@ class Type < Orb::Enum ZA_VAT = :za_vat finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class InvoiceSource < Orb::Enum + module InvoiceSource + extend Orb::Enum + SUBSCRIPTION = :subscription PARTIAL = :partial ONE_OFF = :one_off finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class LineItem < Orb::BaseModel @@ -1269,8 +1304,9 @@ class LineItem < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -1693,8 +1729,9 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class SubLineItem < Orb::Union + module SubLineItem + extend Orb::Union + discriminator :type variant :matrix, -> { Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem } @@ -2075,13 +2112,19 @@ class PaymentAttempt < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The payment provider that attempted to collect the payment. - class PaymentProvider < Orb::Enum + module PaymentProvider + extend Orb::Enum + STRIPE = :stripe finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2129,8 +2172,9 @@ class ShippingAddress < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ISSUED = :issued PAID = :paid SYNCED = :synced @@ -2138,6 +2182,12 @@ class Status < Orb::Enum DRAFT = :draft finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class Subscription < Orb::BaseModel diff --git a/lib/orb/models/invoice_create_params.rb b/lib/orb/models/invoice_create_params.rb index 7ab73a98..c605d414 100644 --- a/lib/orb/models/invoice_create_params.rb +++ b/lib/orb/models/invoice_create_params.rb @@ -165,11 +165,18 @@ class LineItem < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class ModelType < Orb::Enum + module ModelType + extend Orb::Enum + UNIT = :unit finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class UnitConfig < Orb::BaseModel diff --git a/lib/orb/models/invoice_fetch_upcoming_response.rb b/lib/orb/models/invoice_fetch_upcoming_response.rb index 49413359..075f377d 100644 --- a/lib/orb/models/invoice_fetch_upcoming_response.rb +++ b/lib/orb/models/invoice_fetch_upcoming_response.rb @@ -709,8 +709,9 @@ class CustomerBalanceTransaction < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Action < Orb::Enum + module Action + extend Orb::Enum + APPLIED_TO_INVOICE = :applied_to_invoice MANUAL_ADJUSTMENT = :manual_adjustment PRORATED_REFUND = :prorated_refund @@ -722,6 +723,12 @@ class Action < Orb::Enum EXTERNAL_PAYMENT = :external_payment finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditNote < Orb::BaseModel @@ -754,12 +761,19 @@ class Invoice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Type < Orb::Enum + module Type + extend Orb::Enum + INCREMENT = :increment DECREMENT = :decrement finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -894,8 +908,9 @@ class CustomerTaxID < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Country < Orb::Enum + module Country + extend Orb::Enum + AD = :AD AE = :AE AR = :AR @@ -976,10 +991,17 @@ class Country < Orb::Enum ZA = :ZA finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end - # @abstract - class Type < Orb::Enum + module Type + extend Orb::Enum + AD_NRT = :ad_nrt AE_TRN = :ae_trn AR_CUIT = :ar_cuit @@ -1053,16 +1075,29 @@ class Type < Orb::Enum ZA_VAT = :za_vat finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class InvoiceSource < Orb::Enum + module InvoiceSource + extend Orb::Enum + SUBSCRIPTION = :subscription PARTIAL = :partial ONE_OFF = :one_off finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class LineItem < Orb::BaseModel @@ -1270,8 +1305,9 @@ class LineItem < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -1696,8 +1732,9 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class SubLineItem < Orb::Union + module SubLineItem + extend Orb::Union + discriminator :type variant :matrix, @@ -2083,13 +2120,19 @@ class PaymentAttempt < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The payment provider that attempted to collect the payment. - class PaymentProvider < Orb::Enum + module PaymentProvider + extend Orb::Enum + STRIPE = :stripe finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2137,8 +2180,9 @@ class ShippingAddress < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ISSUED = :issued PAID = :paid SYNCED = :synced @@ -2146,6 +2190,12 @@ class Status < Orb::Enum DRAFT = :draft finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class Subscription < Orb::BaseModel diff --git a/lib/orb/models/invoice_level_discount.rb b/lib/orb/models/invoice_level_discount.rb index 5c5da398..0a110f31 100644 --- a/lib/orb/models/invoice_level_discount.rb +++ b/lib/orb/models/invoice_level_discount.rb @@ -2,8 +2,9 @@ module Orb module Models - # @abstract - class InvoiceLevelDiscount < Orb::Union + module InvoiceLevelDiscount + extend Orb::Union + discriminator :discount_type variant :percentage, -> { Orb::Models::PercentageDiscount } diff --git a/lib/orb/models/invoice_line_item_create_response.rb b/lib/orb/models/invoice_line_item_create_response.rb index 184e545a..f8f52800 100644 --- a/lib/orb/models/invoice_line_item_create_response.rb +++ b/lib/orb/models/invoice_line_item_create_response.rb @@ -206,8 +206,9 @@ class InvoiceLineItemCreateResponse < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -630,8 +631,9 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class SubLineItem < Orb::Union + module SubLineItem + extend Orb::Union + discriminator :type variant :matrix, -> { Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem } diff --git a/lib/orb/models/invoice_list_params.rb b/lib/orb/models/invoice_list_params.rb index 1f3fc1b4..ad0fe49f 100644 --- a/lib/orb/models/invoice_list_params.rb +++ b/lib/orb/models/invoice_list_params.rb @@ -163,16 +163,24 @@ class InvoiceListParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DateType < Orb::Enum + module DateType + extend Orb::Enum + DUE_DATE = :due_date INVOICE_DATE = :invoice_date finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + DRAFT = :draft ISSUED = :issued PAID = :paid @@ -180,6 +188,12 @@ class Status < Orb::Enum VOID = :void finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/item.rb b/lib/orb/models/item.rb index 719a8bb7..1d0caf1d 100644 --- a/lib/orb/models/item.rb +++ b/lib/orb/models/item.rb @@ -57,8 +57,9 @@ class ExternalConnection < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class ExternalConnectionName < Orb::Enum + module ExternalConnectionName + extend Orb::Enum + STRIPE = :stripe QUICKBOOKS = :quickbooks BILL_COM = :"bill.com" @@ -68,6 +69,12 @@ class ExternalConnectionName < Orb::Enum ANROK = :anrok finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/item_update_params.rb b/lib/orb/models/item_update_params.rb index a6424e56..46a0c597 100644 --- a/lib/orb/models/item_update_params.rb +++ b/lib/orb/models/item_update_params.rb @@ -48,8 +48,9 @@ class ExternalConnection < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class ExternalConnectionName < Orb::Enum + module ExternalConnectionName + extend Orb::Enum + STRIPE = :stripe QUICKBOOKS = :quickbooks BILL_COM = :"bill.com" @@ -59,6 +60,12 @@ class ExternalConnectionName < Orb::Enum ANROK = :anrok finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/percentage_discount.rb b/lib/orb/models/percentage_discount.rb index dcd1f139..317e65a0 100644 --- a/lib/orb/models/percentage_discount.rb +++ b/lib/orb/models/percentage_discount.rb @@ -37,11 +37,18 @@ class PercentageDiscount < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE = :percentage finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/plan.rb b/lib/orb/models/plan.rb index 7de61165..d807cad7 100644 --- a/lib/orb/models/plan.rb +++ b/lib/orb/models/plan.rb @@ -210,8 +210,9 @@ class Plan < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, -> { Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment } @@ -745,8 +746,9 @@ class PlanPhase < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAILY = :daily MONTHLY = :monthly QUARTERLY = :quarterly @@ -754,6 +756,12 @@ class DurationUnit < Orb::Enum ANNUAL = :annual finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class Maximum < Orb::BaseModel @@ -829,13 +837,20 @@ class Product < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ARCHIVED = :archived DRAFT = :draft finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TrialConfig < Orb::BaseModel @@ -857,11 +872,18 @@ class TrialConfig < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class TrialPeriodUnit < Orb::Enum + module TrialPeriodUnit + extend Orb::Enum + DAYS = :days finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/plan_create_params.rb b/lib/orb/models/plan_create_params.rb index ba593e84..bd5e95bb 100644 --- a/lib/orb/models/plan_create_params.rb +++ b/lib/orb/models/plan_create_params.rb @@ -92,8 +92,9 @@ class PlanCreateParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Price < Orb::Union + module Price + extend Orb::Union + discriminator :model_type variant :unit, -> { Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice } @@ -297,10 +298,10 @@ class NewPlanUnitPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -309,6 +310,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class UnitConfig < Orb::BaseModel @@ -351,14 +358,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -387,14 +400,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -540,10 +559,10 @@ class NewPlanPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -552,6 +571,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class PackageConfig < Orb::BaseModel @@ -602,14 +627,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -638,14 +669,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -791,10 +828,10 @@ class NewPlanMatrixPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -803,6 +840,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class MatrixConfig < Orb::BaseModel @@ -884,14 +927,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -920,14 +969,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1073,10 +1128,10 @@ class NewPlanTieredPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1085,6 +1140,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredConfig < Orb::BaseModel @@ -1157,14 +1218,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1193,14 +1260,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1347,10 +1420,10 @@ class NewPlanTieredBpsPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1359,6 +1432,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredBpsConfig < Orb::BaseModel @@ -1439,14 +1518,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1475,14 +1560,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1650,10 +1741,10 @@ class BpsConfig < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1662,6 +1753,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -1689,14 +1786,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1725,14 +1828,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1924,10 +2033,10 @@ class Tier < Orb::BaseModel end end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1936,6 +2045,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -1963,14 +2078,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1999,14 +2120,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2190,10 +2317,10 @@ class Tier < Orb::BaseModel end end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -2202,6 +2329,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -2229,14 +2362,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2265,14 +2404,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2419,10 +2564,10 @@ class NewPlanThresholdTotalAmountPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -2431,6 +2576,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -2458,14 +2609,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2494,14 +2651,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2647,10 +2810,10 @@ class NewPlanTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -2659,6 +2822,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -2686,14 +2855,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2722,14 +2897,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2876,10 +3057,10 @@ class NewPlanTieredWithMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -2888,6 +3069,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -2915,14 +3102,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2951,14 +3144,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3104,10 +3303,10 @@ class NewPlanUnitWithPercentPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3116,6 +3315,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3143,14 +3348,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3179,14 +3390,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3333,10 +3550,10 @@ class NewPlanPackageWithAllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3345,6 +3562,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3372,14 +3595,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3408,14 +3637,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3562,10 +3797,10 @@ class NewPlanTierWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3574,6 +3809,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3601,14 +3842,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3637,14 +3884,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3791,10 +4044,10 @@ class NewPlanUnitWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3803,6 +4056,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3830,14 +4089,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3866,14 +4131,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4020,10 +4291,10 @@ class NewPlanGroupedAllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4032,6 +4303,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4059,14 +4336,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4095,14 +4378,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4249,10 +4538,10 @@ class NewPlanGroupedWithProratedMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4261,6 +4550,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4288,14 +4583,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4324,14 +4625,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4478,10 +4785,10 @@ class NewPlanGroupedWithMeteredMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4490,6 +4797,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4517,14 +4830,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4553,14 +4872,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4707,10 +5032,10 @@ class NewPlanMatrixWithDisplayNamePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4719,6 +5044,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4746,14 +5077,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4782,14 +5119,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4936,10 +5279,10 @@ class NewPlanBulkWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4948,6 +5291,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4975,14 +5324,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5011,14 +5366,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5165,10 +5526,10 @@ class NewPlanGroupedTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5177,6 +5538,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5204,14 +5571,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5240,14 +5613,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5394,10 +5773,10 @@ class NewPlanMaxGroupTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5406,6 +5785,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5433,14 +5818,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5469,14 +5860,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5623,10 +6020,10 @@ class NewPlanScalableMatrixWithUnitPricingPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5635,6 +6032,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5662,14 +6065,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5698,14 +6107,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5852,10 +6267,10 @@ class NewPlanScalableMatrixWithTieredPricingPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5864,6 +6279,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5891,14 +6312,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5927,14 +6354,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6081,10 +6514,10 @@ class NewPlanCumulativeGroupedBulkPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6093,6 +6526,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6120,14 +6559,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6156,14 +6601,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6175,15 +6626,21 @@ class DurationUnit < Orb::Enum # end end - # @abstract - # # The status of the plan to create (either active or draft). If not specified, # this defaults to active. - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active DRAFT = :draft finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/plan_list_params.rb b/lib/orb/models/plan_list_params.rb index f6894ef9..ce3c183e 100644 --- a/lib/orb/models/plan_list_params.rb +++ b/lib/orb/models/plan_list_params.rb @@ -80,15 +80,21 @@ class PlanListParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The plan status to filter to ('active', 'archived', or 'draft'). - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ARCHIVED = :archived DRAFT = :draft finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/price.rb b/lib/orb/models/price.rb index 2c4b57f6..88b126d2 100644 --- a/lib/orb/models/price.rb +++ b/lib/orb/models/price.rb @@ -2,8 +2,6 @@ module Orb module Models - # @abstract - # # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices # take a quantity and determine an amount to bill. @@ -14,7 +12,9 @@ module Models # # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) - class Price < Orb::Union + module Price + extend Orb::Union + discriminator :model_type variant :unit, -> { Orb::Models::Price::UnitPrice } @@ -295,17 +295,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -314,6 +322,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -356,12 +370,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -431,12 +452,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class UnitConfig < Orb::BaseModel @@ -696,17 +724,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -715,6 +751,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -757,12 +799,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -855,12 +904,19 @@ class PackageConfig < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -1105,17 +1161,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -1124,6 +1188,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -1166,12 +1236,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1294,12 +1371,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -1544,17 +1628,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -1563,6 +1655,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -1605,12 +1703,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1680,12 +1785,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredConfig < Orb::BaseModel @@ -1975,17 +2087,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -1994,6 +2114,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -2036,12 +2162,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2111,12 +2244,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredBpsConfig < Orb::BaseModel @@ -2413,12 +2553,19 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2444,8 +2591,9 @@ class BpsConfig < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -2454,6 +2602,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -2496,12 +2650,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2571,12 +2732,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -2821,12 +2989,19 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2875,8 +3050,9 @@ class Tier < Orb::BaseModel end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -2885,6 +3061,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -2927,12 +3109,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3002,12 +3191,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -3252,12 +3448,19 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3298,8 +3501,9 @@ class Tier < Orb::BaseModel end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -3308,6 +3512,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -3350,12 +3560,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3425,12 +3642,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -3680,17 +3904,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -3699,6 +3931,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -3741,12 +3979,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3816,12 +4061,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -4067,17 +4319,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -4086,6 +4346,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -4128,12 +4394,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4203,12 +4476,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -4454,17 +4734,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -4473,6 +4761,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -4515,12 +4809,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4590,12 +4891,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -4843,17 +5151,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -4862,6 +5178,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -4904,12 +5226,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4979,12 +5308,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -5234,17 +5570,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -5253,6 +5597,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -5295,12 +5645,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5370,12 +5727,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -5625,17 +5989,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -5644,6 +6016,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -5686,12 +6064,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5761,12 +6146,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -6012,17 +6404,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -6031,6 +6431,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -6073,12 +6479,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6148,12 +6561,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -6404,17 +6824,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -6423,6 +6851,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -6465,12 +6899,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6601,12 +7042,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -6854,17 +7302,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -6873,6 +7329,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -6915,12 +7377,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6990,12 +7459,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -7243,17 +7719,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -7262,6 +7746,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -7304,12 +7794,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -7379,12 +7876,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -7632,17 +8136,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -7651,6 +8163,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -7693,12 +8211,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -7768,12 +8293,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -8023,17 +8555,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -8042,6 +8582,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -8084,12 +8630,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -8159,12 +8712,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -8414,17 +8974,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -8433,6 +9001,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -8475,12 +9049,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -8550,12 +9131,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -8805,17 +9393,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -8824,6 +9420,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -8866,12 +9468,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -8941,12 +9550,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -9194,17 +9810,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -9213,6 +9837,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -9255,12 +9885,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -9330,12 +9967,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -9585,17 +10229,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -9604,6 +10256,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -9646,12 +10304,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -9721,12 +10386,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -9976,17 +10648,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -9995,6 +10675,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -10037,12 +10723,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -10112,12 +10805,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -10367,17 +11067,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -10386,6 +11094,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -10428,12 +11142,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -10503,12 +11224,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -10758,17 +11486,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -10777,6 +11513,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -10819,12 +11561,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -10894,12 +11643,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel @@ -11149,17 +11905,25 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -11168,6 +11932,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class CreditAllocation < Orb::BaseModel @@ -11210,12 +11980,19 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -11285,12 +12062,19 @@ class Minimum < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class DimensionalPriceConfiguration < Orb::BaseModel diff --git a/lib/orb/models/price_create_params.rb b/lib/orb/models/price_create_params.rb index b9cf79a0..0cf5bf2a 100644 --- a/lib/orb/models/price_create_params.rb +++ b/lib/orb/models/price_create_params.rb @@ -337,10 +337,10 @@ class PriceCreateParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -349,13 +349,26 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end - # @abstract - class ModelType < Orb::Enum + module ModelType + extend Orb::Enum + CUMULATIVE_GROUPED_BULK = :cumulative_grouped_bulk finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class UnitConfig < Orb::BaseModel @@ -398,14 +411,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -434,14 +453,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end diff --git a/lib/orb/models/subscription.rb b/lib/orb/models/subscription.rb index 0e8f268d..392c4d11 100644 --- a/lib/orb/models/subscription.rb +++ b/lib/orb/models/subscription.rb @@ -305,8 +305,9 @@ class AdjustmentInterval < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -715,8 +716,9 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + discriminator :discount_type variant :amount, -> { Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval } @@ -1197,13 +1199,20 @@ class RedeemedCoupon < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ENDED = :ended UPCOMING = :upcoming finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_cancel_params.rb b/lib/orb/models/subscription_cancel_params.rb index 0634c86e..35a6c7a3 100644 --- a/lib/orb/models/subscription_cancel_params.rb +++ b/lib/orb/models/subscription_cancel_params.rb @@ -38,15 +38,21 @@ class SubscriptionCancelParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # Determines the timing of subscription cancellation - class CancelOption < Orb::Enum + module CancelOption + extend Orb::Enum + END_OF_SUBSCRIPTION_TERM = :end_of_subscription_term IMMEDIATE = :immediate REQUESTED_DATE = :requested_date finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/subscription_cancel_response.rb b/lib/orb/models/subscription_cancel_response.rb index 9276795d..41ebb884 100644 --- a/lib/orb/models/subscription_cancel_response.rb +++ b/lib/orb/models/subscription_cancel_response.rb @@ -288,8 +288,9 @@ class AdjustmentInterval < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -698,8 +699,9 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + discriminator :discount_type variant :amount, -> { Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval } @@ -1181,13 +1183,20 @@ class RedeemedCoupon < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ENDED = :ended UPCOMING = :upcoming finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_create_params.rb b/lib/orb/models/subscription_create_params.rb index 61f0b062..e4ecc929 100644 --- a/lib/orb/models/subscription_create_params.rb +++ b/lib/orb/models/subscription_create_params.rb @@ -343,10 +343,10 @@ class AddAdjustment < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The definition of a new adjustment to create and add to the subscription. - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :percentage_discount, @@ -721,10 +721,10 @@ class AllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence at which to allocate the amount to the customer. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -733,6 +733,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -773,20 +779,27 @@ class Discount < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE = :percentage USAGE = :usage AMOUNT = :amount finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - # # The definition of a new price to create and add to the subscription. - class Price < Orb::Union + module Price + extend Orb::Union + discriminator :model_type variant :unit, -> { Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice } @@ -1011,10 +1024,10 @@ class NewSubscriptionUnitPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1023,6 +1036,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class UnitConfig < Orb::BaseModel @@ -1065,14 +1084,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1101,14 +1126,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1265,10 +1296,10 @@ class NewSubscriptionPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1277,6 +1308,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class PackageConfig < Orb::BaseModel @@ -1327,14 +1364,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1363,14 +1406,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1527,10 +1576,10 @@ class NewSubscriptionMatrixPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1539,6 +1588,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class MatrixConfig < Orb::BaseModel @@ -1624,14 +1679,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1660,14 +1721,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1824,10 +1891,10 @@ class NewSubscriptionTieredPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1836,6 +1903,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredConfig < Orb::BaseModel @@ -1908,14 +1981,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1944,14 +2023,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2108,10 +2193,10 @@ class NewSubscriptionTieredBpsPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -2120,6 +2205,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredBpsConfig < Orb::BaseModel @@ -2204,14 +2295,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2240,14 +2337,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2426,10 +2529,10 @@ class BpsConfig < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -2438,6 +2541,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -2465,14 +2574,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2501,14 +2616,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2711,10 +2832,10 @@ class Tier < Orb::BaseModel end end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -2723,6 +2844,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -2750,14 +2877,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2786,14 +2919,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2988,10 +3127,10 @@ class Tier < Orb::BaseModel end end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3000,6 +3139,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3027,14 +3172,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3063,14 +3214,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3226,10 +3383,10 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3238,6 +3395,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3265,14 +3428,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3301,14 +3470,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3464,10 +3639,10 @@ class NewSubscriptionTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3476,6 +3651,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3503,14 +3684,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3539,14 +3726,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3702,10 +3895,10 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3714,6 +3907,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3741,14 +3940,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3777,14 +3982,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3940,10 +4151,10 @@ class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3952,6 +4163,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3979,14 +4196,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4015,14 +4238,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4178,10 +4407,10 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4190,6 +4419,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4217,14 +4452,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4253,14 +4494,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4416,10 +4663,10 @@ class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4428,6 +4675,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4455,14 +4708,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4491,14 +4750,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4654,10 +4919,10 @@ class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4666,6 +4931,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4693,14 +4964,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4729,14 +5006,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4892,10 +5175,10 @@ class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4904,6 +5187,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4931,14 +5220,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4967,14 +5262,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5130,10 +5431,10 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5142,6 +5443,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5169,14 +5476,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5205,14 +5518,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5368,10 +5687,10 @@ class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5380,6 +5699,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5407,14 +5732,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5443,14 +5774,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5606,10 +5943,10 @@ class NewSubscriptionScalableMatrixWithUnitPricingPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5618,6 +5955,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5645,14 +5988,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5681,14 +6030,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5844,10 +6199,10 @@ class NewSubscriptionScalableMatrixWithTieredPricingPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5856,6 +6211,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5883,14 +6244,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5919,14 +6286,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6082,10 +6455,10 @@ class NewSubscriptionCumulativeGroupedBulkPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6094,6 +6467,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6121,14 +6500,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6157,14 +6542,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6320,10 +6711,10 @@ class NewSubscriptionMaxGroupTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6332,6 +6723,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6359,14 +6756,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6395,14 +6798,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6558,10 +6967,10 @@ class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6570,6 +6979,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6597,14 +7012,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6633,14 +7054,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6796,10 +7223,10 @@ class NewSubscriptionMatrixWithDisplayNamePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6808,6 +7235,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6835,14 +7268,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6871,14 +7310,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -7034,10 +7479,10 @@ class NewSubscriptionGroupedTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -7046,6 +7491,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -7073,14 +7524,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -7109,14 +7566,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -7164,15 +7627,21 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # @deprecated - class ExternalMarketplace < Orb::Enum + module ExternalMarketplace + extend Orb::Enum + GOOGLE = :google AWS = :aws AZURE = :azure finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class RemoveAdjustment < Orb::BaseModel @@ -7233,10 +7702,10 @@ class ReplaceAdjustment < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The definition of a new adjustment to create and add to the subscription. - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :percentage_discount, @@ -7600,10 +8069,10 @@ class AllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence at which to allocate the amount to the customer. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -7612,6 +8081,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -7652,20 +8127,27 @@ class Discount < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE = :percentage USAGE = :usage AMOUNT = :amount finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - # # The definition of a new price to create and add to the subscription. - class Price < Orb::Union + module Price + extend Orb::Union + discriminator :model_type variant :unit, -> { Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice } @@ -7892,10 +8374,10 @@ class NewSubscriptionUnitPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -7904,6 +8386,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class UnitConfig < Orb::BaseModel @@ -7946,14 +8434,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -7982,14 +8476,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -8146,10 +8646,10 @@ class NewSubscriptionPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -8158,6 +8658,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class PackageConfig < Orb::BaseModel @@ -8208,14 +8714,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -8244,14 +8756,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -8408,10 +8926,10 @@ class NewSubscriptionMatrixPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -8420,6 +8938,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class MatrixConfig < Orb::BaseModel @@ -8505,14 +9029,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -8541,14 +9071,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -8705,10 +9241,10 @@ class NewSubscriptionTieredPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -8717,6 +9253,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredConfig < Orb::BaseModel @@ -8789,14 +9331,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -8825,14 +9373,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -8989,10 +9543,10 @@ class NewSubscriptionTieredBpsPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -9001,6 +9555,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredBpsConfig < Orb::BaseModel @@ -9085,14 +9645,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -9121,14 +9687,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -9307,10 +9879,10 @@ class BpsConfig < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -9319,6 +9891,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -9346,14 +9924,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -9382,14 +9966,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -9596,10 +10186,10 @@ class Tier < Orb::BaseModel end end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -9608,6 +10198,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -9635,14 +10231,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -9671,14 +10273,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -9873,10 +10481,10 @@ class Tier < Orb::BaseModel end end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -9885,6 +10493,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -9912,14 +10526,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -9948,14 +10568,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -10111,10 +10737,10 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -10123,6 +10749,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -10150,14 +10782,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -10186,14 +10824,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -10349,10 +10993,10 @@ class NewSubscriptionTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -10361,6 +11005,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -10388,14 +11038,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -10424,14 +11080,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -10587,10 +11249,10 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -10599,6 +11261,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -10626,14 +11294,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -10662,14 +11336,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -10825,10 +11505,10 @@ class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -10837,6 +11517,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -10864,14 +11550,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -10900,14 +11592,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -11063,10 +11761,10 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -11075,6 +11773,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -11102,14 +11806,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -11138,14 +11848,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -11301,10 +12017,10 @@ class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -11313,6 +12029,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -11340,14 +12062,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -11376,14 +12104,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -11539,10 +12273,10 @@ class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -11551,6 +12285,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -11578,14 +12318,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -11614,14 +12360,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -11777,10 +12529,10 @@ class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -11789,6 +12541,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -11816,14 +12574,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -11852,14 +12616,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -12015,10 +12785,10 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -12027,6 +12797,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -12054,14 +12830,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -12090,14 +12872,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -12253,10 +13041,10 @@ class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -12265,6 +13053,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -12292,14 +13086,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -12328,14 +13128,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -12491,10 +13297,10 @@ class NewSubscriptionScalableMatrixWithUnitPricingPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -12503,6 +13309,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -12530,14 +13342,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -12566,14 +13384,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -12729,10 +13553,10 @@ class NewSubscriptionScalableMatrixWithTieredPricingPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -12741,6 +13565,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -12768,14 +13598,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -12804,14 +13640,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -12967,10 +13809,10 @@ class NewSubscriptionCumulativeGroupedBulkPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -12979,6 +13821,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -13006,14 +13854,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -13042,14 +13896,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -13205,10 +14065,10 @@ class NewSubscriptionMaxGroupTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -13217,6 +14077,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -13244,14 +14110,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -13280,14 +14152,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -13443,10 +14321,10 @@ class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -13455,6 +14333,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -13482,14 +14366,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -13518,14 +14408,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -13681,10 +14577,10 @@ class NewSubscriptionMatrixWithDisplayNamePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -13693,6 +14589,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -13720,14 +14622,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -13756,14 +14664,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -13919,10 +14833,10 @@ class NewSubscriptionGroupedTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -13931,6 +14845,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -13958,14 +14878,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -13994,14 +14920,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/subscription_create_response.rb b/lib/orb/models/subscription_create_response.rb index 2d1d2513..435f464c 100644 --- a/lib/orb/models/subscription_create_response.rb +++ b/lib/orb/models/subscription_create_response.rb @@ -288,8 +288,9 @@ class AdjustmentInterval < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -698,8 +699,9 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + discriminator :discount_type variant :amount, -> { Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval } @@ -1181,13 +1183,20 @@ class RedeemedCoupon < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ENDED = :ended UPCOMING = :upcoming finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_fetch_costs_params.rb b/lib/orb/models/subscription_fetch_costs_params.rb index 0dfbddd6..23868e0a 100644 --- a/lib/orb/models/subscription_fetch_costs_params.rb +++ b/lib/orb/models/subscription_fetch_costs_params.rb @@ -45,17 +45,23 @@ class SubscriptionFetchCostsParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # Controls whether Orb returns cumulative costs since the start of the billing # period, or incremental day-by-day costs. If your customer has minimums or # discounts, it's strongly recommended that you use the default cumulative # behavior. - class ViewMode < Orb::Enum + module ViewMode + extend Orb::Enum + PERIODIC = :periodic CUMULATIVE = :cumulative finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/subscription_fetch_usage_params.rb b/lib/orb/models/subscription_fetch_usage_params.rb index e09aebd5..2e5dbf4d 100644 --- a/lib/orb/models/subscription_fetch_usage_params.rb +++ b/lib/orb/models/subscription_fetch_usage_params.rb @@ -100,26 +100,38 @@ class SubscriptionFetchUsageParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # This determines the windowing of usage reporting. - class Granularity < Orb::Enum + module Granularity + extend Orb::Enum + DAY = :day finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end - # @abstract - # # Controls whether Orb returns cumulative usage since the start of the billing # period, or incremental day-by-day usage. If your customer has minimums or # discounts, it's strongly recommended that you use the default cumulative # behavior. - class ViewMode < Orb::Enum + module ViewMode + extend Orb::Enum + PERIODIC = :periodic CUMULATIVE = :cumulative finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/subscription_list_params.rb b/lib/orb/models/subscription_list_params.rb index e9ed3c30..70bdfb52 100644 --- a/lib/orb/models/subscription_list_params.rb +++ b/lib/orb/models/subscription_list_params.rb @@ -89,13 +89,20 @@ class SubscriptionListParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ENDED = :ended UPCOMING = :upcoming finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/subscription_price_intervals_params.rb b/lib/orb/models/subscription_price_intervals_params.rb index af2442e3..b1868896 100644 --- a/lib/orb/models/subscription_price_intervals_params.rb +++ b/lib/orb/models/subscription_price_intervals_params.rb @@ -204,11 +204,11 @@ class Add < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The start date of the price interval. This is the date that the price will start # billing on the subscription. - class StartDate < Orb::Union + module StartDate + extend Orb::Union + variant Time variant enum: -> { Orb::Models::BillingCycleRelativeDate } @@ -260,10 +260,10 @@ class AllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence at which to allocate the amount to the customer. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -272,11 +272,18 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - class Discount < Orb::Union + module Discount + extend Orb::Union + discriminator :discount_type variant :amount, @@ -360,11 +367,11 @@ class UsageDiscountCreationParams < Orb::BaseModel # end end - # @abstract - # # The end date of the price interval. This is the date that the price will stop # billing on the subscription. - class EndDate < Orb::Union + module EndDate + extend Orb::Union + variant Time variant enum: -> { Orb::Models::BillingCycleRelativeDate } @@ -398,10 +405,10 @@ class FixedFeeQuantityTransition < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The definition of a new price to create and add to the subscription. - class Price < Orb::Union + module Price + extend Orb::Union + discriminator :model_type variant :unit, -> { Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice } @@ -625,10 +632,10 @@ class NewFloatingUnitPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -637,6 +644,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class UnitConfig < Orb::BaseModel @@ -679,14 +692,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -715,14 +734,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -869,10 +894,10 @@ class NewFloatingPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -881,6 +906,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class PackageConfig < Orb::BaseModel @@ -931,14 +962,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -967,14 +1004,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1121,10 +1164,10 @@ class NewFloatingMatrixPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1133,6 +1176,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class MatrixConfig < Orb::BaseModel @@ -1218,14 +1267,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1254,14 +1309,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1408,10 +1469,10 @@ class NewFloatingMatrixWithAllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1420,6 +1481,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class MatrixWithAllocationConfig < Orb::BaseModel @@ -1512,14 +1579,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1548,14 +1621,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1702,10 +1781,10 @@ class NewFloatingTieredPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1714,6 +1793,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredConfig < Orb::BaseModel @@ -1786,14 +1871,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1822,14 +1913,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1976,10 +2073,10 @@ class NewFloatingTieredBpsPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1988,6 +2085,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredBpsConfig < Orb::BaseModel @@ -2072,14 +2175,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2108,14 +2217,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2284,10 +2399,10 @@ class BpsConfig < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -2296,6 +2411,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -2323,14 +2444,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2359,14 +2486,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2559,10 +2692,10 @@ class Tier < Orb::BaseModel end end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -2571,6 +2704,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -2598,14 +2737,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2634,14 +2779,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2826,10 +2977,10 @@ class Tier < Orb::BaseModel end end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -2838,6 +2989,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -2865,14 +3022,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2901,14 +3064,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3054,10 +3223,10 @@ class NewFloatingThresholdTotalAmountPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3066,6 +3235,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3093,14 +3268,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3129,14 +3310,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3282,10 +3469,10 @@ class NewFloatingTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3294,6 +3481,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3321,14 +3514,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3357,14 +3556,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3510,10 +3715,10 @@ class NewFloatingGroupedTieredPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3522,6 +3727,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3549,14 +3760,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3585,14 +3802,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3738,10 +3961,10 @@ class NewFloatingMaxGroupTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3750,6 +3973,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3777,14 +4006,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3813,14 +4048,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3966,10 +4207,10 @@ class NewFloatingTieredWithMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3978,6 +4219,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4005,14 +4252,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4041,14 +4294,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4194,10 +4453,10 @@ class NewFloatingPackageWithAllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4206,6 +4465,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4233,14 +4498,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4269,14 +4540,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4422,10 +4699,10 @@ class NewFloatingTieredPackageWithMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4434,6 +4711,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4461,14 +4744,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4497,14 +4786,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4650,10 +4945,10 @@ class NewFloatingUnitWithPercentPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4662,6 +4957,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4689,14 +4990,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4725,14 +5032,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4878,10 +5191,10 @@ class NewFloatingTieredWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4890,6 +5203,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4917,14 +5236,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4953,14 +5278,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5106,10 +5437,10 @@ class NewFloatingUnitWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5118,6 +5449,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5145,14 +5482,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5181,14 +5524,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5334,10 +5683,10 @@ class NewFloatingGroupedAllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5346,6 +5695,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5373,14 +5728,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5409,14 +5770,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5562,10 +5929,10 @@ class NewFloatingGroupedWithProratedMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5574,6 +5941,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5601,14 +5974,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5637,14 +6016,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5790,10 +6175,10 @@ class NewFloatingGroupedWithMeteredMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5802,6 +6187,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5829,14 +6220,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5865,14 +6262,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6018,10 +6421,10 @@ class NewFloatingMatrixWithDisplayNamePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6030,6 +6433,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6057,14 +6466,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6093,14 +6508,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6246,10 +6667,10 @@ class NewFloatingBulkWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6258,6 +6679,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6285,14 +6712,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6321,14 +6754,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6474,10 +6913,10 @@ class NewFloatingGroupedTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6486,6 +6925,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6513,14 +6958,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6549,14 +7000,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6702,10 +7159,10 @@ class NewFloatingScalableMatrixWithUnitPricingPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6714,6 +7171,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6741,14 +7204,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6777,14 +7246,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6930,10 +7405,10 @@ class NewFloatingScalableMatrixWithTieredPricingPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6942,6 +7417,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6969,14 +7450,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -7005,14 +7492,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -7158,10 +7651,10 @@ class NewFloatingCumulativeGroupedBulkPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -7170,6 +7663,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -7197,14 +7696,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -7233,14 +7738,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -7291,10 +7802,10 @@ class AddAdjustment < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The definition of a new adjustment to create and add to the subscription. - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :percentage_discount, @@ -7529,13 +8040,13 @@ class NewMaximum < Orb::BaseModel # end end - # @abstract - # # The start date of the adjustment interval. This is the date that the adjustment # will start affecting prices on the subscription. The adjustment will apply to # invoice dates that overlap with this `start_date`. This `start_date` is treated # as inclusive for in-advance prices, and exclusive for in-arrears prices. - class StartDate < Orb::Union + module StartDate + extend Orb::Union + variant Time variant enum: -> { Orb::Models::BillingCycleRelativeDate } @@ -7547,13 +8058,13 @@ class StartDate < Orb::Union # end end - # @abstract - # # The end date of the adjustment interval. This is the date that the adjustment # will stop affecting prices on the subscription. The adjustment will apply to # invoice dates that overlap with this `end_date`.This `end_date` is treated as # exclusive for in-advance prices, and inclusive for in-arrears prices. - class EndDate < Orb::Union + module EndDate + extend Orb::Union + variant Time variant enum: -> { Orb::Models::BillingCycleRelativeDate } @@ -7653,11 +8164,11 @@ class Edit < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The updated end date of this price interval. If not specified, the start date # will not be updated. - class EndDate < Orb::Union + module EndDate + extend Orb::Union + variant Time variant enum: -> { Orb::Models::BillingCycleRelativeDate } @@ -7691,11 +8202,11 @@ class FixedFeeQuantityTransition < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The updated start date of this price interval. If not specified, the start date # will not be updated. - class StartDate < Orb::Union + module StartDate + extend Orb::Union + variant Time variant enum: -> { Orb::Models::BillingCycleRelativeDate } @@ -7745,11 +8256,11 @@ class EditAdjustment < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The updated end date of this adjustment interval. If not specified, the start # date will not be updated. - class EndDate < Orb::Union + module EndDate + extend Orb::Union + variant Time variant enum: -> { Orb::Models::BillingCycleRelativeDate } @@ -7761,11 +8272,11 @@ class EndDate < Orb::Union # end end - # @abstract - # # The updated start date of this adjustment interval. If not specified, the start # date will not be updated. - class StartDate < Orb::Union + module StartDate + extend Orb::Union + variant Time variant enum: -> { Orb::Models::BillingCycleRelativeDate } diff --git a/lib/orb/models/subscription_price_intervals_response.rb b/lib/orb/models/subscription_price_intervals_response.rb index c670e24e..2c753529 100644 --- a/lib/orb/models/subscription_price_intervals_response.rb +++ b/lib/orb/models/subscription_price_intervals_response.rb @@ -293,8 +293,9 @@ class AdjustmentInterval < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -703,8 +704,9 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + discriminator :discount_type variant :amount, @@ -1188,13 +1190,20 @@ class RedeemedCoupon < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ENDED = :ended UPCOMING = :upcoming finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_schedule_plan_change_params.rb b/lib/orb/models/subscription_schedule_plan_change_params.rb index 17d8ebce..67a4268c 100644 --- a/lib/orb/models/subscription_schedule_plan_change_params.rb +++ b/lib/orb/models/subscription_schedule_plan_change_params.rb @@ -273,13 +273,20 @@ class SubscriptionSchedulePlanChangeParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class ChangeOption < Orb::Enum + module ChangeOption + extend Orb::Enum + REQUESTED_DATE = :requested_date END_OF_SUBSCRIPTION_TERM = :end_of_subscription_term IMMEDIATE = :immediate finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class AddAdjustment < Orb::BaseModel @@ -321,10 +328,10 @@ class AddAdjustment < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The definition of a new adjustment to create and add to the subscription. - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :percentage_discount, @@ -704,10 +711,10 @@ class AllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence at which to allocate the amount to the customer. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -716,6 +723,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -756,20 +769,27 @@ class Discount < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE = :percentage USAGE = :usage AMOUNT = :amount finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - # # The definition of a new price to create and add to the subscription. - class Price < Orb::Union + module Price + extend Orb::Union + discriminator :model_type variant :unit, @@ -999,10 +1019,10 @@ class NewSubscriptionUnitPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1011,6 +1031,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class UnitConfig < Orb::BaseModel @@ -1053,14 +1079,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1089,14 +1121,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1253,10 +1291,10 @@ class NewSubscriptionPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1265,6 +1303,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class PackageConfig < Orb::BaseModel @@ -1315,14 +1359,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1351,14 +1401,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1515,10 +1571,10 @@ class NewSubscriptionMatrixPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1527,6 +1583,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class MatrixConfig < Orb::BaseModel @@ -1612,14 +1674,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1648,14 +1716,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -1812,10 +1886,10 @@ class NewSubscriptionTieredPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -1824,6 +1898,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredConfig < Orb::BaseModel @@ -1900,14 +1980,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -1936,14 +2022,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2100,10 +2192,10 @@ class NewSubscriptionTieredBpsPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -2112,6 +2204,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredBpsConfig < Orb::BaseModel @@ -2196,14 +2294,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2232,14 +2336,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2418,10 +2528,10 @@ class BpsConfig < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -2430,6 +2540,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -2457,14 +2573,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2493,14 +2615,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2707,10 +2835,10 @@ class Tier < Orb::BaseModel end end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -2719,6 +2847,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -2746,14 +2880,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -2782,14 +2922,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -2988,10 +3134,10 @@ class Tier < Orb::BaseModel end end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3000,6 +3146,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3027,14 +3179,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3063,14 +3221,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3226,10 +3390,10 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3238,6 +3402,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3265,14 +3435,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3301,14 +3477,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3464,10 +3646,10 @@ class NewSubscriptionTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3476,6 +3658,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3503,14 +3691,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3539,14 +3733,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3702,10 +3902,10 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3714,6 +3914,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3741,14 +3947,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -3777,14 +3989,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -3940,10 +4158,10 @@ class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -3952,6 +4170,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -3979,14 +4203,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4015,14 +4245,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4178,10 +4414,10 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4190,6 +4426,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4217,14 +4459,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4253,14 +4501,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4416,10 +4670,10 @@ class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4428,6 +4682,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4455,14 +4715,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4491,14 +4757,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4654,10 +4926,10 @@ class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4666,6 +4938,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4693,14 +4971,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4729,14 +5013,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -4892,10 +5182,10 @@ class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -4904,6 +5194,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -4931,14 +5227,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -4967,14 +5269,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5130,10 +5438,10 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5142,6 +5450,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5169,14 +5483,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5205,14 +5525,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5368,10 +5694,10 @@ class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5380,6 +5706,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5407,14 +5739,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5443,14 +5781,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5606,10 +5950,10 @@ class NewSubscriptionScalableMatrixWithUnitPricingPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5618,6 +5962,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5645,14 +5995,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5681,14 +6037,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -5844,10 +6206,10 @@ class NewSubscriptionScalableMatrixWithTieredPricingPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -5856,6 +6218,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -5883,14 +6251,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -5919,14 +6293,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6082,10 +6462,10 @@ class NewSubscriptionCumulativeGroupedBulkPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6094,6 +6474,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6121,14 +6507,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6157,14 +6549,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6320,10 +6718,10 @@ class NewSubscriptionMaxGroupTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6332,6 +6730,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6359,14 +6763,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6395,14 +6805,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6558,10 +6974,10 @@ class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6570,6 +6986,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6597,14 +7019,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6633,14 +7061,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -6796,10 +7230,10 @@ class NewSubscriptionMatrixWithDisplayNamePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -6808,6 +7242,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -6835,14 +7275,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -6871,14 +7317,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -7034,10 +7486,10 @@ class NewSubscriptionGroupedTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -7046,6 +7498,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -7073,14 +7531,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -7109,14 +7573,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -7129,17 +7599,23 @@ class DurationUnit < Orb::Enum end end - # @abstract - # # Reset billing periods to be aligned with the plan change's effective date or # start of the month. Defaults to `unchanged` which keeps subscription's existing # billing cycle alignment. - class BillingCycleAlignment < Orb::Enum + module BillingCycleAlignment + extend Orb::Enum + UNCHANGED = :unchanged PLAN_CHANGE_DATE = :plan_change_date START_OF_MONTH = :start_of_month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleAnchorConfiguration < Orb::BaseModel @@ -7236,10 +7712,10 @@ class ReplaceAdjustment < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The definition of a new adjustment to create and add to the subscription. - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :percentage_discount, @@ -7607,10 +8083,10 @@ class AllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence at which to allocate the amount to the customer. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME = :one_time MONTHLY = :monthly QUARTERLY = :quarterly @@ -7619,6 +8095,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -7659,20 +8141,27 @@ class Discount < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE = :percentage USAGE = :usage AMOUNT = :amount finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end - # @abstract - # # The definition of a new price to create and add to the subscription. - class Price < Orb::Union + module Price + extend Orb::Union + discriminator :model_type variant :unit, @@ -7902,10 +8391,10 @@ class NewSubscriptionUnitPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -7914,6 +8403,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class UnitConfig < Orb::BaseModel @@ -7956,14 +8451,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -7992,14 +8493,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -8156,10 +8663,10 @@ class NewSubscriptionPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -8168,6 +8675,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class PackageConfig < Orb::BaseModel @@ -8218,14 +8731,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -8254,14 +8773,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -8418,10 +8943,10 @@ class NewSubscriptionMatrixPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -8430,6 +8955,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class MatrixConfig < Orb::BaseModel @@ -8515,14 +9046,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -8551,14 +9088,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -8715,10 +9258,10 @@ class NewSubscriptionTieredPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -8727,6 +9270,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredConfig < Orb::BaseModel @@ -8803,14 +9352,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -8839,14 +9394,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -9003,10 +9564,10 @@ class NewSubscriptionTieredBpsPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -9015,6 +9576,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TieredBpsConfig < Orb::BaseModel @@ -9099,14 +9666,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -9135,14 +9708,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -9321,10 +9900,10 @@ class BpsConfig < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -9333,6 +9912,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -9360,14 +9945,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -9396,14 +9987,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -9610,10 +10207,10 @@ class Tier < Orb::BaseModel end end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -9622,6 +10219,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -9649,14 +10252,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -9685,14 +10294,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -9891,10 +10506,10 @@ class Tier < Orb::BaseModel end end - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -9903,6 +10518,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -9930,14 +10551,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -9966,14 +10593,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -10129,10 +10762,10 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -10141,6 +10774,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -10168,14 +10807,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -10204,14 +10849,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -10367,10 +11018,10 @@ class NewSubscriptionTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -10379,6 +11030,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -10406,14 +11063,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -10442,14 +11105,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -10605,10 +11274,10 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -10617,6 +11286,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -10644,14 +11319,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -10680,14 +11361,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -10843,10 +11530,10 @@ class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -10855,6 +11542,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -10882,14 +11575,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -10918,14 +11617,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -11081,10 +11786,10 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -11093,6 +11798,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -11120,14 +11831,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -11156,14 +11873,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -11319,10 +12042,10 @@ class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -11331,6 +12054,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -11358,14 +12087,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -11394,14 +12129,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -11557,10 +12298,10 @@ class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -11569,6 +12310,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -11596,14 +12343,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -11632,14 +12385,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -11795,10 +12554,10 @@ class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -11807,6 +12566,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -11834,14 +12599,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -11870,14 +12641,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -12033,10 +12810,10 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -12045,6 +12822,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -12072,14 +12855,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -12108,14 +12897,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -12271,10 +13066,10 @@ class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -12283,6 +13078,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -12310,14 +13111,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -12346,14 +13153,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -12509,10 +13322,10 @@ class NewSubscriptionScalableMatrixWithUnitPricingPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -12521,6 +13334,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -12548,14 +13367,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -12584,14 +13409,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -12747,10 +13578,10 @@ class NewSubscriptionScalableMatrixWithTieredPricingPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -12759,6 +13590,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -12786,14 +13623,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -12822,14 +13665,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -12985,10 +13834,10 @@ class NewSubscriptionCumulativeGroupedBulkPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -12997,6 +13846,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -13024,14 +13879,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -13060,14 +13921,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -13223,10 +14090,10 @@ class NewSubscriptionMaxGroupTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -13235,6 +14102,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -13262,14 +14135,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -13298,14 +14177,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -13461,10 +14346,10 @@ class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -13473,6 +14358,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -13500,14 +14391,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -13536,14 +14433,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -13699,10 +14602,10 @@ class NewSubscriptionMatrixWithDisplayNamePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -13711,6 +14614,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -13738,14 +14647,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -13774,14 +14689,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -13937,10 +14858,10 @@ class NewSubscriptionGroupedTieredPackagePrice < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The cadence to bill for this price on. - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL = :annual SEMI_ANNUAL = :semi_annual MONTHLY = :monthly @@ -13949,6 +14870,12 @@ class Cadence < Orb::Enum CUSTOM = :custom finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class BillingCycleConfiguration < Orb::BaseModel @@ -13976,14 +14903,20 @@ class BillingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end @@ -14012,14 +14945,20 @@ class InvoicingCycleConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The unit of billing period duration. - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY = :day MONTH = :month finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/subscription_schedule_plan_change_response.rb b/lib/orb/models/subscription_schedule_plan_change_response.rb index accc0045..4349f917 100644 --- a/lib/orb/models/subscription_schedule_plan_change_response.rb +++ b/lib/orb/models/subscription_schedule_plan_change_response.rb @@ -293,8 +293,9 @@ class AdjustmentInterval < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -703,8 +704,9 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + discriminator :discount_type variant :amount, @@ -1188,13 +1190,20 @@ class RedeemedCoupon < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ENDED = :ended UPCOMING = :upcoming finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_trigger_phase_response.rb b/lib/orb/models/subscription_trigger_phase_response.rb index 8b0138a8..69d72bc9 100644 --- a/lib/orb/models/subscription_trigger_phase_response.rb +++ b/lib/orb/models/subscription_trigger_phase_response.rb @@ -293,8 +293,9 @@ class AdjustmentInterval < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -703,8 +704,9 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + discriminator :discount_type variant :amount, @@ -1188,13 +1190,20 @@ class RedeemedCoupon < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ENDED = :ended UPCOMING = :upcoming finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_unschedule_cancellation_response.rb b/lib/orb/models/subscription_unschedule_cancellation_response.rb index a0e7bb94..64ea86a0 100644 --- a/lib/orb/models/subscription_unschedule_cancellation_response.rb +++ b/lib/orb/models/subscription_unschedule_cancellation_response.rb @@ -293,8 +293,9 @@ class AdjustmentInterval < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -703,8 +704,9 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + discriminator :discount_type variant :amount, @@ -1188,13 +1190,20 @@ class RedeemedCoupon < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ENDED = :ended UPCOMING = :upcoming finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TrialInfo < Orb::BaseModel 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 2a6dd49c..2d331a55 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 @@ -293,8 +293,9 @@ class AdjustmentInterval < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -703,8 +704,9 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + discriminator :discount_type variant :amount, @@ -1192,13 +1194,20 @@ class RedeemedCoupon < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ENDED = :ended UPCOMING = :upcoming finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TrialInfo < Orb::BaseModel 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 b21e230a..d6494fe3 100644 --- a/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +++ b/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb @@ -293,8 +293,9 @@ class AdjustmentInterval < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -703,8 +704,9 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + discriminator :discount_type variant :amount, @@ -1188,13 +1190,20 @@ class RedeemedCoupon < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ENDED = :ended UPCOMING = :upcoming finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TrialInfo < Orb::BaseModel 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 9a1e6c9e..d809ee43 100644 --- a/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +++ b/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb @@ -68,17 +68,23 @@ class SubscriptionUpdateFixedFeeQuantityParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # Determines when the change takes effect. Note that if `effective_date` is # specified, this defaults to `effective_date`. Otherwise, this defaults to # `immediate` unless it's explicitly set to `upcoming_invoice`. - class ChangeOption < Orb::Enum + module ChangeOption + extend Orb::Enum + IMMEDIATE = :immediate UPCOMING_INVOICE = :upcoming_invoice EFFECTIVE_DATE = :effective_date finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end 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 203550eb..16034ff7 100644 --- a/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +++ b/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb @@ -293,8 +293,9 @@ class AdjustmentInterval < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -703,8 +704,9 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + discriminator :discount_type variant :amount, @@ -1188,13 +1190,20 @@ class RedeemedCoupon < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ENDED = :ended UPCOMING = :upcoming finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_update_trial_params.rb b/lib/orb/models/subscription_update_trial_params.rb index 2abbe3f1..098dc5b3 100644 --- a/lib/orb/models/subscription_update_trial_params.rb +++ b/lib/orb/models/subscription_update_trial_params.rb @@ -11,7 +11,7 @@ class SubscriptionUpdateTrialParams < Orb::BaseModel # The new date that the trial should end, or the literal string `immediate` to end # the trial immediately. # - # @return [Time, Symbol, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::UnionMember1] + # @return [Time, Symbol] required :trial_end_date, union: -> { Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate } # @!attribute [r] shift @@ -26,7 +26,7 @@ class SubscriptionUpdateTrialParams < Orb::BaseModel # attr_writer :shift # @!parse - # # @param trial_end_date [Time, Symbol, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::UnionMember1] + # # @param trial_end_date [Time, Symbol] # # @param shift [Boolean] # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] # # @@ -34,25 +34,24 @@ class SubscriptionUpdateTrialParams < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - # # The new date that the trial should end, or the literal string `immediate` to end # the trial immediately. - class TrialEndDate < Orb::Union - variant Time + module TrialEndDate + extend Orb::Union + + # @!group - variant enum: -> { Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::UnionMember1 } + IMMEDIATE = :immediate - # @abstract - class UnionMember1 < Orb::Enum - IMMEDIATE = :immediate + # @!endgroup + + variant Time - finalize! - end + variant const: Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::IMMEDIATE # @!parse # class << self - # # @return [Array(Time, Symbol, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::UnionMember1)] + # # @return [Array(Time, Symbol)] # def variants; end # end end diff --git a/lib/orb/models/subscription_update_trial_response.rb b/lib/orb/models/subscription_update_trial_response.rb index 26f17746..325243b3 100644 --- a/lib/orb/models/subscription_update_trial_response.rb +++ b/lib/orb/models/subscription_update_trial_response.rb @@ -291,8 +291,9 @@ class AdjustmentInterval < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + discriminator :adjustment_type variant :usage_discount, @@ -701,8 +702,9 @@ class BillingCycleAnchorConfiguration < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + discriminator :discount_type variant :amount, @@ -1186,13 +1188,20 @@ class RedeemedCoupon < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE = :active ENDED = :ended UPCOMING = :upcoming finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end class TrialInfo < Orb::BaseModel diff --git a/lib/orb/models/subscription_usage.rb b/lib/orb/models/subscription_usage.rb index 72d6b419..651d552c 100644 --- a/lib/orb/models/subscription_usage.rb +++ b/lib/orb/models/subscription_usage.rb @@ -2,8 +2,9 @@ module Orb module Models - # @abstract - class SubscriptionUsage < Orb::Union + module SubscriptionUsage + extend Orb::Union + variant -> { Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage } variant -> { Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage } @@ -95,12 +96,19 @@ class Usage < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class ViewMode < Orb::Enum + module ViewMode + extend Orb::Enum + PERIODIC = :periodic CUMULATIVE = :cumulative finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end @@ -223,12 +231,19 @@ class Usage < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void end - # @abstract - class ViewMode < Orb::Enum + module ViewMode + extend Orb::Enum + PERIODIC = :periodic CUMULATIVE = :cumulative finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/trial_discount.rb b/lib/orb/models/trial_discount.rb index 03b3799f..41644b8a 100644 --- a/lib/orb/models/trial_discount.rb +++ b/lib/orb/models/trial_discount.rb @@ -52,11 +52,18 @@ class TrialDiscount < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + TRIAL = :trial finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/models/usage_discount.rb b/lib/orb/models/usage_discount.rb index 34024657..bdbfd444 100644 --- a/lib/orb/models/usage_discount.rb +++ b/lib/orb/models/usage_discount.rb @@ -37,11 +37,18 @@ class UsageDiscount < Orb::BaseModel # def initialize: (Hash | Orb::BaseModel) -> void - # @abstract - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + USAGE = :usage finalize! + + class << self + # @!parse + # # @return [Array] + # def values; end + end end end end diff --git a/lib/orb/page.rb b/lib/orb/page.rb index e06ca333..95e63a90 100644 --- a/lib/orb/page.rb +++ b/lib/orb/page.rb @@ -2,31 +2,26 @@ module Orb # @example - # ```ruby - # if page.has_next? - # page = page.next_page - # end - # ``` + # if page.has_next? + # page = page.next_page + # end # # @example - # ```ruby - # page.auto_paging_each do |coupon| - # puts(coupon) - # end - # ``` + # page.auto_paging_each do |coupon| + # puts(coupon) + # end # # @example - # ```ruby - # coupons = page - # .to_enum - # .lazy - # .select { _1.object_id.even? } - # .map(&:itself) - # .take(2) - # .to_a + # coupons = + # page + # .to_enum + # .lazy + # .select { _1.object_id.even? } + # .map(&:itself) + # .take(2) + # .to_a # - # coupons => Array - # ``` + # coupons => Array class Page include Orb::BasePage @@ -48,7 +43,7 @@ def initialize(client:, req:, headers:, page_data:) case page_data in {data: Array | nil => data} - @data = data&.map { model.coerce(_1) } + @data = data&.map { Orb::Converter.coerce(model, _1) } else end @@ -91,7 +86,9 @@ def auto_paging_each(&blk) # @return [String] def inspect + # rubocop:disable Layout/LineLength "#<#{self.class}:0x#{object_id.to_s(16)} data=#{data.inspect} pagination_metadata=#{pagination_metadata.inspect}>" + # rubocop:enable Layout/LineLength end class PaginationMetadata < Orb::BaseModel diff --git a/lib/orb/pooled_net_requester.rb b/lib/orb/pooled_net_requester.rb index f90b8969..3a1e5844 100644 --- a/lib/orb/pooled_net_requester.rb +++ b/lib/orb/pooled_net_requester.rb @@ -3,6 +3,10 @@ module Orb # @api private class PooledNetRequester + # from the golang stdlib + # https://github.com/golang/go/blob/c8eced8580028328fde7c03cbfcb720ce15b2358/src/net/http/transport.go#L49 + KEEP_ALIVE_TIMEOUT = 30 + class << self # @api private # @@ -47,6 +51,7 @@ def calibrate_socket_timeout(conn, deadline) # # @param blk [Proc] # + # @yieldparam [String] # @return [Net::HTTPGenericRequest] def build_request(request, &) method, url, headers, body = request.fetch_values(:method, :url, :headers, :body) @@ -82,6 +87,9 @@ def build_request(request, &) # @param url [URI::Generic] # @param deadline [Float] # @param blk [Proc] + # + # @raise [Timeout::Error] + # @yieldparam [Net::HTTP] private def with_pool(url, deadline:, &blk) origin = Orb::Util.uri_origin(url) timeout = deadline - Orb::Util.monotonic_secs @@ -124,7 +132,10 @@ def execute(request) end self.class.calibrate_socket_timeout(conn, deadline) - conn.start unless conn.started? + unless conn.started? + conn.keep_alive_timeout = self.class::KEEP_ALIVE_TIMEOUT + conn.start + end self.class.calibrate_socket_timeout(conn, deadline) conn.request(req) do |rsp| diff --git a/lib/orb/request_options.rb b/lib/orb/request_options.rb index a75b14e8..9025852c 100644 --- a/lib/orb/request_options.rb +++ b/lib/orb/request_options.rb @@ -83,7 +83,7 @@ def self.validate!(opts) # Extra data to send with the request. These are deep merged into any data # generated as part of the normal request. # - # @return [Hash{Symbol=>Object}, nil] + # @return [Object, nil] optional :extra_body, Orb::HashOf[Orb::Unknown] # @!attribute max_retries diff --git a/lib/orb/resources/customers/credits/ledger.rb b/lib/orb/resources/customers/credits/ledger.rb index ed3e6953..b3e03f5d 100644 --- a/lib/orb/resources/customers/credits/ledger.rb +++ b/lib/orb/resources/customers/credits/ledger.rb @@ -449,7 +449,8 @@ def create_entry(customer_id, params) # # @return [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] def create_entry_by_external_id(external_customer_id, params) - parsed, options = Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams.dump_request(params) + parsed, options = + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams.dump_request(params) @client.request( method: :post, path: ["customers/external_customer_id/%0s/credits/ledger_entry", external_customer_id], diff --git a/lib/orb/resources/customers/credits/top_ups.rb b/lib/orb/resources/customers/credits/top_ups.rb index 5c6a9fc6..8deb1b2b 100644 --- a/lib/orb/resources/customers/credits/top_ups.rb +++ b/lib/orb/resources/customers/credits/top_ups.rb @@ -91,9 +91,10 @@ def list(customer_id, params = {}) # @return [nil] def delete(top_up_id, params) parsed, options = Orb::Models::Customers::Credits::TopUpDeleteParams.dump_request(params) - customer_id = parsed.delete(:customer_id) do - raise ArgumentError.new("missing required path argument #{_1}") - end + customer_id = + parsed.delete(:customer_id) do + raise ArgumentError.new("missing required path argument #{_1}") + end @client.request( method: :delete, path: ["customers/%0s/credits/top_ups/%1s", customer_id, top_up_id], @@ -162,9 +163,10 @@ def create_by_external_id(external_customer_id, params) # @return [nil] def delete_by_external_id(top_up_id, params) parsed, options = Orb::Models::Customers::Credits::TopUpDeleteByExternalIDParams.dump_request(params) - external_customer_id = parsed.delete(:external_customer_id) do - raise ArgumentError.new("missing required path argument #{_1}") - end + external_customer_id = + parsed.delete(:external_customer_id) do + raise ArgumentError.new("missing required path argument #{_1}") + end @client.request( method: :delete, path: [ diff --git a/lib/orb/resources/dimensional_price_groups.rb b/lib/orb/resources/dimensional_price_groups.rb index 46d10f4b..03082b84 100644 --- a/lib/orb/resources/dimensional_price_groups.rb +++ b/lib/orb/resources/dimensional_price_groups.rb @@ -88,7 +88,8 @@ def list(params = {}) # @param client [Orb::Client] def initialize(client:) @client = client - @external_dimensional_price_group_id = Orb::Resources::DimensionalPriceGroups::ExternalDimensionalPriceGroupID.new(client: client) + @external_dimensional_price_group_id = + Orb::Resources::DimensionalPriceGroups::ExternalDimensionalPriceGroupID.new(client: client) end end end diff --git a/lib/orb/resources/subscriptions.rb b/lib/orb/resources/subscriptions.rb index 44504039..72fc32f8 100644 --- a/lib/orb/resources/subscriptions.rb +++ b/lib/orb/resources/subscriptions.rb @@ -1439,7 +1439,7 @@ def update_fixed_fee_quantity(subscription_id, params) # # @param params [Orb::Models::SubscriptionUpdateTrialParams, Hash{Symbol=>Object}] . # - # @option params [Time, Symbol, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::UnionMember1] :trial_end_date The new date that the trial should end, or the literal string `immediate` to end + # @option params [Time, Symbol] :trial_end_date The new date that the trial should end, or the literal string `immediate` to end # the trial immediately. # # @option params [Boolean] :shift If true, shifts subsequent price and adjustment intervals (preserving their diff --git a/lib/orb/util.rb b/lib/orb/util.rb index af67f230..6be64643 100644 --- a/lib/orb/util.rb +++ b/lib/orb/util.rb @@ -367,13 +367,14 @@ class << self # @return [Hash{String=>String}] def normalized_headers(*headers) {}.merge(*headers.compact).to_h do |key, val| - case val - in Array - val.map { _1.to_s.strip }.join(", ") - else - val&.to_s&.strip - end - [key.downcase, val] + value = + case val + in Array + val.map { _1.to_s.strip }.join(", ") + else + val&.to_s&.strip + end + [key.downcase, value] end end end @@ -428,6 +429,8 @@ def read(max_len = nil, out_string = nil) # # @param stream [String, IO, StringIO, Enumerable] # @param blk [Proc] + # + # @yieldparam [String] def initialize(stream, &blk) @stream = stream.is_a?(String) ? StringIO.new(stream) : stream @buf = String.new.b @@ -438,6 +441,7 @@ def initialize(stream, &blk) class << self # @param blk [Proc] # + # @yieldparam [Enumerator::Yielder] # @return [Enumerable] def string_io(&blk) Enumerator.new do |y| @@ -452,6 +456,8 @@ def string_io(&blk) end class << self + # rubocop:disable Naming/MethodParameterName + # @api private # # @param y [Enumerator::Yielder] @@ -490,6 +496,8 @@ class << self y << "\r\n" end + # rubocop:enable Naming/MethodParameterName + # @api private # # @param body [Object] @@ -628,6 +636,7 @@ def close_fused!(enum) # @param enum [Enumerable, nil] # @param blk [Proc] # + # @yieldparam [Enumerator::Yielder] # @return [Enumerable] def chain_fused(enum, &blk) iter = Enumerator.new { blk.call(_1) } diff --git a/lib/orb/version.rb b/lib/orb/version.rb index d23c0624..0987ef1b 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.28" + VERSION = "0.1.0-alpha.29" end diff --git a/orb.gemspec b/orb.gemspec index c59d60fa..356dc339 100644 --- a/orb.gemspec +++ b/orb.gemspec @@ -15,5 +15,5 @@ Gem::Specification.new do |s| s.homepage = "https://gemdocs.org/gems/orb" s.metadata["homepage_uri"] = s.homepage s.metadata["source_code_uri"] = "https://github.com/orbcorp/orb-ruby" - s.metadata["rubygems_mfa_required"] = "false" + s.metadata["rubygems_mfa_required"] = false.to_s end diff --git a/rbi/lib/orb/base_client.rbi b/rbi/lib/orb/base_client.rbi index 41561ce4..d11974dd 100644 --- a/rbi/lib/orb/base_client.rbi +++ b/rbi/lib/orb/base_client.rbi @@ -5,41 +5,44 @@ module Orb class BaseClient abstract! - RequestComponentsShape = T.type_alias do - { - method: Symbol, - path: T.any(String, T::Array[String]), - query: T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))]), - headers: T.nilable( - T::Hash[String, - T.nilable( - T.any( - String, - Integer, - T::Array[T.nilable(T.any(String, Integer))] - ) - )] - ), - body: T.nilable(T.anything), - unwrap: T.nilable(Symbol), - page: T.nilable(T::Class[Orb::BasePage[Orb::BaseModel]]), - stream: T.nilable(T::Class[T.anything]), - model: T.nilable(Orb::Converter::Input), - options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - } - end + RequestComponentsShape = + T.type_alias do + { + method: Symbol, + path: T.any(String, T::Array[String]), + query: T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))]), + headers: T.nilable( + T::Hash[String, + T.nilable( + T.any( + String, + Integer, + T::Array[T.nilable(T.any(String, Integer))] + ) + )] + ), + body: T.nilable(T.anything), + unwrap: T.nilable(Symbol), + page: T.nilable(T::Class[Orb::BasePage[Orb::BaseModel]]), + stream: T.nilable(T::Class[T.anything]), + model: T.nilable(Orb::Converter::Input), + options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) + } + end - RequestInputShape = T.type_alias do - { - method: Symbol, - url: URI::Generic, - headers: T::Hash[String, String], - body: T.anything, - max_retries: Integer, - timeout: Float - } - end + RequestInputShape = + T.type_alias do + { + method: Symbol, + url: URI::Generic, + headers: T::Hash[String, String], + body: T.anything, + max_retries: Integer, + timeout: Float + } + end + # from whatwg fetch spec MAX_REDIRECTS = 20 PLATFORM_HEADERS = T::Hash[String, String] @@ -77,13 +80,9 @@ module Orb end end + # @api private sig { returns(T.anything) } - def requester - end - - sig { params(_: T.anything).returns(T.anything) } - def requester=(_) - end + attr_accessor :requester # @api private sig do @@ -123,7 +122,7 @@ module Orb # @api private sig do overridable - .params(req: Orb::BaseClient::RequestComponentsShape, opts: T::Hash[Symbol, T.anything]) + .params(req: Orb::BaseClient::RequestComponentsShape, opts: Orb::Util::AnyHash) .returns(Orb::BaseClient::RequestInputShape) end private def build_request(req, opts) @@ -169,7 +168,7 @@ module Orb page: T.nilable(T::Class[Orb::BasePage[Orb::BaseModel]]), stream: T.nilable(T::Class[T.anything]), model: T.nilable(Orb::Converter::Input), - options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(T.anything) end diff --git a/rbi/lib/orb/base_model.rbi b/rbi/lib/orb/base_model.rbi index 266d8b17..157231f2 100644 --- a/rbi/lib/orb/base_model.rbi +++ b/rbi/lib/orb/base_model.rbi @@ -170,132 +170,116 @@ module Orb # # We can therefore convert string values to Symbols, but can't convert other # values safely. - class Enum - extend Orb::Converter - - abstract! - - Value = type_template(:out) + module Enum + include Orb::Converter - class << self - # All of the valid Symbol values for this enum. - sig { overridable.returns(T::Array[Value]) } - def values - end + # All of the valid Symbol values for this enum. + sig { overridable.returns(T::Array[T.any(NilClass, T::Boolean, Integer, Float, Symbol)]) } + def values + end - # @api private - # - # Guard against thread safety issues by instantiating `@values`. - sig { void } - private def finalize! - end + # @api private + # + # Guard against thread safety issues by instantiating `@values`. + sig { void } + private def finalize! end sig { params(other: T.anything).returns(T::Boolean) } - def self.===(other) + def ===(other) end sig { params(other: T.anything).returns(T::Boolean) } - def self.==(other) + def ==(other) end - class << self - # @api private - sig { override.params(value: T.any(String, Symbol, T.anything)).returns(T.any(Symbol, T.anything)) } - def coerce(value) - end + # @api private + sig { override.params(value: T.any(String, Symbol, T.anything)).returns(T.any(Symbol, T.anything)) } + def coerce(value) + end - # @api private - sig { override.params(value: T.any(Symbol, T.anything)).returns(T.any(Symbol, T.anything)) } - def dump(value) - end + # @api private + sig { override.params(value: T.any(Symbol, T.anything)).returns(T.any(Symbol, T.anything)) } + def dump(value) + end - # @api private - sig do - 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 + # @api private + sig do + 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 end # @api private - class Union - extend Orb::Converter - - abstract! - - Variants = type_template(:out) + module Union + include Orb::Converter - class << self - # @api private - # - # All of the specified variant info for this union. - sig { returns(T::Array[[T.nilable(Symbol), T.proc.returns(Variants)]]) } - private def known_variants - end + # @api private + # + # All of the specified variant info for this union. + sig { returns(T::Array[[T.nilable(Symbol), T.proc.returns(Orb::Converter::Input)]]) } + private def known_variants + end - # @api private - sig { returns(T::Array[[T.nilable(Symbol), Variants]]) } - protected def derefed_variants - end + # @api private + sig { returns(T::Array[[T.nilable(Symbol), T.anything]]) } + protected def derefed_variants + end - # All of the specified variants for this union. - sig { overridable.returns(T::Array[Variants]) } - def variants - end + # All of the specified variants for this union. + sig { overridable.returns(T::Array[T.anything]) } + def variants + end - # @api private - sig { params(property: Symbol).void } - private def discriminator(property) - end + # @api private + sig { params(property: Symbol).void } + private def discriminator(property) + end - # @api private - sig do - params( - key: T.any(Symbol, T::Hash[Symbol, T.anything], T.proc.returns(Variants), Variants), - spec: T.any(T::Hash[Symbol, T.anything], T.proc.returns(Variants), Variants) - ) - .void - end - private def variant(key, spec = nil) - end + # @api private + sig do + params( + key: T.any(Symbol, Orb::Util::AnyHash, T.proc.returns(T.anything), T.anything), + spec: T.any(Orb::Util::AnyHash, T.proc.returns(T.anything), T.anything) + ) + .void + end + private def variant(key, spec = nil) + end - # @api private - sig { params(value: T.anything).returns(T.nilable(Variants)) } - private def resolve_variant(value) - end + # @api private + sig { params(value: T.anything).returns(T.nilable(T.anything)) } + private def resolve_variant(value) end sig { params(other: T.anything).returns(T::Boolean) } - def self.===(other) + def ===(other) end sig { params(other: T.anything).returns(T::Boolean) } - def self.==(other) + def ==(other) end - class << self - # @api private - sig { override.params(value: T.anything).returns(T.anything) } - def coerce(value) - end + # @api private + sig { override.params(value: T.anything).returns(T.anything) } + def coerce(value) + end - # @api private - sig { override.params(value: T.anything).returns(T.anything) } - def dump(value) - end + # @api private + sig { override.params(value: T.anything).returns(T.anything) } + def dump(value) + end - # @api private - sig do - 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 + # @api private + sig do + 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 end @@ -308,7 +292,15 @@ module Orb abstract! final! - Elem = type_member(:out) + sig(:final) do + params( + type_info: T.any(Orb::Util::AnyHash, T.proc.returns(Orb::Converter::Input), Orb::Converter::Input), + spec: Orb::Util::AnyHash + ) + .returns(T.attached_class) + end + def self.[](type_info, spec = {}) + end sig(:final) { params(other: T.anything).returns(T::Boolean) } def ===(other) @@ -346,23 +338,19 @@ module Orb end # @api private - sig(:final) { returns(Elem) } + sig(:final) { returns(T.anything) } protected def item_type end # @api private sig(:final) do params( - type_info: T.any( - T::Hash[Symbol, T.anything], - T.proc.returns(Orb::Converter::Input), - Orb::Converter::Input - ), - spec: T::Hash[Symbol, T.anything] + type_info: T.any(Orb::Util::AnyHash, T.proc.returns(Orb::Converter::Input), Orb::Converter::Input), + spec: Orb::Util::AnyHash ) - .returns(T.attached_class) + .void end - def self.new(type_info, spec = {}) + def initialize(type_info, spec = {}) end end @@ -375,7 +363,15 @@ module Orb abstract! final! - Elem = type_member(:out) + sig(:final) do + params( + type_info: T.any(Orb::Util::AnyHash, T.proc.returns(Orb::Converter::Input), Orb::Converter::Input), + spec: Orb::Util::AnyHash + ) + .returns(T.attached_class) + end + def self.[](type_info, spec = {}) + end sig(:final) { params(other: T.anything).returns(T::Boolean) } def ===(other) @@ -389,7 +385,7 @@ module Orb sig(:final) do override .params(value: T.any(T::Hash[T.anything, T.anything], T.anything)) - .returns(T.any(T::Hash[Symbol, T.anything], T.anything)) + .returns(T.any(Orb::Util::AnyHash, T.anything)) end def coerce(value) end @@ -398,7 +394,7 @@ module Orb sig(:final) do override .params(value: T.any(T::Hash[T.anything, T.anything], T.anything)) - .returns(T.any(T::Hash[Symbol, T.anything], T.anything)) + .returns(T.any(Orb::Util::AnyHash, T.anything)) end def dump(value) end @@ -413,23 +409,19 @@ module Orb end # @api private - sig(:final) { returns(Elem) } + sig(:final) { returns(T.anything) } protected def item_type end # @api private sig(:final) do params( - type_info: T.any( - T::Hash[Symbol, T.anything], - T.proc.returns(Orb::Converter::Input), - Orb::Converter::Input - ), - spec: T::Hash[Symbol, T.anything] + type_info: T.any(Orb::Util::AnyHash, T.proc.returns(Orb::Converter::Input), Orb::Converter::Input), + spec: Orb::Util::AnyHash ) - .returns(T.attached_class) + .void end - def self.new(type_info, spec = {}) + def initialize(type_info, spec = {}) end end @@ -485,7 +477,7 @@ module Orb T.proc.returns(Orb::Converter::Input), Orb::Converter::Input ), - spec: T::Hash[Symbol, T.anything] + spec: Orb::Util::AnyHash ) .void end @@ -497,11 +489,11 @@ module Orb params( name_sym: Symbol, type_info: T.any( - T::Hash[Symbol, T.anything], + Orb::Util::AnyHash, T.proc.returns(Orb::Converter::Input), Orb::Converter::Input ), - spec: T::Hash[Symbol, T.anything] + spec: Orb::Util::AnyHash ) .void end @@ -513,11 +505,11 @@ module Orb params( name_sym: Symbol, type_info: T.any( - T::Hash[Symbol, T.anything], + Orb::Util::AnyHash, T.proc.returns(Orb::Converter::Input), Orb::Converter::Input ), - spec: T::Hash[Symbol, T.anything] + spec: Orb::Util::AnyHash ) .void end @@ -591,13 +583,23 @@ module Orb # # This method is not recursive. The returned value is shared by the object, so it # should not be mutated. - sig { overridable.returns(T::Hash[Symbol, T.anything]) } + sig { overridable.returns(Orb::Util::AnyHash) } def to_h end - alias_method :to_hash, :to_h + # Returns a Hash of the data underlying this object. O(1) + # + # Keys are Symbols and values are the raw values from the response. The return + # value indicates which values were ever set on the object. i.e. there will be a + # key in this hash if they ever were, even if the set value was nil. + # + # This method is not recursive. The returned value is shared by the object, so it + # should not be mutated. + sig { overridable.returns(Orb::Util::AnyHash) } + def to_hash + end - sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.anything]) } + sig { params(keys: T.nilable(T::Array[Symbol])).returns(Orb::Util::AnyHash) } def deconstruct_keys(keys) end diff --git a/rbi/lib/orb/base_page.rbi b/rbi/lib/orb/base_page.rbi index 21e916b4..0a706852 100644 --- a/rbi/lib/orb/base_page.rbi +++ b/rbi/lib/orb/base_page.rbi @@ -20,8 +20,6 @@ module Orb def to_enum end - alias_method :enum_for, :to_enum - # @api private sig do params( diff --git a/rbi/lib/orb/client.rbi b/rbi/lib/orb/client.rbi index 5391e471..7f098875 100644 --- a/rbi/lib/orb/client.rbi +++ b/rbi/lib/orb/client.rbi @@ -11,64 +11,49 @@ module Orb DEFAULT_MAX_RETRY_DELAY = T.let(8.0, Float) sig { returns(String) } - def api_key - end + attr_reader :api_key sig { returns(Orb::Resources::TopLevel) } - def top_level - end + attr_reader :top_level sig { returns(Orb::Resources::Coupons) } - def coupons - end + attr_reader :coupons sig { returns(Orb::Resources::CreditNotes) } - def credit_notes - end + attr_reader :credit_notes sig { returns(Orb::Resources::Customers) } - def customers - end + attr_reader :customers sig { returns(Orb::Resources::Events) } - def events - end + attr_reader :events sig { returns(Orb::Resources::InvoiceLineItems) } - def invoice_line_items - end + attr_reader :invoice_line_items sig { returns(Orb::Resources::Invoices) } - def invoices - end + attr_reader :invoices sig { returns(Orb::Resources::Items) } - def items - end + attr_reader :items sig { returns(Orb::Resources::Metrics) } - def metrics - end + attr_reader :metrics sig { returns(Orb::Resources::Plans) } - def plans - end + attr_reader :plans sig { returns(Orb::Resources::Prices) } - def prices - end + attr_reader :prices sig { returns(Orb::Resources::Subscriptions) } - def subscriptions - end + attr_reader :subscriptions sig { returns(Orb::Resources::Alerts) } - def alerts - end + attr_reader :alerts sig { returns(Orb::Resources::DimensionalPriceGroups) } - def dimensional_price_groups - end + attr_reader :dimensional_price_groups # @api private sig { override.returns(T::Hash[String, String]) } diff --git a/rbi/lib/orb/errors.rbi b/rbi/lib/orb/errors.rbi index 0689b357..861c86d0 100644 --- a/rbi/lib/orb/errors.rbi +++ b/rbi/lib/orb/errors.rbi @@ -3,12 +3,7 @@ module Orb class Error < StandardError sig { returns(T.nilable(StandardError)) } - def cause - end - - sig { params(_: T.nilable(StandardError)).returns(T.nilable(StandardError)) } - def cause=(_) - end + attr_accessor :cause end class ConversionError < Orb::Error @@ -16,28 +11,13 @@ module Orb class APIError < Orb::Error sig { returns(URI::Generic) } - def url - end - - sig { params(_: URI::Generic).returns(URI::Generic) } - def url=(_) - end + attr_accessor :url sig { returns(T.nilable(Integer)) } - def status - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def status=(_) - end + attr_accessor :status sig { returns(T.nilable(T.anything)) } - def body - end - - sig { params(_: T.nilable(T.anything)).returns(T.nilable(T.anything)) } - def body=(_) - end + attr_accessor :body # @api private sig do @@ -57,20 +37,10 @@ module Orb class APIConnectionError < Orb::APIError sig { void } - def status - end - - sig { params(_: NilClass).void } - def status=(_) - end + attr_accessor :status sig { void } - def body - end - - sig { params(_: NilClass).void } - def body=(_) - end + attr_accessor :body # @api private sig do @@ -122,12 +92,7 @@ module Orb end sig { returns(Integer) } - def status - end - - sig { params(_: Integer).returns(Integer) } - def status=(_) - end + attr_accessor :status # @api private sig do diff --git a/rbi/lib/orb/models/alert.rbi b/rbi/lib/orb/models/alert.rbi index faa5abbf..d3d7a2ae 100644 --- a/rbi/lib/orb/models/alert.rbi +++ b/rbi/lib/orb/models/alert.rbi @@ -5,99 +5,56 @@ module Orb class Alert < Orb::BaseModel # Also referred to as alert_id in this documentation. sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The creation time of the resource in Orb. sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The name of the currency the credit balance or invoice cost is denominated in. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # The customer the alert applies to. sig { returns(T.nilable(Orb::Models::Alert::Customer)) } - def customer - end + attr_reader :customer - sig { params(_: T.nilable(Orb::Models::Alert::Customer)).returns(T.nilable(Orb::Models::Alert::Customer)) } - def customer=(_) - end + sig { params(customer: T.nilable(T.any(Orb::Models::Alert::Customer, Orb::Util::AnyHash))).void } + attr_writer :customer # Whether the alert is enabled or disabled. sig { returns(T::Boolean) } - def enabled - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def enabled=(_) - end + attr_accessor :enabled # The metric the alert applies to. sig { returns(T.nilable(Orb::Models::Alert::Metric)) } - def metric - end + attr_reader :metric - sig { params(_: T.nilable(Orb::Models::Alert::Metric)).returns(T.nilable(Orb::Models::Alert::Metric)) } - def metric=(_) - end + sig { params(metric: T.nilable(T.any(Orb::Models::Alert::Metric, Orb::Util::AnyHash))).void } + attr_writer :metric # The plan the alert applies to. sig { returns(T.nilable(Orb::Models::Alert::Plan)) } - def plan - end + attr_reader :plan - sig { params(_: T.nilable(Orb::Models::Alert::Plan)).returns(T.nilable(Orb::Models::Alert::Plan)) } - def plan=(_) - end + sig { params(plan: T.nilable(T.any(Orb::Models::Alert::Plan, Orb::Util::AnyHash))).void } + attr_writer :plan # The subscription the alert applies to. sig { returns(T.nilable(Orb::Models::Alert::Subscription)) } - def subscription - end + attr_reader :subscription - sig do - params(_: T.nilable(Orb::Models::Alert::Subscription)).returns(T.nilable(Orb::Models::Alert::Subscription)) - end - def subscription=(_) - end + sig { params(subscription: T.nilable(T.any(Orb::Models::Alert::Subscription, Orb::Util::AnyHash))).void } + attr_writer :subscription # The thresholds that define the conditions under which the alert will be # triggered. sig { returns(T.nilable(T::Array[Orb::Models::Alert::Threshold])) } - def thresholds - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::Alert::Threshold])) - .returns(T.nilable(T::Array[Orb::Models::Alert::Threshold])) - end - def thresholds=(_) - end + attr_accessor :thresholds # The type of alert. This must be a valid alert type. - sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::Alert::Type::TaggedSymbol) } + attr_accessor :type # [Alerts within Orb](/product-catalog/configuring-alerts) monitor spending, # usage, or credit balance and trigger webhooks when a threshold is exceeded. @@ -109,13 +66,13 @@ module Orb id: String, created_at: Time, currency: T.nilable(String), - customer: T.nilable(Orb::Models::Alert::Customer), + customer: T.nilable(T.any(Orb::Models::Alert::Customer, Orb::Util::AnyHash)), 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 + metric: T.nilable(T.any(Orb::Models::Alert::Metric, Orb::Util::AnyHash)), + plan: T.nilable(T.any(Orb::Models::Alert::Plan, Orb::Util::AnyHash)), + subscription: T.nilable(T.any(Orb::Models::Alert::Subscription, Orb::Util::AnyHash)), + thresholds: T.nilable(T::Array[T.any(Orb::Models::Alert::Threshold, Orb::Util::AnyHash)]), + type: Orb::Models::Alert::Type::OrSymbol ) .returns(T.attached_class) end @@ -135,7 +92,7 @@ module Orb 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 + type: Orb::Models::Alert::Type::TaggedSymbol } ) end @@ -144,20 +101,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id # The customer the alert applies to. sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } @@ -171,12 +118,7 @@ module Orb class Metric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The metric the alert applies to. sig { params(id: String).returns(T.attached_class) } @@ -190,39 +132,19 @@ module Orb class Plan < Orb::BaseModel sig { returns(T.nilable(String)) } - def id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def id=(_) - end + attr_accessor :id # An optional user-defined ID for this plan resource, used throughout the system # as an alias for this Plan. Use this field to identify a plan by an existing # identifier in your system. sig { returns(T.nilable(String)) } - def external_plan_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_plan_id=(_) - end + attr_accessor :external_plan_id sig { returns(T.nilable(String)) } - def name - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def name=(_) - end + attr_accessor :name sig { returns(String) } - def plan_version - end - - sig { params(_: String).returns(String) } - def plan_version=(_) - end + attr_accessor :plan_version # The plan the alert applies to. sig do @@ -254,12 +176,7 @@ module Orb class Subscription < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The subscription the alert applies to. sig { params(id: String).returns(T.attached_class) } @@ -276,12 +193,7 @@ module Orb # fire at or below this value. For usage and cost alerts, the alert will fire at # or above this value. sig { returns(Float) } - def value - end - - sig { params(_: Float).returns(Float) } - def value=(_) - end + attr_accessor :value # Thresholds are used to define the conditions under which an alert will be # triggered. @@ -295,16 +207,23 @@ module Orb end # The type of alert. This must be a valid alert type. - class Type < Orb::Enum - abstract! + module Type + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Alert::Type) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Alert::Type::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + CREDIT_BALANCE_DEPLETED = T.let(:credit_balance_depleted, Orb::Models::Alert::Type::TaggedSymbol) + CREDIT_BALANCE_DROPPED = T.let(:credit_balance_dropped, Orb::Models::Alert::Type::TaggedSymbol) + CREDIT_BALANCE_RECOVERED = T.let(:credit_balance_recovered, Orb::Models::Alert::Type::TaggedSymbol) + USAGE_EXCEEDED = T.let(:usage_exceeded, Orb::Models::Alert::Type::TaggedSymbol) + COST_EXCEEDED = T.let(:cost_exceeded, Orb::Models::Alert::Type::TaggedSymbol) - CREDIT_BALANCE_DEPLETED = :credit_balance_depleted - CREDIT_BALANCE_DROPPED = :credit_balance_dropped - CREDIT_BALANCE_RECOVERED = :credit_balance_recovered - USAGE_EXCEEDED = :usage_exceeded - COST_EXCEEDED = :cost_exceeded + class << self + sig { override.returns(T::Array[Orb::Models::Alert::Type::TaggedSymbol]) } + def values + end + end end end 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 eb7918fe..2972efb2 100644 --- a/rbi/lib/orb/models/alert_create_for_customer_params.rbi +++ b/rbi/lib/orb/models/alert_create_for_customer_params.rbi @@ -8,40 +8,22 @@ module Orb # The case sensitive currency or custom pricing unit to use for this alert. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The type of alert to create. This must be a valid alert type. - sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::AlertCreateForCustomerParams::Type::OrSymbol) } + attr_accessor :type # The thresholds that define the values at which the alert will be triggered. sig { returns(T.nilable(T::Array[Orb::Models::AlertCreateForCustomerParams::Threshold])) } - def thresholds - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::AlertCreateForCustomerParams::Threshold])) - .returns(T.nilable(T::Array[Orb::Models::AlertCreateForCustomerParams::Threshold])) - end - def thresholds=(_) - end + attr_accessor :thresholds sig do params( currency: String, - type: Symbol, - thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + type: Orb::Models::AlertCreateForCustomerParams::Type::OrSymbol, + thresholds: T.nilable(T::Array[T.any(Orb::Models::AlertCreateForCustomerParams::Threshold, Orb::Util::AnyHash)]), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -53,7 +35,7 @@ module Orb .returns( { currency: String, - type: Symbol, + type: Orb::Models::AlertCreateForCustomerParams::Type::OrSymbol, thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]), request_options: Orb::RequestOptions } @@ -63,14 +45,24 @@ module Orb end # The type of alert to create. This must be a valid alert type. - class Type < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - CREDIT_BALANCE_DEPLETED = :credit_balance_depleted - CREDIT_BALANCE_DROPPED = :credit_balance_dropped - CREDIT_BALANCE_RECOVERED = :credit_balance_recovered + module Type + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::AlertCreateForCustomerParams::Type) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::AlertCreateForCustomerParams::Type::TaggedSymbol) } + + CREDIT_BALANCE_DEPLETED = + T.let(:credit_balance_depleted, Orb::Models::AlertCreateForCustomerParams::Type::TaggedSymbol) + CREDIT_BALANCE_DROPPED = + T.let(:credit_balance_dropped, Orb::Models::AlertCreateForCustomerParams::Type::TaggedSymbol) + CREDIT_BALANCE_RECOVERED = + T.let(:credit_balance_recovered, Orb::Models::AlertCreateForCustomerParams::Type::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::AlertCreateForCustomerParams::Type::TaggedSymbol]) } + def values + end + end end class Threshold < Orb::BaseModel @@ -78,12 +70,7 @@ module Orb # fire at or below this value. For usage and cost alerts, the alert will fire at # or above this value. sig { returns(Float) } - def value - end - - sig { params(_: Float).returns(Float) } - def value=(_) - end + attr_accessor :value # Thresholds are used to define the conditions under which an alert will be # triggered. 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 24170e1e..6ba342d5 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 @@ -8,40 +8,24 @@ module Orb # The case sensitive currency or custom pricing unit to use for this alert. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The type of alert to create. This must be a valid alert type. - sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::AlertCreateForExternalCustomerParams::Type::OrSymbol) } + attr_accessor :type # The thresholds that define the values at which the alert will be triggered. sig { returns(T.nilable(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold])) } - def thresholds - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold])) - .returns(T.nilable(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold])) - end - def thresholds=(_) - end + attr_accessor :thresholds sig do params( currency: String, - type: Symbol, - thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + type: Orb::Models::AlertCreateForExternalCustomerParams::Type::OrSymbol, + thresholds: T.nilable( + T::Array[T.any(Orb::Models::AlertCreateForExternalCustomerParams::Threshold, Orb::Util::AnyHash)] + ), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -53,7 +37,7 @@ module Orb .returns( { currency: String, - type: Symbol, + type: Orb::Models::AlertCreateForExternalCustomerParams::Type::OrSymbol, thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]), request_options: Orb::RequestOptions } @@ -63,14 +47,25 @@ module Orb end # The type of alert to create. This must be a valid alert type. - class Type < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - CREDIT_BALANCE_DEPLETED = :credit_balance_depleted - CREDIT_BALANCE_DROPPED = :credit_balance_dropped - CREDIT_BALANCE_RECOVERED = :credit_balance_recovered + module Type + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::AlertCreateForExternalCustomerParams::Type) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::AlertCreateForExternalCustomerParams::Type::TaggedSymbol) } + + CREDIT_BALANCE_DEPLETED = + T.let(:credit_balance_depleted, Orb::Models::AlertCreateForExternalCustomerParams::Type::TaggedSymbol) + CREDIT_BALANCE_DROPPED = + T.let(:credit_balance_dropped, Orb::Models::AlertCreateForExternalCustomerParams::Type::TaggedSymbol) + CREDIT_BALANCE_RECOVERED = + T.let(:credit_balance_recovered, Orb::Models::AlertCreateForExternalCustomerParams::Type::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Type::TaggedSymbol]) } + def values + end + end end class Threshold < Orb::BaseModel @@ -78,12 +73,7 @@ module Orb # fire at or below this value. For usage and cost alerts, the alert will fire at # or above this value. sig { returns(Float) } - def value - end - - sig { params(_: Float).returns(Float) } - def value=(_) - end + attr_accessor :value # Thresholds are used to define the conditions under which an alert will be # triggered. 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 ef6aafe8..5844f512 100644 --- a/rbi/lib/orb/models/alert_create_for_subscription_params.rbi +++ b/rbi/lib/orb/models/alert_create_for_subscription_params.rbi @@ -8,40 +8,22 @@ module Orb # The thresholds that define the values at which the alert will be triggered. sig { returns(T::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold]) } - def thresholds - end - - sig do - params(_: T::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold]) - .returns(T::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold]) - end - def thresholds=(_) - end + attr_accessor :thresholds # The type of alert to create. This must be a valid alert type. - sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::AlertCreateForSubscriptionParams::Type::OrSymbol) } + attr_accessor :type # The metric to track usage for. sig { returns(T.nilable(String)) } - def metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def metric_id=(_) - end + attr_accessor :metric_id sig do params( - thresholds: T::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], - type: Symbol, + thresholds: T::Array[T.any(Orb::Models::AlertCreateForSubscriptionParams::Threshold, Orb::Util::AnyHash)], + type: Orb::Models::AlertCreateForSubscriptionParams::Type::OrSymbol, metric_id: T.nilable(String), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -53,7 +35,7 @@ module Orb .returns( { thresholds: T::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], - type: Symbol, + type: Orb::Models::AlertCreateForSubscriptionParams::Type::OrSymbol, metric_id: T.nilable(String), request_options: Orb::RequestOptions } @@ -67,12 +49,7 @@ module Orb # fire at or below this value. For usage and cost alerts, the alert will fire at # or above this value. sig { returns(Float) } - def value - end - - sig { params(_: Float).returns(Float) } - def value=(_) - end + attr_accessor :value # Thresholds are used to define the conditions under which an alert will be # triggered. @@ -86,13 +63,22 @@ module Orb end # The type of alert to create. This must be a valid alert type. - class Type < Orb::Enum - abstract! + module Type + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::AlertCreateForSubscriptionParams::Type) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::AlertCreateForSubscriptionParams::Type::TaggedSymbol) } - USAGE_EXCEEDED = :usage_exceeded - COST_EXCEEDED = :cost_exceeded + USAGE_EXCEEDED = + T.let(:usage_exceeded, Orb::Models::AlertCreateForSubscriptionParams::Type::TaggedSymbol) + COST_EXCEEDED = T.let(:cost_exceeded, Orb::Models::AlertCreateForSubscriptionParams::Type::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::AlertCreateForSubscriptionParams::Type::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/alert_disable_params.rbi b/rbi/lib/orb/models/alert_disable_params.rbi index ff81e986..e9b8fe52 100644 --- a/rbi/lib/orb/models/alert_disable_params.rbi +++ b/rbi/lib/orb/models/alert_disable_params.rbi @@ -8,17 +8,12 @@ module Orb # Used to update the status of a plan alert scoped to this subscription_id sig { returns(T.nilable(String)) } - def subscription_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def subscription_id=(_) - end + attr_accessor :subscription_id sig do params( subscription_id: T.nilable(String), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/alert_enable_params.rbi b/rbi/lib/orb/models/alert_enable_params.rbi index fbd0f2ec..fbe1b5be 100644 --- a/rbi/lib/orb/models/alert_enable_params.rbi +++ b/rbi/lib/orb/models/alert_enable_params.rbi @@ -8,17 +8,12 @@ module Orb # Used to update the status of a plan alert scoped to this subscription_id sig { returns(T.nilable(String)) } - def subscription_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def subscription_id=(_) - end + attr_accessor :subscription_id sig do params( subscription_id: T.nilable(String), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/alert_list_params.rbi b/rbi/lib/orb/models/alert_list_params.rbi index cec3e609..d50abfc3 100644 --- a/rbi/lib/orb/models/alert_list_params.rbi +++ b/rbi/lib/orb/models/alert_list_params.rbi @@ -7,82 +7,40 @@ module Orb include Orb::RequestParameters sig { returns(T.nilable(Time)) } - def created_at_gt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gt=(_) - end + attr_accessor :created_at_gt sig { returns(T.nilable(Time)) } - def created_at_gte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gte=(_) - end + attr_accessor :created_at_gte sig { returns(T.nilable(Time)) } - def created_at_lt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lt=(_) - end + attr_accessor :created_at_lt sig { returns(T.nilable(Time)) } - def created_at_lte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lte=(_) - end + attr_accessor :created_at_lte # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # Fetch alerts scoped to this customer_id sig { returns(T.nilable(String)) } - def customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end + attr_accessor :customer_id # Fetch alerts scoped to this external_customer_id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit # Fetch alerts scoped to this subscription_id sig { returns(T.nilable(String)) } - def subscription_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def subscription_id=(_) - end + attr_accessor :subscription_id sig do params( @@ -95,7 +53,7 @@ module Orb external_customer_id: T.nilable(String), limit: Integer, subscription_id: T.nilable(String), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/alert_retrieve_params.rbi b/rbi/lib/orb/models/alert_retrieve_params.rbi index b9f7fd0d..a0597dfb 100644 --- a/rbi/lib/orb/models/alert_retrieve_params.rbi +++ b/rbi/lib/orb/models/alert_retrieve_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/alert_update_params.rbi b/rbi/lib/orb/models/alert_update_params.rbi index a77509b8..6b8c0397 100644 --- a/rbi/lib/orb/models/alert_update_params.rbi +++ b/rbi/lib/orb/models/alert_update_params.rbi @@ -8,20 +8,12 @@ module Orb # The thresholds that define the values at which the alert will be triggered. sig { returns(T::Array[Orb::Models::AlertUpdateParams::Threshold]) } - def thresholds - end - - sig do - params(_: T::Array[Orb::Models::AlertUpdateParams::Threshold]) - .returns(T::Array[Orb::Models::AlertUpdateParams::Threshold]) - end - def thresholds=(_) - end + attr_accessor :thresholds sig do params( - thresholds: T::Array[Orb::Models::AlertUpdateParams::Threshold], - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + thresholds: T::Array[T.any(Orb::Models::AlertUpdateParams::Threshold, Orb::Util::AnyHash)], + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -42,12 +34,7 @@ module Orb # fire at or below this value. For usage and cost alerts, the alert will fire at # or above this value. sig { returns(Float) } - def value - end - - sig { params(_: Float).returns(Float) } - def value=(_) - end + attr_accessor :value # Thresholds are used to define the conditions under which an alert will be # triggered. diff --git a/rbi/lib/orb/models/amount_discount.rbi b/rbi/lib/orb/models/amount_discount.rbi index 8573c352..2dfe7df0 100644 --- a/rbi/lib/orb/models/amount_discount.rbi +++ b/rbi/lib/orb/models/amount_discount.rbi @@ -5,44 +5,24 @@ module Orb class AmountDiscount < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # List of price_ids that this discount applies to. For plan/plan phase discounts, # this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end + attr_accessor :applies_to_price_ids - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end - - sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + sig { returns(Orb::Models::AmountDiscount::DiscountType::OrSymbol) } + attr_accessor :discount_type sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( amount_discount: String, applies_to_price_ids: T::Array[String], - discount_type: Symbol, + discount_type: Orb::Models::AmountDiscount::DiscountType::OrSymbol, reason: T.nilable(String) ) .returns(T.attached_class) @@ -56,7 +36,7 @@ module Orb { amount_discount: String, applies_to_price_ids: T::Array[String], - discount_type: Symbol, + discount_type: Orb::Models::AmountDiscount::DiscountType::OrSymbol, reason: T.nilable(String) } ) @@ -64,12 +44,19 @@ module Orb def to_hash end - class DiscountType < Orb::Enum - abstract! + module DiscountType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::AmountDiscount::DiscountType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::AmountDiscount::DiscountType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + AMOUNT = T.let(:amount, Orb::Models::AmountDiscount::DiscountType::TaggedSymbol) - AMOUNT = :amount + class << self + sig { override.returns(T::Array[Orb::Models::AmountDiscount::DiscountType::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/billable_metric.rbi b/rbi/lib/orb/models/billable_metric.rbi index f2d762f2..25d14c53 100644 --- a/rbi/lib/orb/models/billable_metric.rbi +++ b/rbi/lib/orb/models/billable_metric.rbi @@ -4,59 +4,32 @@ module Orb module Models class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description # The Item resource represents a sellable product or good. Items are associated # with all line items, billable metrics, and prices and are used for defining # external sync behavior for invoices and tax calculation purposes. sig { returns(Orb::Models::Item) } - def item - end + attr_reader :item - sig { params(_: Orb::Models::Item).returns(Orb::Models::Item) } - def item=(_) - end + sig { params(item: T.any(Orb::Models::Item, Orb::Util::AnyHash)).void } + attr_writer :item # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(String) } - def name - end + attr_accessor :name - sig { params(_: String).returns(String) } - def name=(_) - end - - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::BillableMetric::Status::TaggedSymbol) } + attr_accessor :status # The Metric resource represents a calculation of a quantity based on events. # Metrics are defined by the query that transforms raw usage events into @@ -65,10 +38,10 @@ module Orb params( id: String, description: T.nilable(String), - item: Orb::Models::Item, + item: T.any(Orb::Models::Item, Orb::Util::AnyHash), metadata: T::Hash[Symbol, String], name: String, - status: Symbol + status: Orb::Models::BillableMetric::Status::OrSymbol ) .returns(T.attached_class) end @@ -84,21 +57,28 @@ module Orb item: Orb::Models::Item, metadata: T::Hash[Symbol, String], name: String, - status: Symbol + status: Orb::Models::BillableMetric::Status::TaggedSymbol } ) end def to_hash end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::BillableMetric::Status) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::BillableMetric::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ACTIVE = T.let(:active, Orb::Models::BillableMetric::Status::TaggedSymbol) + DRAFT = T.let(:draft, Orb::Models::BillableMetric::Status::TaggedSymbol) + ARCHIVED = T.let(:archived, Orb::Models::BillableMetric::Status::TaggedSymbol) - ACTIVE = :active - DRAFT = :draft - ARCHIVED = :archived + class << self + sig { override.returns(T::Array[Orb::Models::BillableMetric::Status::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/billing_cycle_relative_date.rbi b/rbi/lib/orb/models/billing_cycle_relative_date.rbi index 4fd681b7..547b9087 100644 --- a/rbi/lib/orb/models/billing_cycle_relative_date.rbi +++ b/rbi/lib/orb/models/billing_cycle_relative_date.rbi @@ -2,13 +2,20 @@ module Orb module Models - class BillingCycleRelativeDate < Orb::Enum - abstract! + module BillingCycleRelativeDate + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::BillingCycleRelativeDate) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::BillingCycleRelativeDate::TaggedSymbol) } - START_OF_TERM = :start_of_term - END_OF_TERM = :end_of_term + START_OF_TERM = T.let(:start_of_term, Orb::Models::BillingCycleRelativeDate::TaggedSymbol) + END_OF_TERM = T.let(:end_of_term, Orb::Models::BillingCycleRelativeDate::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::BillingCycleRelativeDate::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/coupon.rbi b/rbi/lib/orb/models/coupon.rbi index 47fa82e1..775bf1a0 100644 --- a/rbi/lib/orb/models/coupon.rbi +++ b/rbi/lib/orb/models/coupon.rbi @@ -5,71 +5,33 @@ module Orb class Coupon < Orb::BaseModel # Also referred to as coupon_id in this documentation. sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # An archived coupon can no longer be redeemed. Active coupons will have a value # of null for `archived_at`; this field will be non-null for archived coupons. sig { returns(T.nilable(Time)) } - def archived_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def archived_at=(_) - end + attr_accessor :archived_at sig { returns(T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount)) } - def discount - end - - sig do - params(_: T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount)) - .returns(T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount)) - end - def discount=(_) - end + attr_accessor :discount # This allows for a coupon's discount to apply for a limited time (determined in # months); a `null` value here means "unlimited time". sig { returns(T.nilable(Integer)) } - def duration_in_months - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def duration_in_months=(_) - end + attr_accessor :duration_in_months # The maximum number of redemptions allowed for this coupon before it is # exhausted; `null` here means "unlimited". sig { returns(T.nilable(Integer)) } - def max_redemptions - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def max_redemptions=(_) - end + attr_accessor :max_redemptions # This string can be used to redeem this coupon for a given subscription. sig { returns(String) } - def redemption_code - end - - sig { params(_: String).returns(String) } - def redemption_code=(_) - end + attr_accessor :redemption_code # The number of times this coupon has been redeemed. sig { returns(Integer) } - def times_redeemed - end - - sig { params(_: Integer).returns(Integer) } - def times_redeemed=(_) - end + attr_accessor :times_redeemed # A coupon represents a reusable discount configuration that can be applied either # as a fixed or percentage amount to an invoice or subscription. Coupons are @@ -80,7 +42,7 @@ module Orb params( id: String, archived_at: T.nilable(Time), - discount: T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount), + discount: T.any(Orb::Models::PercentageDiscount, Orb::Util::AnyHash, Orb::Models::AmountDiscount), duration_in_months: T.nilable(Integer), max_redemptions: T.nilable(Integer), redemption_code: String, @@ -108,10 +70,17 @@ module Orb def to_hash end - class Discount < Orb::Union - abstract! + module Discount + extend Orb::Union + + Variants = + type_template(:out) { {fixed: T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount)} } - Variants = type_template(:out) { {fixed: T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount)} } + class << self + sig { override.returns([Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount]) } + def variants + end + end end end end diff --git a/rbi/lib/orb/models/coupon_archive_params.rbi b/rbi/lib/orb/models/coupon_archive_params.rbi index 176048c6..62a9aa7b 100644 --- a/rbi/lib/orb/models/coupon_archive_params.rbi +++ b/rbi/lib/orb/models/coupon_archive_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/coupon_create_params.rbi b/rbi/lib/orb/models/coupon_create_params.rbi index 09229d50..b410349d 100644 --- a/rbi/lib/orb/models/coupon_create_params.rbi +++ b/rbi/lib/orb/models/coupon_create_params.rbi @@ -14,65 +14,33 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: 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 + attr_accessor :discount # This string can be used to redeem this coupon for a given subscription. sig { returns(String) } - def redemption_code - end - - sig { params(_: String).returns(String) } - def redemption_code=(_) - end + attr_accessor :redemption_code # This allows for a coupon's discount to apply for a limited time (determined in # months); a `null` value here means "unlimited time". sig { returns(T.nilable(Integer)) } - def duration_in_months - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def duration_in_months=(_) - end + attr_accessor :duration_in_months # The maximum number of redemptions allowed for this coupon before it is # exhausted;`null` here means "unlimited". sig { returns(T.nilable(Integer)) } - def max_redemptions - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def max_redemptions=(_) - end + attr_accessor :max_redemptions sig do params( discount: T.any( Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, + Orb::Util::AnyHash, Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount ), redemption_code: String, duration_in_months: T.nilable(Integer), max_redemptions: T.nilable(Integer), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -97,34 +65,25 @@ module Orb def to_hash end - class Discount < Orb::Union - abstract! + module Discount + extend Orb::Union - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, - Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, + Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount + ) + } + end class NewCouponPercentageDiscount < Orb::BaseModel sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount sig { params(percentage_discount: Float, discount_type: Symbol).returns(T.attached_class) } def self.new(percentage_discount:, discount_type: :percentage) @@ -137,20 +96,10 @@ module Orb class NewCouponAmountDiscount < Orb::BaseModel sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type sig { params(amount_discount: String, discount_type: Symbol).returns(T.attached_class) } def self.new(amount_discount:, discount_type: :amount) @@ -160,6 +109,17 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount] + ) + end + def variants + end + end end end end diff --git a/rbi/lib/orb/models/coupon_fetch_params.rbi b/rbi/lib/orb/models/coupon_fetch_params.rbi index 9f5d5c53..325487b2 100644 --- a/rbi/lib/orb/models/coupon_fetch_params.rbi +++ b/rbi/lib/orb/models/coupon_fetch_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/coupon_list_params.rbi b/rbi/lib/orb/models/coupon_list_params.rbi index 11e39568..1e183541 100644 --- a/rbi/lib/orb/models/coupon_list_params.rbi +++ b/rbi/lib/orb/models/coupon_list_params.rbi @@ -9,40 +9,23 @@ module Orb # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit # Filter to coupons matching this redemption code. sig { returns(T.nilable(String)) } - def redemption_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def redemption_code=(_) - end + attr_accessor :redemption_code # Show archived coupons as well (by default, this endpoint only returns active # coupons). sig { returns(T.nilable(T::Boolean)) } - def show_archived - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def show_archived=(_) - end + attr_accessor :show_archived sig do params( @@ -50,7 +33,7 @@ module Orb limit: Integer, redemption_code: T.nilable(String), show_archived: T.nilable(T::Boolean), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/coupons/subscription_list_params.rbi b/rbi/lib/orb/models/coupons/subscription_list_params.rbi index c389a6b4..90659593 100644 --- a/rbi/lib/orb/models/coupons/subscription_list_params.rbi +++ b/rbi/lib/orb/models/coupons/subscription_list_params.rbi @@ -10,27 +10,20 @@ module Orb # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig do params( cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/credit_note.rbi b/rbi/lib/orb/models/credit_note.rbi index 47813e20..ae2c7fbb 100644 --- a/rbi/lib/orb/models/credit_note.rbi +++ b/rbi/lib/orb/models/credit_note.rbi @@ -5,151 +5,78 @@ module Orb class CreditNote < Orb::BaseModel # The Orb id of this credit note. sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The creation time of the resource in Orb. sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The unique identifier for credit notes. sig { returns(String) } - def credit_note_number - end - - sig { params(_: String).returns(String) } - def credit_note_number=(_) - end + attr_accessor :credit_note_number # A URL to a PDF of the credit note. sig { returns(T.nilable(String)) } - def credit_note_pdf - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def credit_note_pdf=(_) - end + attr_accessor :credit_note_pdf sig { returns(Orb::Models::CreditNote::Customer) } - def customer - end + attr_reader :customer - sig { params(_: Orb::Models::CreditNote::Customer).returns(Orb::Models::CreditNote::Customer) } - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::CreditNote::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer # The id of the invoice resource that this credit note is applied to. sig { returns(String) } - def invoice_id - end - - sig { params(_: String).returns(String) } - def invoice_id=(_) - end + attr_accessor :invoice_id # All of the line items associated with this credit note. sig { returns(T::Array[Orb::Models::CreditNote::LineItem]) } - def line_items - end - - sig do - params(_: T::Array[Orb::Models::CreditNote::LineItem]).returns(T::Array[Orb::Models::CreditNote::LineItem]) - end - def line_items=(_) - end + attr_accessor :line_items # The maximum amount applied on the original invoice sig { returns(T.nilable(Orb::Models::CreditNote::MaximumAmountAdjustment)) } - def maximum_amount_adjustment - end + attr_reader :maximum_amount_adjustment sig do - params(_: T.nilable(Orb::Models::CreditNote::MaximumAmountAdjustment)) - .returns(T.nilable(Orb::Models::CreditNote::MaximumAmountAdjustment)) - end - def maximum_amount_adjustment=(_) + params( + maximum_amount_adjustment: T.nilable(T.any(Orb::Models::CreditNote::MaximumAmountAdjustment, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum_amount_adjustment # An optional memo supplied on the credit note. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo # Any credited amount from the applied minimum on the invoice. sig { returns(T.nilable(String)) } - def minimum_amount_refunded - end + attr_accessor :minimum_amount_refunded - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount_refunded=(_) - end - - sig { returns(T.nilable(Symbol)) } - def reason - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def reason=(_) - end + sig { returns(T.nilable(Orb::Models::CreditNote::Reason::TaggedSymbol)) } + attr_accessor :reason # The total prior to any creditable invoice-level discounts or minimums. sig { returns(String) } - def subtotal - end - - sig { params(_: String).returns(String) } - def subtotal=(_) - end + attr_accessor :subtotal # The total including creditable invoice-level discounts or minimums, and tax. sig { returns(String) } - def total - end - - sig { params(_: String).returns(String) } - def total=(_) - end - - sig { returns(Symbol) } - def type - end + attr_accessor :total - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::CreditNote::Type::TaggedSymbol) } + attr_accessor :type # The time at which the credit note was voided in Orb, if applicable. sig { returns(T.nilable(Time)) } - def voided_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def voided_at=(_) - end + attr_accessor :voided_at # Any discounts applied on the original invoice. sig { returns(T.nilable(T::Array[Orb::Models::CreditNote::Discount])) } - def discounts - end + attr_reader :discounts - sig do - params(_: T::Array[Orb::Models::CreditNote::Discount]).returns(T::Array[Orb::Models::CreditNote::Discount]) - end - def discounts=(_) - end + sig { params(discounts: T::Array[T.any(Orb::Models::CreditNote::Discount, Orb::Util::AnyHash)]).void } + attr_writer :discounts # The [Credit Note](/invoicing/credit-notes) resource represents a credit that has # been applied to a particular invoice. @@ -159,18 +86,18 @@ module Orb created_at: Time, credit_note_number: String, credit_note_pdf: T.nilable(String), - customer: Orb::Models::CreditNote::Customer, + customer: T.any(Orb::Models::CreditNote::Customer, Orb::Util::AnyHash), invoice_id: String, - line_items: T::Array[Orb::Models::CreditNote::LineItem], - maximum_amount_adjustment: T.nilable(Orb::Models::CreditNote::MaximumAmountAdjustment), + line_items: T::Array[T.any(Orb::Models::CreditNote::LineItem, Orb::Util::AnyHash)], + maximum_amount_adjustment: T.nilable(T.any(Orb::Models::CreditNote::MaximumAmountAdjustment, Orb::Util::AnyHash)), memo: T.nilable(String), minimum_amount_refunded: T.nilable(String), - reason: T.nilable(Symbol), + reason: T.nilable(Orb::Models::CreditNote::Reason::OrSymbol), subtotal: String, total: String, - type: Symbol, + type: Orb::Models::CreditNote::Type::OrSymbol, voided_at: T.nilable(Time), - discounts: T::Array[Orb::Models::CreditNote::Discount] + discounts: T::Array[T.any(Orb::Models::CreditNote::Discount, Orb::Util::AnyHash)] ) .returns(T.attached_class) end @@ -208,10 +135,10 @@ module Orb maximum_amount_adjustment: T.nilable(Orb::Models::CreditNote::MaximumAmountAdjustment), memo: T.nilable(String), minimum_amount_refunded: T.nilable(String), - reason: T.nilable(Symbol), + reason: T.nilable(Orb::Models::CreditNote::Reason::TaggedSymbol), subtotal: String, total: String, - type: Symbol, + type: Orb::Models::CreditNote::Type::TaggedSymbol, voided_at: T.nilable(Time), discounts: T::Array[Orb::Models::CreditNote::Discount] } @@ -222,20 +149,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -249,81 +166,38 @@ module Orb class LineItem < Orb::BaseModel # The Orb id of this resource. sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The amount of the line item, including any line item minimums and discounts. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The id of the item associated with this line item. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The name of the corresponding invoice line item. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # An optional quantity credited. sig { returns(T.nilable(Float)) } - def quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def quantity=(_) - end + attr_accessor :quantity # The amount of the line item, excluding any line item minimums and discounts. sig { returns(String) } - def subtotal - end - - sig { params(_: String).returns(String) } - def subtotal=(_) - end + attr_accessor :subtotal # Any tax amounts applied onto the line item. sig { returns(T::Array[Orb::Models::CreditNote::LineItem::TaxAmount]) } - def tax_amounts - end - - sig do - params(_: T::Array[Orb::Models::CreditNote::LineItem::TaxAmount]) - .returns(T::Array[Orb::Models::CreditNote::LineItem::TaxAmount]) - end - def tax_amounts=(_) - end + attr_accessor :tax_amounts # Any line item discounts from the invoice's line item. sig { returns(T.nilable(T::Array[Orb::Models::CreditNote::LineItem::Discount])) } - def discounts - end + attr_reader :discounts - sig do - params(_: T::Array[Orb::Models::CreditNote::LineItem::Discount]) - .returns(T::Array[Orb::Models::CreditNote::LineItem::Discount]) - end - def discounts=(_) - end + sig { params(discounts: T::Array[T.any(Orb::Models::CreditNote::LineItem::Discount, Orb::Util::AnyHash)]).void } + attr_writer :discounts sig do params( @@ -333,8 +207,8 @@ module Orb 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] + tax_amounts: T::Array[T.any(Orb::Models::CreditNote::LineItem::TaxAmount, Orb::Util::AnyHash)], + discounts: T::Array[T.any(Orb::Models::CreditNote::LineItem::Discount, Orb::Util::AnyHash)] ) .returns(T.attached_class) end @@ -362,30 +236,15 @@ module Orb class TaxAmount < Orb::BaseModel # The amount of additional tax incurred by this tax rate. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The human-readable description of the applied tax rate. sig { returns(String) } - def tax_rate_description - end - - sig { params(_: String).returns(String) } - def tax_rate_description=(_) - end + attr_accessor :tax_rate_description # The tax rate percentage, out of 100. sig { returns(T.nilable(String)) } - def tax_rate_percentage - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def tax_rate_percentage=(_) - end + attr_accessor :tax_rate_percentage sig do params(amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)) @@ -409,67 +268,32 @@ module Orb class Discount < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def amount_applied - end - - sig { params(_: String).returns(String) } - def amount_applied=(_) - end + attr_accessor :amount_applied sig { returns(T::Array[String]) } - def applies_to_price_ids - end + attr_accessor :applies_to_price_ids - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end - - sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + sig { returns(Orb::Models::CreditNote::LineItem::Discount::DiscountType::TaggedSymbol) } + attr_accessor :discount_type sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount sig { returns(T.nilable(String)) } - def amount_discount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def amount_discount=(_) - end + attr_accessor :amount_discount sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( id: String, amount_applied: String, applies_to_price_ids: T::Array[String], - discount_type: Symbol, + discount_type: Orb::Models::CreditNote::LineItem::Discount::DiscountType::OrSymbol, percentage_discount: Float, amount_discount: T.nilable(String), reason: T.nilable(String) @@ -494,7 +318,7 @@ module Orb id: String, amount_applied: String, applies_to_price_ids: T::Array[String], - discount_type: Symbol, + discount_type: Orb::Models::CreditNote::LineItem::Discount::DiscountType::TaggedSymbol, percentage_discount: Float, amount_discount: T.nilable(String), reason: T.nilable(String) @@ -504,68 +328,50 @@ module Orb def to_hash end - class DiscountType < Orb::Enum - abstract! + module DiscountType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CreditNote::LineItem::Discount::DiscountType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::CreditNote::LineItem::Discount::DiscountType::TaggedSymbol) } - PERCENTAGE = :percentage - AMOUNT = :amount + PERCENTAGE = T.let(:percentage, Orb::Models::CreditNote::LineItem::Discount::DiscountType::TaggedSymbol) + AMOUNT = T.let(:amount, Orb::Models::CreditNote::LineItem::Discount::DiscountType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::CreditNote::LineItem::Discount::DiscountType::TaggedSymbol]) } + def values + end + end end end end class MaximumAmountAdjustment < Orb::BaseModel sig { returns(String) } - def amount_applied - end + attr_accessor :amount_applied - sig { params(_: String).returns(String) } - def amount_applied=(_) - end - - sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + sig { returns(Orb::Models::CreditNote::MaximumAmountAdjustment::DiscountType::TaggedSymbol) } + attr_accessor :discount_type sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount sig { returns(T.nilable(T::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice])) } - def applies_to_prices - end - - sig do - 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 + attr_accessor :applies_to_prices sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The maximum amount applied on the original invoice sig do params( amount_applied: String, - discount_type: Symbol, + discount_type: Orb::Models::CreditNote::MaximumAmountAdjustment::DiscountType::OrSymbol, percentage_discount: Float, - applies_to_prices: T.nilable(T::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice]), + applies_to_prices: T.nilable( + T::Array[T.any(Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice, Orb::Util::AnyHash)] + ), reason: T.nilable(String) ) .returns(T.attached_class) @@ -578,7 +384,7 @@ module Orb .returns( { amount_applied: String, - discount_type: Symbol, + discount_type: Orb::Models::CreditNote::MaximumAmountAdjustment::DiscountType::TaggedSymbol, percentage_discount: Float, applies_to_prices: T.nilable(T::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice]), reason: T.nilable(String) @@ -588,30 +394,30 @@ module Orb def to_hash end - class DiscountType < Orb::Enum - abstract! + module DiscountType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::CreditNote::MaximumAmountAdjustment::DiscountType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::CreditNote::MaximumAmountAdjustment::DiscountType::TaggedSymbol) } - PERCENTAGE = :percentage + PERCENTAGE = + T.let(:percentage, Orb::Models::CreditNote::MaximumAmountAdjustment::DiscountType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::DiscountType::TaggedSymbol]) } + def values + end + end end class AppliesToPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -623,76 +429,62 @@ module Orb end end - class Reason < Orb::Enum - abstract! + module Reason + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CreditNote::Reason) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::CreditNote::Reason::TaggedSymbol) } - DUPLICATE = :Duplicate - FRAUDULENT = :Fraudulent - ORDER_CHANGE = :"Order change" - PRODUCT_UNSATISFACTORY = :"Product unsatisfactory" + DUPLICATE = T.let(:Duplicate, Orb::Models::CreditNote::Reason::TaggedSymbol) + FRAUDULENT = T.let(:Fraudulent, Orb::Models::CreditNote::Reason::TaggedSymbol) + ORDER_CHANGE = T.let(:"Order change", Orb::Models::CreditNote::Reason::TaggedSymbol) + PRODUCT_UNSATISFACTORY = T.let(:"Product unsatisfactory", Orb::Models::CreditNote::Reason::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::CreditNote::Reason::TaggedSymbol]) } + def values + end + end end - class Type < Orb::Enum - abstract! + module Type + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CreditNote::Type) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::CreditNote::Type::TaggedSymbol) } - REFUND = :refund - ADJUSTMENT = :adjustment + REFUND = T.let(:refund, Orb::Models::CreditNote::Type::TaggedSymbol) + ADJUSTMENT = T.let(:adjustment, Orb::Models::CreditNote::Type::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::CreditNote::Type::TaggedSymbol]) } + def values + end + end end class Discount < Orb::BaseModel sig { returns(String) } - def amount_applied - end - - sig { params(_: String).returns(String) } - def amount_applied=(_) - end - - sig { returns(Symbol) } - def discount_type - end + attr_accessor :amount_applied - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + sig { returns(Orb::Models::CreditNote::Discount::DiscountType::TaggedSymbol) } + attr_accessor :discount_type sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount sig { returns(T.nilable(T::Array[Orb::Models::CreditNote::Discount::AppliesToPrice])) } - def applies_to_prices - end - - sig do - 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 + attr_accessor :applies_to_prices sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( amount_applied: String, - discount_type: Symbol, + discount_type: Orb::Models::CreditNote::Discount::DiscountType::OrSymbol, percentage_discount: Float, - applies_to_prices: T.nilable(T::Array[Orb::Models::CreditNote::Discount::AppliesToPrice]), + applies_to_prices: T.nilable(T::Array[T.any(Orb::Models::CreditNote::Discount::AppliesToPrice, Orb::Util::AnyHash)]), reason: T.nilable(String) ) .returns(T.attached_class) @@ -705,7 +497,7 @@ module Orb .returns( { amount_applied: String, - discount_type: Symbol, + discount_type: Orb::Models::CreditNote::Discount::DiscountType::TaggedSymbol, percentage_discount: Float, applies_to_prices: T.nilable(T::Array[Orb::Models::CreditNote::Discount::AppliesToPrice]), reason: T.nilable(String) @@ -715,30 +507,27 @@ module Orb def to_hash end - class DiscountType < Orb::Enum - abstract! + module DiscountType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CreditNote::Discount::DiscountType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::CreditNote::Discount::DiscountType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + PERCENTAGE = T.let(:percentage, Orb::Models::CreditNote::Discount::DiscountType::TaggedSymbol) - PERCENTAGE = :percentage + class << self + sig { override.returns(T::Array[Orb::Models::CreditNote::Discount::DiscountType::TaggedSymbol]) } + def values + end + end end class AppliesToPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) diff --git a/rbi/lib/orb/models/credit_note_create_params.rbi b/rbi/lib/orb/models/credit_note_create_params.rbi index 6b4a7e6a..a143a82d 100644 --- a/rbi/lib/orb/models/credit_note_create_params.rbi +++ b/rbi/lib/orb/models/credit_note_create_params.rbi @@ -7,40 +7,22 @@ module Orb include Orb::RequestParameters sig { returns(T::Array[Orb::Models::CreditNoteCreateParams::LineItem]) } - def line_items - end - - sig do - params(_: T::Array[Orb::Models::CreditNoteCreateParams::LineItem]) - .returns(T::Array[Orb::Models::CreditNoteCreateParams::LineItem]) - end - def line_items=(_) - end + attr_accessor :line_items # An optional memo to attach to the credit note. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo # An optional reason for the credit note. - sig { returns(T.nilable(Symbol)) } - def reason - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def reason=(_) - end + sig { returns(T.nilable(Orb::Models::CreditNoteCreateParams::Reason::OrSymbol)) } + attr_accessor :reason sig do params( - line_items: T::Array[Orb::Models::CreditNoteCreateParams::LineItem], + line_items: T::Array[T.any(Orb::Models::CreditNoteCreateParams::LineItem, Orb::Util::AnyHash)], memo: T.nilable(String), - reason: T.nilable(Symbol), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + reason: T.nilable(Orb::Models::CreditNoteCreateParams::Reason::OrSymbol), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -53,7 +35,7 @@ module Orb { line_items: T::Array[Orb::Models::CreditNoteCreateParams::LineItem], memo: T.nilable(String), - reason: T.nilable(Symbol), + reason: T.nilable(Orb::Models::CreditNoteCreateParams::Reason::OrSymbol), request_options: Orb::RequestOptions } ) @@ -64,21 +46,11 @@ module Orb class LineItem < Orb::BaseModel # The total amount in the invoice's currency to credit this line item. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The ID of the line item to credit. sig { returns(String) } - def invoice_line_item_id - end - - sig { params(_: String).returns(String) } - def invoice_line_item_id=(_) - end + attr_accessor :invoice_line_item_id sig { params(amount: String, invoice_line_item_id: String).returns(T.attached_class) } def self.new(amount:, invoice_line_item_id:) @@ -90,15 +62,23 @@ module Orb end # An optional reason for the credit note. - class Reason < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - DUPLICATE = :duplicate - FRAUDULENT = :fraudulent - ORDER_CHANGE = :order_change - PRODUCT_UNSATISFACTORY = :product_unsatisfactory + module Reason + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CreditNoteCreateParams::Reason) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::CreditNoteCreateParams::Reason::TaggedSymbol) } + + DUPLICATE = T.let(:duplicate, Orb::Models::CreditNoteCreateParams::Reason::TaggedSymbol) + FRAUDULENT = T.let(:fraudulent, Orb::Models::CreditNoteCreateParams::Reason::TaggedSymbol) + ORDER_CHANGE = T.let(:order_change, Orb::Models::CreditNoteCreateParams::Reason::TaggedSymbol) + PRODUCT_UNSATISFACTORY = + T.let(:product_unsatisfactory, Orb::Models::CreditNoteCreateParams::Reason::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::CreditNoteCreateParams::Reason::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/credit_note_fetch_params.rbi b/rbi/lib/orb/models/credit_note_fetch_params.rbi index 524f0bf9..d29a47b6 100644 --- a/rbi/lib/orb/models/credit_note_fetch_params.rbi +++ b/rbi/lib/orb/models/credit_note_fetch_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/credit_note_list_params.rbi b/rbi/lib/orb/models/credit_note_list_params.rbi index 7162c98d..8cd5de4b 100644 --- a/rbi/lib/orb/models/credit_note_list_params.rbi +++ b/rbi/lib/orb/models/credit_note_list_params.rbi @@ -7,55 +7,28 @@ module Orb include Orb::RequestParameters sig { returns(T.nilable(Time)) } - def created_at_gt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gt=(_) - end + attr_accessor :created_at_gt sig { returns(T.nilable(Time)) } - def created_at_gte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gte=(_) - end + attr_accessor :created_at_gte sig { returns(T.nilable(Time)) } - def created_at_lt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lt=(_) - end + attr_accessor :created_at_lt sig { returns(T.nilable(Time)) } - def created_at_lte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lte=(_) - end + attr_accessor :created_at_lte # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig do params( @@ -65,7 +38,7 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/customer.rbi b/rbi/lib/orb/models/customer.rbi index 19d6f383..724baa9f 100644 --- a/rbi/lib/orb/models/customer.rbi +++ b/rbi/lib/orb/models/customer.rbi @@ -4,172 +4,85 @@ module Orb module Models class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T::Array[String]) } - def additional_emails - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def additional_emails=(_) - end + attr_accessor :additional_emails sig { returns(T::Boolean) } - def auto_collection - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def auto_collection=(_) - end + attr_accessor :auto_collection # The customer's current balance in their currency. sig { returns(String) } - def balance - end - - sig { params(_: String).returns(String) } - def balance=(_) - end + attr_accessor :balance sig { returns(T.nilable(Orb::Models::Customer::BillingAddress)) } - def billing_address - end + attr_reader :billing_address - sig do - params(_: T.nilable(Orb::Models::Customer::BillingAddress)) - .returns(T.nilable(Orb::Models::Customer::BillingAddress)) - end - def billing_address=(_) - end + sig { params(billing_address: T.nilable(T.any(Orb::Models::Customer::BillingAddress, Orb::Util::AnyHash))).void } + attr_writer :billing_address sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # A valid customer email, to be used for notifications. When Orb triggers payment # through a payment gateway, this email will be used for any automatically issued # receipts. sig { returns(String) } - def email - end - - sig { params(_: String).returns(String) } - def email=(_) - end + attr_accessor :email sig { returns(T::Boolean) } - def email_delivery - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def email_delivery=(_) - end + attr_accessor :email_delivery sig { returns(T.nilable(T::Boolean)) } - def exempt_from_automated_tax - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def exempt_from_automated_tax=(_) - end + attr_accessor :exempt_from_automated_tax # An optional user-defined ID for this customer resource, used throughout the # system as an alias for this Customer. Use this field to identify a customer by # an existing identifier in your system. sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id # The hierarchical relationships for this customer. sig { returns(Orb::Models::Customer::Hierarchy) } - def hierarchy - end + attr_reader :hierarchy - sig { params(_: Orb::Models::Customer::Hierarchy).returns(Orb::Models::Customer::Hierarchy) } - def hierarchy=(_) - end + sig { params(hierarchy: T.any(Orb::Models::Customer::Hierarchy, Orb::Util::AnyHash)).void } + attr_writer :hierarchy # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata # The full name of the customer sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # This is used for creating charges or invoices in an external system via Orb. # When not in test mode, the connection must first be configured in the Orb # webapp. - sig { returns(T.nilable(Symbol)) } - def payment_provider - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def payment_provider=(_) - end + sig { returns(T.nilable(Orb::Models::Customer::PaymentProvider::TaggedSymbol)) } + attr_accessor :payment_provider # The ID of this customer in an external payments solution, such as Stripe. This # is used for creating charges or invoices in the external system via Orb. sig { returns(T.nilable(String)) } - def payment_provider_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def payment_provider_id=(_) - end + attr_accessor :payment_provider_id sig { returns(T.nilable(String)) } - def portal_url - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def portal_url=(_) - end + attr_accessor :portal_url sig { returns(T.nilable(Orb::Models::Customer::ShippingAddress)) } - def shipping_address - end + attr_reader :shipping_address - sig do - params(_: T.nilable(Orb::Models::Customer::ShippingAddress)) - .returns(T.nilable(Orb::Models::Customer::ShippingAddress)) - end - def shipping_address=(_) - end + sig { params(shipping_address: T.nilable(T.any(Orb::Models::Customer::ShippingAddress, Orb::Util::AnyHash))).void } + attr_writer :shipping_address # Tax IDs are commonly required to be displayed on customer invoices, which are # added to the headers of invoices. @@ -277,45 +190,38 @@ module Orb # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | sig { returns(T.nilable(Orb::Models::Customer::TaxID)) } - def tax_id - end + attr_reader :tax_id - sig { params(_: T.nilable(Orb::Models::Customer::TaxID)).returns(T.nilable(Orb::Models::Customer::TaxID)) } - def tax_id=(_) - end + sig { params(tax_id: T.nilable(T.any(Orb::Models::Customer::TaxID, Orb::Util::AnyHash))).void } + attr_writer :tax_id # A timezone identifier from the IANA timezone database, such as # "America/Los_Angeles". This "defaults to your account's timezone if not set. # This cannot be changed after customer creation. sig { returns(String) } - def timezone - end - - sig { params(_: String).returns(String) } - def timezone=(_) - end + attr_accessor :timezone sig { returns(T.nilable(Orb::Models::Customer::AccountingSyncConfiguration)) } - def accounting_sync_configuration - end + attr_reader :accounting_sync_configuration sig do - params(_: T.nilable(Orb::Models::Customer::AccountingSyncConfiguration)) - .returns(T.nilable(Orb::Models::Customer::AccountingSyncConfiguration)) - end - def accounting_sync_configuration=(_) + params( + accounting_sync_configuration: T.nilable(T.any(Orb::Models::Customer::AccountingSyncConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :accounting_sync_configuration sig { returns(T.nilable(Orb::Models::Customer::ReportingConfiguration)) } - def reporting_configuration - end + attr_reader :reporting_configuration sig do - params(_: T.nilable(Orb::Models::Customer::ReportingConfiguration)) - .returns(T.nilable(Orb::Models::Customer::ReportingConfiguration)) - end - def reporting_configuration=(_) + params( + reporting_configuration: T.nilable(T.any(Orb::Models::Customer::ReportingConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :reporting_configuration # A customer is a buyer of your products, and the other party to the billing # relationship. @@ -341,24 +247,24 @@ module Orb additional_emails: T::Array[String], auto_collection: T::Boolean, balance: String, - billing_address: T.nilable(Orb::Models::Customer::BillingAddress), + billing_address: T.nilable(T.any(Orb::Models::Customer::BillingAddress, Orb::Util::AnyHash)), 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), - hierarchy: Orb::Models::Customer::Hierarchy, + hierarchy: T.any(Orb::Models::Customer::Hierarchy, Orb::Util::AnyHash), metadata: T::Hash[Symbol, String], name: String, - payment_provider: T.nilable(Symbol), + payment_provider: T.nilable(Orb::Models::Customer::PaymentProvider::OrSymbol), 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), + shipping_address: T.nilable(T.any(Orb::Models::Customer::ShippingAddress, Orb::Util::AnyHash)), + tax_id: T.nilable(T.any(Orb::Models::Customer::TaxID, Orb::Util::AnyHash)), timezone: String, - accounting_sync_configuration: T.nilable(Orb::Models::Customer::AccountingSyncConfiguration), - reporting_configuration: T.nilable(Orb::Models::Customer::ReportingConfiguration) + accounting_sync_configuration: T.nilable(T.any(Orb::Models::Customer::AccountingSyncConfiguration, Orb::Util::AnyHash)), + reporting_configuration: T.nilable(T.any(Orb::Models::Customer::ReportingConfiguration, Orb::Util::AnyHash)) ) .returns(T.attached_class) end @@ -406,7 +312,7 @@ module Orb hierarchy: Orb::Models::Customer::Hierarchy, metadata: T::Hash[Symbol, String], name: String, - payment_provider: T.nilable(Symbol), + payment_provider: T.nilable(Orb::Models::Customer::PaymentProvider::TaggedSymbol), payment_provider_id: T.nilable(String), portal_url: T.nilable(String), shipping_address: T.nilable(Orb::Models::Customer::ShippingAddress), @@ -422,52 +328,22 @@ module Orb class BillingAddress < Orb::BaseModel sig { returns(T.nilable(String)) } - def city - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def city=(_) - end + attr_accessor :city sig { returns(T.nilable(String)) } - def country - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def country=(_) - end + attr_accessor :country sig { returns(T.nilable(String)) } - def line1 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_) - end + attr_accessor :line1 sig { returns(T.nilable(String)) } - def line2 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_) - end + attr_accessor :line2 sig { returns(T.nilable(String)) } - def postal_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_) - end + attr_accessor :postal_code sig { returns(T.nilable(String)) } - def state - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def state=(_) - end + attr_accessor :state sig do params( @@ -502,32 +378,19 @@ module Orb class Hierarchy < Orb::BaseModel sig { returns(T::Array[Orb::Models::Customer::Hierarchy::Child]) } - def children - end - - sig do - params(_: T::Array[Orb::Models::Customer::Hierarchy::Child]) - .returns(T::Array[Orb::Models::Customer::Hierarchy::Child]) - end - def children=(_) - end + attr_accessor :children sig { returns(T.nilable(Orb::Models::Customer::Hierarchy::Parent)) } - def parent - end + attr_reader :parent - sig do - params(_: T.nilable(Orb::Models::Customer::Hierarchy::Parent)) - .returns(T.nilable(Orb::Models::Customer::Hierarchy::Parent)) - end - def parent=(_) - end + sig { params(parent: T.nilable(T.any(Orb::Models::Customer::Hierarchy::Parent, Orb::Util::AnyHash))).void } + attr_writer :parent # The hierarchical relationships for this customer. sig do params( - children: T::Array[Orb::Models::Customer::Hierarchy::Child], - parent: T.nilable(Orb::Models::Customer::Hierarchy::Parent) + children: T::Array[T.any(Orb::Models::Customer::Hierarchy::Child, Orb::Util::AnyHash)], + parent: T.nilable(T.any(Orb::Models::Customer::Hierarchy::Parent, Orb::Util::AnyHash)) ) .returns(T.attached_class) end @@ -548,20 +411,10 @@ module Orb class Child < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -574,20 +427,10 @@ module Orb class Parent < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -602,66 +445,43 @@ module Orb # This is used for creating charges or invoices in an external system via Orb. # When not in test mode, the connection must first be configured in the Orb # webapp. - class PaymentProvider < Orb::Enum - abstract! + module PaymentProvider + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Customer::PaymentProvider) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Customer::PaymentProvider::TaggedSymbol) } - QUICKBOOKS = :quickbooks - BILL_COM = :"bill.com" - STRIPE_CHARGE = :stripe_charge - STRIPE_INVOICE = :stripe_invoice - NETSUITE = :netsuite + QUICKBOOKS = T.let(:quickbooks, Orb::Models::Customer::PaymentProvider::TaggedSymbol) + BILL_COM = T.let(:"bill.com", Orb::Models::Customer::PaymentProvider::TaggedSymbol) + STRIPE_CHARGE = T.let(:stripe_charge, Orb::Models::Customer::PaymentProvider::TaggedSymbol) + STRIPE_INVOICE = T.let(:stripe_invoice, Orb::Models::Customer::PaymentProvider::TaggedSymbol) + NETSUITE = T.let(:netsuite, Orb::Models::Customer::PaymentProvider::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Customer::PaymentProvider::TaggedSymbol]) } + def values + end + end end class ShippingAddress < Orb::BaseModel sig { returns(T.nilable(String)) } - def city - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def city=(_) - end + attr_accessor :city sig { returns(T.nilable(String)) } - def country - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def country=(_) - end + attr_accessor :country sig { returns(T.nilable(String)) } - def line1 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_) - end + attr_accessor :line1 sig { returns(T.nilable(String)) } - def line2 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_) - end + attr_accessor :line2 sig { returns(T.nilable(String)) } - def postal_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_) - end + attr_accessor :postal_code sig { returns(T.nilable(String)) } - def state - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def state=(_) - end + attr_accessor :state sig do params( @@ -695,29 +515,14 @@ module Orb end class TaxID < Orb::BaseModel - sig { returns(Symbol) } - def country - end + sig { returns(Orb::Models::Customer::TaxID::Country::TaggedSymbol) } + attr_accessor :country - sig { params(_: Symbol).returns(Symbol) } - def country=(_) - end - - sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::Customer::TaxID::Type::TaggedSymbol) } + attr_accessor :type sig { returns(String) } - def value - end - - sig { params(_: String).returns(String) } - def value=(_) - end + attr_accessor :value # Tax IDs are commonly required to be displayed on customer invoices, which are # added to the headers of invoices. @@ -824,201 +629,218 @@ module Orb # | Uruguay | `uy_ruc` | Uruguayan RUC Number | # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | - sig { params(country: Symbol, type: Symbol, value: String).returns(T.attached_class) } + sig do + params( + country: Orb::Models::Customer::TaxID::Country::OrSymbol, + type: Orb::Models::Customer::TaxID::Type::OrSymbol, + value: String + ) + .returns(T.attached_class) + end def self.new(country:, type:, value:) end - sig { override.returns({country: Symbol, type: Symbol, value: String}) } + sig do + override + .returns( + { + country: Orb::Models::Customer::TaxID::Country::TaggedSymbol, + type: Orb::Models::Customer::TaxID::Type::TaggedSymbol, + value: String + } + ) + end def to_hash end - class Country < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - AD = :AD - AE = :AE - AR = :AR - AT = :AT - AU = :AU - BE = :BE - BG = :BG - BH = :BH - BO = :BO - BR = :BR - CA = :CA - CH = :CH - CL = :CL - CN = :CN - CO = :CO - CR = :CR - CY = :CY - CZ = :CZ - DE = :DE - DK = :DK - EE = :EE - DO = :DO - EC = :EC - EG = :EG - ES = :ES - EU = :EU - FI = :FI - FR = :FR - GB = :GB - GE = :GE - GR = :GR - HK = :HK - HR = :HR - HU = :HU - ID = :ID - IE = :IE - IL = :IL - IN = :IN - IS = :IS - IT = :IT - JP = :JP - KE = :KE - KR = :KR - KZ = :KZ - LI = :LI - LT = :LT - LU = :LU - LV = :LV - MT = :MT - MX = :MX - MY = :MY - NG = :NG - NL = :NL - NO = :NO - NZ = :NZ - OM = :OM - PE = :PE - PH = :PH - PL = :PL - PT = :PT - RO = :RO - RS = :RS - RU = :RU - SA = :SA - SE = :SE - SG = :SG - SI = :SI - SK = :SK - SV = :SV - TH = :TH - TR = :TR - TW = :TW - UA = :UA - US = :US - UY = :UY - VE = :VE - VN = :VN - ZA = :ZA + module Country + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Customer::TaxID::Country) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Customer::TaxID::Country::TaggedSymbol) } + + AD = T.let(:AD, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + AE = T.let(:AE, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + AR = T.let(:AR, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + AT = T.let(:AT, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + AU = T.let(:AU, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + BE = T.let(:BE, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + BG = T.let(:BG, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + BH = T.let(:BH, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + BO = T.let(:BO, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + BR = T.let(:BR, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + CA = T.let(:CA, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + CH = T.let(:CH, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + CL = T.let(:CL, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + CN = T.let(:CN, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + CO = T.let(:CO, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + CR = T.let(:CR, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + CY = T.let(:CY, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + CZ = T.let(:CZ, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + DE = T.let(:DE, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + DK = T.let(:DK, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + EE = T.let(:EE, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + DO = T.let(:DO, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + EC = T.let(:EC, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + EG = T.let(:EG, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + ES = T.let(:ES, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + EU = T.let(:EU, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + FI = T.let(:FI, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + FR = T.let(:FR, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + GB = T.let(:GB, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + GE = T.let(:GE, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + GR = T.let(:GR, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + HK = T.let(:HK, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + HR = T.let(:HR, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + HU = T.let(:HU, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + ID = T.let(:ID, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + IE = T.let(:IE, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + IL = T.let(:IL, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + IN = T.let(:IN, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + IS = T.let(:IS, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + IT = T.let(:IT, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + JP = T.let(:JP, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + KE = T.let(:KE, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + KR = T.let(:KR, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + KZ = T.let(:KZ, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + LI = T.let(:LI, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + LT = T.let(:LT, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + LU = T.let(:LU, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + LV = T.let(:LV, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + MT = T.let(:MT, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + MX = T.let(:MX, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + MY = T.let(:MY, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + NG = T.let(:NG, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + NL = T.let(:NL, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + NO = T.let(:NO, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + NZ = T.let(:NZ, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + OM = T.let(:OM, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + PE = T.let(:PE, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + PH = T.let(:PH, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + PL = T.let(:PL, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + PT = T.let(:PT, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + RO = T.let(:RO, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + RS = T.let(:RS, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + RU = T.let(:RU, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + SA = T.let(:SA, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + SE = T.let(:SE, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + SG = T.let(:SG, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + SI = T.let(:SI, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + SK = T.let(:SK, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + SV = T.let(:SV, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + TH = T.let(:TH, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + TR = T.let(:TR, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + TW = T.let(:TW, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + UA = T.let(:UA, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + US = T.let(:US, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + UY = T.let(:UY, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + VE = T.let(:VE, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + VN = T.let(:VN, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + ZA = T.let(:ZA, Orb::Models::Customer::TaxID::Country::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Customer::TaxID::Country::TaggedSymbol]) } + def values + end + end end - class Type < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - AD_NRT = :ad_nrt - AE_TRN = :ae_trn - AR_CUIT = :ar_cuit - EU_VAT = :eu_vat - AU_ABN = :au_abn - AU_ARN = :au_arn - BG_UIC = :bg_uic - BH_VAT = :bh_vat - BO_TIN = :bo_tin - BR_CNPJ = :br_cnpj - BR_CPF = :br_cpf - CA_BN = :ca_bn - CA_GST_HST = :ca_gst_hst - CA_PST_BC = :ca_pst_bc - CA_PST_MB = :ca_pst_mb - CA_PST_SK = :ca_pst_sk - CA_QST = :ca_qst - CH_VAT = :ch_vat - CL_TIN = :cl_tin - CN_TIN = :cn_tin - CO_NIT = :co_nit - CR_TIN = :cr_tin - DO_RCN = :do_rcn - EC_RUC = :ec_ruc - EG_TIN = :eg_tin - ES_CIF = :es_cif - EU_OSS_VAT = :eu_oss_vat - GB_VAT = :gb_vat - GE_VAT = :ge_vat - HK_BR = :hk_br - HU_TIN = :hu_tin - ID_NPWP = :id_npwp - IL_VAT = :il_vat - IN_GST = :in_gst - IS_VAT = :is_vat - JP_CN = :jp_cn - JP_RN = :jp_rn - JP_TRN = :jp_trn - KE_PIN = :ke_pin - KR_BRN = :kr_brn - KZ_BIN = :kz_bin - LI_UID = :li_uid - MX_RFC = :mx_rfc - MY_FRP = :my_frp - MY_ITN = :my_itn - MY_SST = :my_sst - NG_TIN = :ng_tin - NO_VAT = :no_vat - NO_VOEC = :no_voec - NZ_GST = :nz_gst - OM_VAT = :om_vat - PE_RUC = :pe_ruc - PH_TIN = :ph_tin - RO_TIN = :ro_tin - RS_PIB = :rs_pib - RU_INN = :ru_inn - RU_KPP = :ru_kpp - SA_VAT = :sa_vat - SG_GST = :sg_gst - SG_UEN = :sg_uen - SI_TIN = :si_tin - SV_NIT = :sv_nit - TH_VAT = :th_vat - TR_TIN = :tr_tin - TW_VAT = :tw_vat - UA_VAT = :ua_vat - US_EIN = :us_ein - UY_RUC = :uy_ruc - VE_RIF = :ve_rif - VN_TIN = :vn_tin - ZA_VAT = :za_vat + module Type + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Customer::TaxID::Type) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Customer::TaxID::Type::TaggedSymbol) } + + AD_NRT = T.let(:ad_nrt, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + AE_TRN = T.let(:ae_trn, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + AR_CUIT = T.let(:ar_cuit, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + EU_VAT = T.let(:eu_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + AU_ABN = T.let(:au_abn, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + AU_ARN = T.let(:au_arn, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + BG_UIC = T.let(:bg_uic, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + BH_VAT = T.let(:bh_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + BO_TIN = T.let(:bo_tin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + BR_CNPJ = T.let(:br_cnpj, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + BR_CPF = T.let(:br_cpf, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + CA_BN = T.let(:ca_bn, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + CA_GST_HST = T.let(:ca_gst_hst, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + CA_PST_BC = T.let(:ca_pst_bc, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + CA_PST_MB = T.let(:ca_pst_mb, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + CA_PST_SK = T.let(:ca_pst_sk, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + CA_QST = T.let(:ca_qst, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + CH_VAT = T.let(:ch_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + CL_TIN = T.let(:cl_tin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + CN_TIN = T.let(:cn_tin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + CO_NIT = T.let(:co_nit, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + CR_TIN = T.let(:cr_tin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + DO_RCN = T.let(:do_rcn, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + EC_RUC = T.let(:ec_ruc, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + EG_TIN = T.let(:eg_tin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + ES_CIF = T.let(:es_cif, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + EU_OSS_VAT = T.let(:eu_oss_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + GB_VAT = T.let(:gb_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + GE_VAT = T.let(:ge_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + HK_BR = T.let(:hk_br, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + HU_TIN = T.let(:hu_tin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + ID_NPWP = T.let(:id_npwp, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + IL_VAT = T.let(:il_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + IN_GST = T.let(:in_gst, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + IS_VAT = T.let(:is_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + JP_CN = T.let(:jp_cn, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + JP_RN = T.let(:jp_rn, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + JP_TRN = T.let(:jp_trn, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + KE_PIN = T.let(:ke_pin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + KR_BRN = T.let(:kr_brn, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + KZ_BIN = T.let(:kz_bin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + LI_UID = T.let(:li_uid, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + MX_RFC = T.let(:mx_rfc, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + MY_FRP = T.let(:my_frp, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + MY_ITN = T.let(:my_itn, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + MY_SST = T.let(:my_sst, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + NG_TIN = T.let(:ng_tin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + NO_VAT = T.let(:no_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + NO_VOEC = T.let(:no_voec, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + NZ_GST = T.let(:nz_gst, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + OM_VAT = T.let(:om_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + PE_RUC = T.let(:pe_ruc, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + PH_TIN = T.let(:ph_tin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + RO_TIN = T.let(:ro_tin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + RS_PIB = T.let(:rs_pib, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + RU_INN = T.let(:ru_inn, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + RU_KPP = T.let(:ru_kpp, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + SA_VAT = T.let(:sa_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + SG_GST = T.let(:sg_gst, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + SG_UEN = T.let(:sg_uen, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + SI_TIN = T.let(:si_tin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + SV_NIT = T.let(:sv_nit, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + TH_VAT = T.let(:th_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + TR_TIN = T.let(:tr_tin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + TW_VAT = T.let(:tw_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + UA_VAT = T.let(:ua_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + US_EIN = T.let(:us_ein, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + UY_RUC = T.let(:uy_ruc, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + VE_RIF = T.let(:ve_rif, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + VN_TIN = T.let(:vn_tin, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + ZA_VAT = T.let(:za_vat, Orb::Models::Customer::TaxID::Type::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Customer::TaxID::Type::TaggedSymbol]) } + def values + end + end end end class AccountingSyncConfiguration < Orb::BaseModel sig { returns(T::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider]) } - def accounting_providers - end - - sig do - params(_: T::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider]) - .returns(T::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider]) - end - def accounting_providers=(_) - end + attr_accessor :accounting_providers sig { returns(T::Boolean) } - def excluded - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def excluded=(_) - end + attr_accessor :excluded sig do params( - accounting_providers: T::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider], + accounting_providers: T::Array[T.any(Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider, Orb::Util::AnyHash)], excluded: T::Boolean ) .returns(T.attached_class) @@ -1040,50 +862,78 @@ module Orb class AccountingProvider < Orb::BaseModel sig { returns(T.nilable(String)) } - def external_provider_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_provider_id=(_) - end - - sig { returns(Symbol) } - def provider_type - end + attr_accessor :external_provider_id - sig { params(_: Symbol).returns(Symbol) } - def provider_type=(_) + sig do + returns( + Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::TaggedSymbol + ) end + attr_accessor :provider_type sig do - params(external_provider_id: T.nilable(String), provider_type: Symbol).returns(T.attached_class) + params( + external_provider_id: T.nilable(String), + provider_type: Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::OrSymbol + ) + .returns(T.attached_class) end def self.new(external_provider_id:, provider_type:) end - sig { override.returns({external_provider_id: T.nilable(String), provider_type: Symbol}) } + sig do + override + .returns( + { + external_provider_id: T.nilable(String), + provider_type: Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::TaggedSymbol + } + ) + end def to_hash end - class ProviderType < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - QUICKBOOKS = :quickbooks - NETSUITE = :netsuite + module ProviderType + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::TaggedSymbol + ) + end + + QUICKBOOKS = + T.let( + :quickbooks, + Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::TaggedSymbol + ) + NETSUITE = + T.let( + :netsuite, + Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::ProviderType::TaggedSymbol] + ) + end + def values + end + end end end end class ReportingConfiguration < Orb::BaseModel sig { returns(T::Boolean) } - def exempt - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def exempt=(_) - end + attr_accessor :exempt sig { params(exempt: T::Boolean).returns(T.attached_class) } def self.new(exempt:) diff --git a/rbi/lib/orb/models/customer_create_params.rbi b/rbi/lib/orb/models/customer_create_params.rbi index 5ff4be7a..c685dd94 100644 --- a/rbi/lib/orb/models/customer_create_params.rbi +++ b/rbi/lib/orb/models/customer_create_params.rbi @@ -10,162 +10,104 @@ module Orb # through a payment gateway, this email will be used for any automatically issued # receipts. sig { returns(String) } - def email - end - - sig { params(_: String).returns(String) } - def email=(_) - end + attr_accessor :email # The full name of the customer sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration)) } - def accounting_sync_configuration - end + attr_reader :accounting_sync_configuration sig do - params(_: T.nilable(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration)) - .returns(T.nilable(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration)) - end - def accounting_sync_configuration=(_) + params( + accounting_sync_configuration: T.nilable(T.any(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :accounting_sync_configuration # Additional email addresses for this customer. If populated, these email # addresses will be CC'd for customer communications. sig { returns(T.nilable(T::Array[String])) } - def additional_emails - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def additional_emails=(_) - end + attr_accessor :additional_emails # Used to determine if invoices for this customer will automatically attempt to # charge a saved payment method, if available. This parameter defaults to `True` # when a payment provider is provided on customer creation. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(T.nilable(Orb::Models::CustomerCreateParams::BillingAddress)) } - def billing_address - end + attr_reader :billing_address sig do - params(_: T.nilable(Orb::Models::CustomerCreateParams::BillingAddress)) - .returns(T.nilable(Orb::Models::CustomerCreateParams::BillingAddress)) - end - def billing_address=(_) + params( + billing_address: T.nilable(T.any(Orb::Models::CustomerCreateParams::BillingAddress, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billing_address # An ISO 4217 currency string used for the customer's invoices and balance. If not # set at creation time, will be set at subscription creation time. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency sig { returns(T.nilable(T::Boolean)) } - def email_delivery - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def email_delivery=(_) - end + attr_accessor :email_delivery # An optional user-defined ID for this customer resource, used throughout the # system as an alias for this Customer. Use this field to identify a customer by # an existing identifier in your system. sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id # The hierarchical relationships for this customer. sig { returns(T.nilable(Orb::Models::CustomerCreateParams::Hierarchy)) } - def hierarchy - end + attr_reader :hierarchy - sig do - params(_: T.nilable(Orb::Models::CustomerCreateParams::Hierarchy)) - .returns(T.nilable(Orb::Models::CustomerCreateParams::Hierarchy)) - end - def hierarchy=(_) - end + sig { params(hierarchy: T.nilable(T.any(Orb::Models::CustomerCreateParams::Hierarchy, Orb::Util::AnyHash))).void } + attr_writer :hierarchy # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # This is used for creating charges or invoices in an external system via Orb. # When not in test mode, the connection must first be configured in the Orb # webapp. - sig { returns(T.nilable(Symbol)) } - def payment_provider - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def payment_provider=(_) - end + sig { returns(T.nilable(Orb::Models::CustomerCreateParams::PaymentProvider::OrSymbol)) } + attr_accessor :payment_provider # The ID of this customer in an external payments solution, such as Stripe. This # is used for creating charges or invoices in the external system via Orb. sig { returns(T.nilable(String)) } - def payment_provider_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def payment_provider_id=(_) - end + attr_accessor :payment_provider_id sig { returns(T.nilable(Orb::Models::CustomerCreateParams::ReportingConfiguration)) } - def reporting_configuration - end + attr_reader :reporting_configuration sig do - params(_: T.nilable(Orb::Models::CustomerCreateParams::ReportingConfiguration)) - .returns(T.nilable(Orb::Models::CustomerCreateParams::ReportingConfiguration)) - end - def reporting_configuration=(_) + params( + reporting_configuration: T.nilable(T.any(Orb::Models::CustomerCreateParams::ReportingConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :reporting_configuration sig { returns(T.nilable(Orb::Models::CustomerCreateParams::ShippingAddress)) } - def shipping_address - end + attr_reader :shipping_address sig do - params(_: T.nilable(Orb::Models::CustomerCreateParams::ShippingAddress)) - .returns(T.nilable(Orb::Models::CustomerCreateParams::ShippingAddress)) - end - def shipping_address=(_) + params( + shipping_address: T.nilable(T.any(Orb::Models::CustomerCreateParams::ShippingAddress, Orb::Util::AnyHash)) + ) + .void end + attr_writer :shipping_address sig do returns( @@ -177,29 +119,7 @@ module Orb ) ) end - def tax_configuration - end - - sig do - params( - _: 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 + attr_accessor :tax_configuration # Tax IDs are commonly required to be displayed on customer invoices, which are # added to the headers of invoices. @@ -307,53 +227,44 @@ module Orb # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | sig { returns(T.nilable(Orb::Models::CustomerCreateParams::TaxID)) } - def tax_id - end + attr_reader :tax_id - sig do - params(_: T.nilable(Orb::Models::CustomerCreateParams::TaxID)) - .returns(T.nilable(Orb::Models::CustomerCreateParams::TaxID)) - end - def tax_id=(_) - end + sig { params(tax_id: T.nilable(T.any(Orb::Models::CustomerCreateParams::TaxID, Orb::Util::AnyHash))).void } + attr_writer :tax_id # A timezone identifier from the IANA timezone database, such as # `"America/Los_Angeles"`. This defaults to your account's timezone if not set. # This cannot be changed after customer creation. sig { returns(T.nilable(String)) } - def timezone - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def timezone=(_) - end + attr_accessor :timezone sig do params( email: String, name: String, - accounting_sync_configuration: T.nilable(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration), + accounting_sync_configuration: T.nilable(T.any(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration, Orb::Util::AnyHash)), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(Orb::Models::CustomerCreateParams::BillingAddress), + billing_address: T.nilable(T.any(Orb::Models::CustomerCreateParams::BillingAddress, Orb::Util::AnyHash)), currency: T.nilable(String), email_delivery: T.nilable(T::Boolean), external_customer_id: T.nilable(String), - hierarchy: T.nilable(Orb::Models::CustomerCreateParams::Hierarchy), + hierarchy: T.nilable(T.any(Orb::Models::CustomerCreateParams::Hierarchy, Orb::Util::AnyHash)), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - payment_provider: T.nilable(Symbol), + payment_provider: T.nilable(Orb::Models::CustomerCreateParams::PaymentProvider::OrSymbol), payment_provider_id: T.nilable(String), - reporting_configuration: T.nilable(Orb::Models::CustomerCreateParams::ReportingConfiguration), - shipping_address: T.nilable(Orb::Models::CustomerCreateParams::ShippingAddress), + reporting_configuration: T.nilable(T.any(Orb::Models::CustomerCreateParams::ReportingConfiguration, Orb::Util::AnyHash)), + shipping_address: T.nilable(T.any(Orb::Models::CustomerCreateParams::ShippingAddress, Orb::Util::AnyHash)), tax_configuration: T.nilable( T.any( Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Util::AnyHash, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration ) ), - tax_id: T.nilable(Orb::Models::CustomerCreateParams::TaxID), + tax_id: T.nilable(T.any(Orb::Models::CustomerCreateParams::TaxID, Orb::Util::AnyHash)), timezone: T.nilable(String), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -395,7 +306,7 @@ module Orb external_customer_id: T.nilable(String), hierarchy: T.nilable(Orb::Models::CustomerCreateParams::Hierarchy), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - payment_provider: T.nilable(Symbol), + payment_provider: T.nilable(Orb::Models::CustomerCreateParams::PaymentProvider::OrSymbol), payment_provider_id: T.nilable(String), reporting_configuration: T.nilable(Orb::Models::CustomerCreateParams::ReportingConfiguration), shipping_address: T.nilable(Orb::Models::CustomerCreateParams::ShippingAddress), @@ -420,31 +331,21 @@ module Orb T.nilable(T::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]) ) end - def accounting_providers - end - - sig do - params( - _: T.nilable(T::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]) - ) - .returns( - T.nilable(T::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]) - ) - end - def accounting_providers=(_) - end + attr_accessor :accounting_providers sig { returns(T.nilable(T::Boolean)) } - def excluded - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def excluded=(_) - end + attr_accessor :excluded sig do params( - accounting_providers: T.nilable(T::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]), + accounting_providers: T.nilable( + T::Array[ + T.any( + Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider, + Orb::Util::AnyHash + ) + ] + ), excluded: T.nilable(T::Boolean) ) .returns(T.attached_class) @@ -466,20 +367,10 @@ module Orb class AccountingProvider < Orb::BaseModel sig { returns(String) } - def external_provider_id - end - - sig { params(_: String).returns(String) } - def external_provider_id=(_) - end + attr_accessor :external_provider_id sig { returns(String) } - def provider_type - end - - sig { params(_: String).returns(String) } - def provider_type=(_) - end + attr_accessor :provider_type sig { params(external_provider_id: String, provider_type: String).returns(T.attached_class) } def self.new(external_provider_id:, provider_type:) @@ -493,52 +384,22 @@ module Orb class BillingAddress < Orb::BaseModel sig { returns(T.nilable(String)) } - def city - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def city=(_) - end + attr_accessor :city sig { returns(T.nilable(String)) } - def country - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def country=(_) - end + attr_accessor :country sig { returns(T.nilable(String)) } - def line1 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_) - end + attr_accessor :line1 sig { returns(T.nilable(String)) } - def line2 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_) - end + attr_accessor :line2 sig { returns(T.nilable(String)) } - def postal_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_) - end + attr_accessor :postal_code sig { returns(T.nilable(String)) } - def state - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def state=(_) - end + attr_accessor :state sig do params( @@ -575,22 +436,15 @@ module Orb # A list of child customer IDs to add to the hierarchy. The desired child # customers must not already be part of another hierarchy. sig { returns(T.nilable(T::Array[String])) } - def child_customer_ids - end + attr_reader :child_customer_ids - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def child_customer_ids=(_) - end + sig { params(child_customer_ids: T::Array[String]).void } + attr_writer :child_customer_ids # The ID of the parent customer in the hierarchy. The desired parent customer must # not be a child of another customer. sig { returns(T.nilable(String)) } - def parent_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def parent_customer_id=(_) - end + attr_accessor :parent_customer_id # The hierarchical relationships for this customer. sig do @@ -610,26 +464,29 @@ module Orb # This is used for creating charges or invoices in an external system via Orb. # When not in test mode, the connection must first be configured in the Orb # webapp. - class PaymentProvider < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - QUICKBOOKS = :quickbooks - BILL_COM = :"bill.com" - STRIPE_CHARGE = :stripe_charge - STRIPE_INVOICE = :stripe_invoice - NETSUITE = :netsuite + module PaymentProvider + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CustomerCreateParams::PaymentProvider) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::CustomerCreateParams::PaymentProvider::TaggedSymbol) } + + QUICKBOOKS = T.let(:quickbooks, Orb::Models::CustomerCreateParams::PaymentProvider::TaggedSymbol) + BILL_COM = T.let(:"bill.com", Orb::Models::CustomerCreateParams::PaymentProvider::TaggedSymbol) + STRIPE_CHARGE = T.let(:stripe_charge, Orb::Models::CustomerCreateParams::PaymentProvider::TaggedSymbol) + STRIPE_INVOICE = T.let(:stripe_invoice, Orb::Models::CustomerCreateParams::PaymentProvider::TaggedSymbol) + NETSUITE = T.let(:netsuite, Orb::Models::CustomerCreateParams::PaymentProvider::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::CustomerCreateParams::PaymentProvider::TaggedSymbol]) } + def values + end + end end class ReportingConfiguration < Orb::BaseModel sig { returns(T::Boolean) } - def exempt - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def exempt=(_) - end + attr_accessor :exempt sig { params(exempt: T::Boolean).returns(T.attached_class) } def self.new(exempt:) @@ -642,52 +499,22 @@ module Orb class ShippingAddress < Orb::BaseModel sig { returns(T.nilable(String)) } - def city - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def city=(_) - end + attr_accessor :city sig { returns(T.nilable(String)) } - def country - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def country=(_) - end + attr_accessor :country sig { returns(T.nilable(String)) } - def line1 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_) - end + attr_accessor :line1 sig { returns(T.nilable(String)) } - def line2 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_) - end + attr_accessor :line2 sig { returns(T.nilable(String)) } - def postal_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_) - end + attr_accessor :postal_code sig { returns(T.nilable(String)) } - def state - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def state=(_) - end + attr_accessor :state sig do params( @@ -720,42 +547,28 @@ module Orb end end - class TaxConfiguration < Orb::Union - abstract! + module TaxConfiguration + extend Orb::Union - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, - Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration + ) + } + end class NewAvalaraTaxConfiguration < Orb::BaseModel sig { returns(T::Boolean) } - def tax_exempt - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def tax_exempt=(_) - end + attr_accessor :tax_exempt sig { returns(Symbol) } - def tax_provider - end - - sig { params(_: Symbol).returns(Symbol) } - def tax_provider=(_) - end + attr_accessor :tax_provider sig { returns(T.nilable(String)) } - def tax_exemption_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def tax_exemption_code=(_) - end + attr_accessor :tax_exemption_code sig do params(tax_exempt: T::Boolean, tax_exemption_code: T.nilable(String), tax_provider: Symbol) @@ -779,20 +592,10 @@ module Orb class NewTaxJarConfiguration < Orb::BaseModel sig { returns(T::Boolean) } - def tax_exempt - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def tax_exempt=(_) - end + attr_accessor :tax_exempt sig { returns(Symbol) } - def tax_provider - end - - sig { params(_: Symbol).returns(Symbol) } - def tax_provider=(_) - end + attr_accessor :tax_provider sig { params(tax_exempt: T::Boolean, tax_provider: Symbol).returns(T.attached_class) } def self.new(tax_exempt:, tax_provider: :taxjar) @@ -802,32 +605,28 @@ module Orb def to_hash end end - end - - class TaxID < Orb::BaseModel - sig { returns(Symbol) } - def country - end - sig { params(_: Symbol).returns(Symbol) } - def country=(_) + class << self + sig do + override + .returns( + [Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration] + ) + end + def variants + end end + end - sig { returns(Symbol) } - def type - end + class TaxID < Orb::BaseModel + sig { returns(Orb::Models::CustomerCreateParams::TaxID::Country::OrSymbol) } + attr_accessor :country - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::CustomerCreateParams::TaxID::Type::OrSymbol) } + attr_accessor :type sig { returns(String) } - def value - end - - sig { params(_: String).returns(String) } - def value=(_) - end + attr_accessor :value # Tax IDs are commonly required to be displayed on customer invoices, which are # added to the headers of invoices. @@ -934,175 +733,206 @@ module Orb # | Uruguay | `uy_ruc` | Uruguayan RUC Number | # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | - sig { params(country: Symbol, type: Symbol, value: String).returns(T.attached_class) } + sig do + params( + country: Orb::Models::CustomerCreateParams::TaxID::Country::OrSymbol, + type: Orb::Models::CustomerCreateParams::TaxID::Type::OrSymbol, + value: String + ) + .returns(T.attached_class) + end def self.new(country:, type:, value:) end - sig { override.returns({country: Symbol, type: Symbol, value: String}) } + sig do + override + .returns( + { + country: Orb::Models::CustomerCreateParams::TaxID::Country::OrSymbol, + type: Orb::Models::CustomerCreateParams::TaxID::Type::OrSymbol, + value: String + } + ) + end def to_hash end - class Country < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - AD = :AD - AE = :AE - AR = :AR - AT = :AT - AU = :AU - BE = :BE - BG = :BG - BH = :BH - BO = :BO - BR = :BR - CA = :CA - CH = :CH - CL = :CL - CN = :CN - CO = :CO - CR = :CR - CY = :CY - CZ = :CZ - DE = :DE - DK = :DK - EE = :EE - DO = :DO - EC = :EC - EG = :EG - ES = :ES - EU = :EU - FI = :FI - FR = :FR - GB = :GB - GE = :GE - GR = :GR - HK = :HK - HR = :HR - HU = :HU - ID = :ID - IE = :IE - IL = :IL - IN = :IN - IS = :IS - IT = :IT - JP = :JP - KE = :KE - KR = :KR - KZ = :KZ - LI = :LI - LT = :LT - LU = :LU - LV = :LV - MT = :MT - MX = :MX - MY = :MY - NG = :NG - NL = :NL - NO = :NO - NZ = :NZ - OM = :OM - PE = :PE - PH = :PH - PL = :PL - PT = :PT - RO = :RO - RS = :RS - RU = :RU - SA = :SA - SE = :SE - SG = :SG - SI = :SI - SK = :SK - SV = :SV - TH = :TH - TR = :TR - TW = :TW - UA = :UA - US = :US - UY = :UY - VE = :VE - VN = :VN - ZA = :ZA + module Country + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CustomerCreateParams::TaxID::Country) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) } + + AD = T.let(:AD, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + AE = T.let(:AE, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + AR = T.let(:AR, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + AT = T.let(:AT, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + AU = T.let(:AU, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + BE = T.let(:BE, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + BG = T.let(:BG, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + BH = T.let(:BH, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + BO = T.let(:BO, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + BR = T.let(:BR, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + CA = T.let(:CA, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + CH = T.let(:CH, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + CL = T.let(:CL, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + CN = T.let(:CN, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + CO = T.let(:CO, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + CR = T.let(:CR, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + CY = T.let(:CY, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + CZ = T.let(:CZ, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + DE = T.let(:DE, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + DK = T.let(:DK, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + EE = T.let(:EE, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + DO = T.let(:DO, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + EC = T.let(:EC, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + EG = T.let(:EG, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + ES = T.let(:ES, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + EU = T.let(:EU, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + FI = T.let(:FI, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + FR = T.let(:FR, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + GB = T.let(:GB, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + GE = T.let(:GE, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + GR = T.let(:GR, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + HK = T.let(:HK, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + HR = T.let(:HR, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + HU = T.let(:HU, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + ID = T.let(:ID, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + IE = T.let(:IE, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + IL = T.let(:IL, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + IN = T.let(:IN, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + IS = T.let(:IS, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + IT = T.let(:IT, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + JP = T.let(:JP, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + KE = T.let(:KE, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + KR = T.let(:KR, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + KZ = T.let(:KZ, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + LI = T.let(:LI, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + LT = T.let(:LT, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + LU = T.let(:LU, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + LV = T.let(:LV, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + MT = T.let(:MT, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + MX = T.let(:MX, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + MY = T.let(:MY, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + NG = T.let(:NG, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + NL = T.let(:NL, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + NO = T.let(:NO, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + NZ = T.let(:NZ, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + OM = T.let(:OM, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + PE = T.let(:PE, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + PH = T.let(:PH, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + PL = T.let(:PL, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + PT = T.let(:PT, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + RO = T.let(:RO, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + RS = T.let(:RS, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + RU = T.let(:RU, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + SA = T.let(:SA, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + SE = T.let(:SE, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + SG = T.let(:SG, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + SI = T.let(:SI, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + SK = T.let(:SK, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + SV = T.let(:SV, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + TH = T.let(:TH, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + TR = T.let(:TR, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + TW = T.let(:TW, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + UA = T.let(:UA, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + US = T.let(:US, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + UY = T.let(:UY, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + VE = T.let(:VE, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + VN = T.let(:VN, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + ZA = T.let(:ZA, Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::CustomerCreateParams::TaxID::Country::TaggedSymbol]) } + def values + end + end end - class Type < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - AD_NRT = :ad_nrt - AE_TRN = :ae_trn - AR_CUIT = :ar_cuit - EU_VAT = :eu_vat - AU_ABN = :au_abn - AU_ARN = :au_arn - BG_UIC = :bg_uic - BH_VAT = :bh_vat - BO_TIN = :bo_tin - BR_CNPJ = :br_cnpj - BR_CPF = :br_cpf - CA_BN = :ca_bn - CA_GST_HST = :ca_gst_hst - CA_PST_BC = :ca_pst_bc - CA_PST_MB = :ca_pst_mb - CA_PST_SK = :ca_pst_sk - CA_QST = :ca_qst - CH_VAT = :ch_vat - CL_TIN = :cl_tin - CN_TIN = :cn_tin - CO_NIT = :co_nit - CR_TIN = :cr_tin - DO_RCN = :do_rcn - EC_RUC = :ec_ruc - EG_TIN = :eg_tin - ES_CIF = :es_cif - EU_OSS_VAT = :eu_oss_vat - GB_VAT = :gb_vat - GE_VAT = :ge_vat - HK_BR = :hk_br - HU_TIN = :hu_tin - ID_NPWP = :id_npwp - IL_VAT = :il_vat - IN_GST = :in_gst - IS_VAT = :is_vat - JP_CN = :jp_cn - JP_RN = :jp_rn - JP_TRN = :jp_trn - KE_PIN = :ke_pin - KR_BRN = :kr_brn - KZ_BIN = :kz_bin - LI_UID = :li_uid - MX_RFC = :mx_rfc - MY_FRP = :my_frp - MY_ITN = :my_itn - MY_SST = :my_sst - NG_TIN = :ng_tin - NO_VAT = :no_vat - NO_VOEC = :no_voec - NZ_GST = :nz_gst - OM_VAT = :om_vat - PE_RUC = :pe_ruc - PH_TIN = :ph_tin - RO_TIN = :ro_tin - RS_PIB = :rs_pib - RU_INN = :ru_inn - RU_KPP = :ru_kpp - SA_VAT = :sa_vat - SG_GST = :sg_gst - SG_UEN = :sg_uen - SI_TIN = :si_tin - SV_NIT = :sv_nit - TH_VAT = :th_vat - TR_TIN = :tr_tin - TW_VAT = :tw_vat - UA_VAT = :ua_vat - US_EIN = :us_ein - UY_RUC = :uy_ruc - VE_RIF = :ve_rif - VN_TIN = :vn_tin - ZA_VAT = :za_vat + module Type + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CustomerCreateParams::TaxID::Type) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) } + + AD_NRT = T.let(:ad_nrt, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + AE_TRN = T.let(:ae_trn, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + AR_CUIT = T.let(:ar_cuit, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + EU_VAT = T.let(:eu_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + AU_ABN = T.let(:au_abn, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + AU_ARN = T.let(:au_arn, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + BG_UIC = T.let(:bg_uic, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + BH_VAT = T.let(:bh_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + BO_TIN = T.let(:bo_tin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + BR_CNPJ = T.let(:br_cnpj, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + BR_CPF = T.let(:br_cpf, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + CA_BN = T.let(:ca_bn, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + CA_GST_HST = T.let(:ca_gst_hst, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + CA_PST_BC = T.let(:ca_pst_bc, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + CA_PST_MB = T.let(:ca_pst_mb, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + CA_PST_SK = T.let(:ca_pst_sk, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + CA_QST = T.let(:ca_qst, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + CH_VAT = T.let(:ch_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + CL_TIN = T.let(:cl_tin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + CN_TIN = T.let(:cn_tin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + CO_NIT = T.let(:co_nit, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + CR_TIN = T.let(:cr_tin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + DO_RCN = T.let(:do_rcn, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + EC_RUC = T.let(:ec_ruc, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + EG_TIN = T.let(:eg_tin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + ES_CIF = T.let(:es_cif, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + EU_OSS_VAT = T.let(:eu_oss_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + GB_VAT = T.let(:gb_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + GE_VAT = T.let(:ge_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + HK_BR = T.let(:hk_br, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + HU_TIN = T.let(:hu_tin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + ID_NPWP = T.let(:id_npwp, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + IL_VAT = T.let(:il_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + IN_GST = T.let(:in_gst, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + IS_VAT = T.let(:is_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + JP_CN = T.let(:jp_cn, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + JP_RN = T.let(:jp_rn, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + JP_TRN = T.let(:jp_trn, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + KE_PIN = T.let(:ke_pin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + KR_BRN = T.let(:kr_brn, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + KZ_BIN = T.let(:kz_bin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + LI_UID = T.let(:li_uid, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + MX_RFC = T.let(:mx_rfc, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + MY_FRP = T.let(:my_frp, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + MY_ITN = T.let(:my_itn, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + MY_SST = T.let(:my_sst, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + NG_TIN = T.let(:ng_tin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + NO_VAT = T.let(:no_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + NO_VOEC = T.let(:no_voec, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + NZ_GST = T.let(:nz_gst, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + OM_VAT = T.let(:om_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + PE_RUC = T.let(:pe_ruc, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + PH_TIN = T.let(:ph_tin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + RO_TIN = T.let(:ro_tin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + RS_PIB = T.let(:rs_pib, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + RU_INN = T.let(:ru_inn, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + RU_KPP = T.let(:ru_kpp, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + SA_VAT = T.let(:sa_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + SG_GST = T.let(:sg_gst, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + SG_UEN = T.let(:sg_uen, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + SI_TIN = T.let(:si_tin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + SV_NIT = T.let(:sv_nit, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + TH_VAT = T.let(:th_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + TR_TIN = T.let(:tr_tin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + TW_VAT = T.let(:tw_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + UA_VAT = T.let(:ua_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + US_EIN = T.let(:us_ein, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + UY_RUC = T.let(:uy_ruc, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + VE_RIF = T.let(:ve_rif, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + VN_TIN = T.let(:vn_tin, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + ZA_VAT = T.let(:za_vat, Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::CustomerCreateParams::TaxID::Type::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/customer_delete_params.rbi b/rbi/lib/orb/models/customer_delete_params.rbi index 5a86a705..dc83c09e 100644 --- a/rbi/lib/orb/models/customer_delete_params.rbi +++ b/rbi/lib/orb/models/customer_delete_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/customer_fetch_by_external_id_params.rbi b/rbi/lib/orb/models/customer_fetch_by_external_id_params.rbi index a59fb9fb..433ea598 100644 --- a/rbi/lib/orb/models/customer_fetch_by_external_id_params.rbi +++ b/rbi/lib/orb/models/customer_fetch_by_external_id_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/customer_fetch_params.rbi b/rbi/lib/orb/models/customer_fetch_params.rbi index 38dfc7b4..bcae34d2 100644 --- a/rbi/lib/orb/models/customer_fetch_params.rbi +++ b/rbi/lib/orb/models/customer_fetch_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/customer_list_params.rbi b/rbi/lib/orb/models/customer_list_params.rbi index 765a281d..33e88b4c 100644 --- a/rbi/lib/orb/models/customer_list_params.rbi +++ b/rbi/lib/orb/models/customer_list_params.rbi @@ -7,55 +7,28 @@ module Orb include Orb::RequestParameters sig { returns(T.nilable(Time)) } - def created_at_gt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gt=(_) - end + attr_accessor :created_at_gt sig { returns(T.nilable(Time)) } - def created_at_gte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gte=(_) - end + attr_accessor :created_at_gte sig { returns(T.nilable(Time)) } - def created_at_lt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lt=(_) - end + attr_accessor :created_at_lt sig { returns(T.nilable(Time)) } - def created_at_lte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lte=(_) - end + attr_accessor :created_at_lte # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig do params( @@ -65,7 +38,7 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi b/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi index 47183301..d385c3b5 100644 --- a/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +++ b/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rbi b/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rbi index cac2266b..f4c61f1e 100644 --- a/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rbi +++ b/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) 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 b532e2f6..4ec10923 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 @@ -7,119 +7,78 @@ module Orb include Orb::RequestParameters sig { returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration)) } - def accounting_sync_configuration - end + attr_reader :accounting_sync_configuration sig do - params(_: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration)) - .returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration)) - end - def accounting_sync_configuration=(_) + params( + accounting_sync_configuration: T.nilable( + T.any(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :accounting_sync_configuration # Additional email addresses for this customer. If populated, these email # addresses will be CC'd for customer communications. sig { returns(T.nilable(T::Array[String])) } - def additional_emails - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def additional_emails=(_) - end + attr_accessor :additional_emails # Used to determine if invoices for this customer will automatically attempt to # charge a saved payment method, if available. This parameter defaults to `True` # when a payment provider is provided on customer creation. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress)) } - def billing_address - end + attr_reader :billing_address sig do - params(_: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress)) - .returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress)) - end - def billing_address=(_) + params( + billing_address: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billing_address # An ISO 4217 currency string used for the customer's invoices and balance. If not # set at creation time, will be set at subscription creation time. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # A valid customer email, to be used for invoicing and notifications. sig { returns(T.nilable(String)) } - def email - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def email=(_) - end + attr_accessor :email sig { returns(T.nilable(T::Boolean)) } - def email_delivery - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def email_delivery=(_) - end + attr_accessor :email_delivery # The external customer ID. This can only be set if empty and the customer has no # past or current subscriptions. sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id # The hierarchical relationships for this customer. sig { returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy)) } - def hierarchy - end + attr_reader :hierarchy sig do - params(_: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy)) - .returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy)) - end - def hierarchy=(_) + params( + hierarchy: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy, Orb::Util::AnyHash)) + ) + .void end + attr_writer :hierarchy # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # The full name of the customer sig { returns(T.nilable(String)) } - def name - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def name=(_) - end + attr_accessor :name # This is used for creating charges or invoices in an external system via Orb. # When not in test mode: @@ -128,45 +87,37 @@ module Orb # - if the provider is an invoicing provider (`stripe_invoice`, `quickbooks`, # `bill.com`, `netsuite`), any product mappings must first be configured with # the Orb team. - sig { returns(T.nilable(Symbol)) } - def payment_provider - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def payment_provider=(_) - end + sig { returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::OrSymbol)) } + attr_accessor :payment_provider # The ID of this customer in an external payments solution, such as Stripe. This # is used for creating charges or invoices in the external system via Orb. sig { returns(T.nilable(String)) } - def payment_provider_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def payment_provider_id=(_) - end + attr_accessor :payment_provider_id sig { returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration)) } - def reporting_configuration - end + attr_reader :reporting_configuration sig do - params(_: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration)) - .returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration)) - end - def reporting_configuration=(_) + params( + reporting_configuration: T.nilable( + T.any(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :reporting_configuration sig { returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress)) } - def shipping_address - end + attr_reader :shipping_address sig do - params(_: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress)) - .returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress)) - end - def shipping_address=(_) + params( + shipping_address: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress, Orb::Util::AnyHash)) + ) + .void end + attr_writer :shipping_address sig do returns( @@ -178,29 +129,7 @@ module Orb ) ) end - def tax_configuration - end - - sig do - params( - _: 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 + attr_accessor :tax_configuration # Tax IDs are commonly required to be displayed on customer invoices, which are # added to the headers of invoices. @@ -308,41 +237,44 @@ module Orb # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | sig { returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxID)) } - def tax_id - end + attr_reader :tax_id sig do - params(_: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxID)) - .returns(T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxID)) - end - def tax_id=(_) + params(tax_id: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::TaxID, Orb::Util::AnyHash))) + .void end + attr_writer :tax_id sig do params( - accounting_sync_configuration: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration), + accounting_sync_configuration: T.nilable( + T.any(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration, Orb::Util::AnyHash) + ), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress), + billing_address: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress, Orb::Util::AnyHash)), currency: T.nilable(String), email: T.nilable(String), email_delivery: T.nilable(T::Boolean), external_customer_id: T.nilable(String), - hierarchy: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy), + hierarchy: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy, Orb::Util::AnyHash)), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), name: T.nilable(String), - payment_provider: T.nilable(Symbol), + payment_provider: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::OrSymbol), payment_provider_id: T.nilable(String), - reporting_configuration: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration), - shipping_address: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress), + reporting_configuration: T.nilable( + T.any(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration, Orb::Util::AnyHash) + ), + shipping_address: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress, Orb::Util::AnyHash)), tax_configuration: T.nilable( T.any( Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Util::AnyHash, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration ) ), - tax_id: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::TaxID), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + tax_id: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::TaxID, Orb::Util::AnyHash)), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -383,7 +315,7 @@ module Orb hierarchy: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), name: T.nilable(String), - payment_provider: T.nilable(Symbol), + payment_provider: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::OrSymbol), payment_provider_id: T.nilable(String), reporting_configuration: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration), shipping_address: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress), @@ -409,36 +341,20 @@ module Orb ) ) 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] - ) - ) - end - def accounting_providers=(_) - end + attr_accessor :accounting_providers sig { returns(T.nilable(T::Boolean)) } - def excluded - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def excluded=(_) - end + attr_accessor :excluded sig do params( accounting_providers: T.nilable( - T::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider] + T::Array[ + T.any( + Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider, + Orb::Util::AnyHash + ) + ] ), excluded: T.nilable(T::Boolean) ) @@ -463,20 +379,10 @@ module Orb class AccountingProvider < Orb::BaseModel sig { returns(String) } - def external_provider_id - end - - sig { params(_: String).returns(String) } - def external_provider_id=(_) - end + attr_accessor :external_provider_id sig { returns(String) } - def provider_type - end - - sig { params(_: String).returns(String) } - def provider_type=(_) - end + attr_accessor :provider_type sig { params(external_provider_id: String, provider_type: String).returns(T.attached_class) } def self.new(external_provider_id:, provider_type:) @@ -490,52 +396,22 @@ module Orb class BillingAddress < Orb::BaseModel sig { returns(T.nilable(String)) } - def city - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def city=(_) - end + attr_accessor :city sig { returns(T.nilable(String)) } - def country - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def country=(_) - end + attr_accessor :country sig { returns(T.nilable(String)) } - def line1 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_) - end + attr_accessor :line1 sig { returns(T.nilable(String)) } - def line2 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_) - end + attr_accessor :line2 sig { returns(T.nilable(String)) } - def postal_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_) - end + attr_accessor :postal_code sig { returns(T.nilable(String)) } - def state - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def state=(_) - end + attr_accessor :state sig do params( @@ -572,22 +448,15 @@ module Orb # A list of child customer IDs to add to the hierarchy. The desired child # customers must not already be part of another hierarchy. sig { returns(T.nilable(T::Array[String])) } - def child_customer_ids - end + attr_reader :child_customer_ids - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def child_customer_ids=(_) - end + sig { params(child_customer_ids: T::Array[String]).void } + attr_writer :child_customer_ids # The ID of the parent customer in the hierarchy. The desired parent customer must # not be a child of another customer. sig { returns(T.nilable(String)) } - def parent_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def parent_customer_id=(_) - end + attr_accessor :parent_customer_id # The hierarchical relationships for this customer. sig do @@ -611,26 +480,34 @@ module Orb # - if the provider is an invoicing provider (`stripe_invoice`, `quickbooks`, # `bill.com`, `netsuite`), any product mappings must first be configured with # the Orb team. - class PaymentProvider < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - QUICKBOOKS = :quickbooks - BILL_COM = :"bill.com" - STRIPE_CHARGE = :stripe_charge - STRIPE_INVOICE = :stripe_invoice - NETSUITE = :netsuite + module PaymentProvider + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol) } + + QUICKBOOKS = + T.let(:quickbooks, Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol) + BILL_COM = + T.let(:"bill.com", Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol) + STRIPE_CHARGE = + T.let(:stripe_charge, Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol) + STRIPE_INVOICE = + T.let(:stripe_invoice, Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol) + NETSUITE = T.let(:netsuite, Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::TaggedSymbol]) } + def values + end + end end class ReportingConfiguration < Orb::BaseModel sig { returns(T::Boolean) } - def exempt - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def exempt=(_) - end + attr_accessor :exempt sig { params(exempt: T::Boolean).returns(T.attached_class) } def self.new(exempt:) @@ -643,52 +520,22 @@ module Orb class ShippingAddress < Orb::BaseModel sig { returns(T.nilable(String)) } - def city - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def city=(_) - end + attr_accessor :city sig { returns(T.nilable(String)) } - def country - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def country=(_) - end + attr_accessor :country sig { returns(T.nilable(String)) } - def line1 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_) - end + attr_accessor :line1 sig { returns(T.nilable(String)) } - def line2 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_) - end + attr_accessor :line2 sig { returns(T.nilable(String)) } - def postal_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_) - end + attr_accessor :postal_code sig { returns(T.nilable(String)) } - def state - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def state=(_) - end + attr_accessor :state sig do params( @@ -721,42 +568,28 @@ module Orb end end - class TaxConfiguration < Orb::Union - abstract! + module TaxConfiguration + extend Orb::Union - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, - Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration + ) + } + end class NewAvalaraTaxConfiguration < Orb::BaseModel sig { returns(T::Boolean) } - def tax_exempt - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def tax_exempt=(_) - end + attr_accessor :tax_exempt sig { returns(Symbol) } - def tax_provider - end - - sig { params(_: Symbol).returns(Symbol) } - def tax_provider=(_) - end + attr_accessor :tax_provider sig { returns(T.nilable(String)) } - def tax_exemption_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def tax_exemption_code=(_) - end + attr_accessor :tax_exemption_code sig do params(tax_exempt: T::Boolean, tax_exemption_code: T.nilable(String), tax_provider: Symbol) @@ -780,20 +613,10 @@ module Orb class NewTaxJarConfiguration < Orb::BaseModel sig { returns(T::Boolean) } - def tax_exempt - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def tax_exempt=(_) - end + attr_accessor :tax_exempt sig { returns(Symbol) } - def tax_provider - end - - sig { params(_: Symbol).returns(Symbol) } - def tax_provider=(_) - end + attr_accessor :tax_provider sig { params(tax_exempt: T::Boolean, tax_provider: Symbol).returns(T.attached_class) } def self.new(tax_exempt:, tax_provider: :taxjar) @@ -803,32 +626,28 @@ module Orb def to_hash end end - end - - class TaxID < Orb::BaseModel - sig { returns(Symbol) } - def country - end - sig { params(_: Symbol).returns(Symbol) } - def country=(_) + class << self + sig do + override + .returns( + [Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration] + ) + end + def variants + end end + end - sig { returns(Symbol) } - def type - end + class TaxID < Orb::BaseModel + sig { returns(Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::OrSymbol) } + attr_accessor :country - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::OrSymbol) } + attr_accessor :type sig { returns(String) } - def value - end - - sig { params(_: String).returns(String) } - def value=(_) - end + attr_accessor :value # Tax IDs are commonly required to be displayed on customer invoices, which are # added to the headers of invoices. @@ -935,175 +754,208 @@ module Orb # | Uruguay | `uy_ruc` | Uruguayan RUC Number | # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | - sig { params(country: Symbol, type: Symbol, value: String).returns(T.attached_class) } + sig do + params( + country: Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::OrSymbol, + type: Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::OrSymbol, + value: String + ) + .returns(T.attached_class) + end def self.new(country:, type:, value:) end - sig { override.returns({country: Symbol, type: Symbol, value: String}) } + sig do + override + .returns( + { + country: Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::OrSymbol, + type: Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::OrSymbol, + value: String + } + ) + end def to_hash end - class Country < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - AD = :AD - AE = :AE - AR = :AR - AT = :AT - AU = :AU - BE = :BE - BG = :BG - BH = :BH - BO = :BO - BR = :BR - CA = :CA - CH = :CH - CL = :CL - CN = :CN - CO = :CO - CR = :CR - CY = :CY - CZ = :CZ - DE = :DE - DK = :DK - EE = :EE - DO = :DO - EC = :EC - EG = :EG - ES = :ES - EU = :EU - FI = :FI - FR = :FR - GB = :GB - GE = :GE - GR = :GR - HK = :HK - HR = :HR - HU = :HU - ID = :ID - IE = :IE - IL = :IL - IN = :IN - IS = :IS - IT = :IT - JP = :JP - KE = :KE - KR = :KR - KZ = :KZ - LI = :LI - LT = :LT - LU = :LU - LV = :LV - MT = :MT - MX = :MX - MY = :MY - NG = :NG - NL = :NL - NO = :NO - NZ = :NZ - OM = :OM - PE = :PE - PH = :PH - PL = :PL - PT = :PT - RO = :RO - RS = :RS - RU = :RU - SA = :SA - SE = :SE - SG = :SG - SI = :SI - SK = :SK - SV = :SV - TH = :TH - TR = :TR - TW = :TW - UA = :UA - US = :US - UY = :UY - VE = :VE - VN = :VN - ZA = :ZA + module Country + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) } + + AD = T.let(:AD, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + AE = T.let(:AE, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + AR = T.let(:AR, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + AT = T.let(:AT, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + AU = T.let(:AU, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + BE = T.let(:BE, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + BG = T.let(:BG, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + BH = T.let(:BH, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + BO = T.let(:BO, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + BR = T.let(:BR, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + CA = T.let(:CA, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + CH = T.let(:CH, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + CL = T.let(:CL, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + CN = T.let(:CN, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + CO = T.let(:CO, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + CR = T.let(:CR, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + CY = T.let(:CY, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + CZ = T.let(:CZ, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + DE = T.let(:DE, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + DK = T.let(:DK, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + EE = T.let(:EE, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + DO = T.let(:DO, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + EC = T.let(:EC, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + EG = T.let(:EG, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + ES = T.let(:ES, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + EU = T.let(:EU, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + FI = T.let(:FI, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + FR = T.let(:FR, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + GB = T.let(:GB, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + GE = T.let(:GE, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + GR = T.let(:GR, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + HK = T.let(:HK, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + HR = T.let(:HR, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + HU = T.let(:HU, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + ID = T.let(:ID, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + IE = T.let(:IE, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + IL = T.let(:IL, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + IN = T.let(:IN, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + IS = T.let(:IS, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + IT = T.let(:IT, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + JP = T.let(:JP, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + KE = T.let(:KE, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + KR = T.let(:KR, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + KZ = T.let(:KZ, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + LI = T.let(:LI, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + LT = T.let(:LT, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + LU = T.let(:LU, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + LV = T.let(:LV, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + MT = T.let(:MT, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + MX = T.let(:MX, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + MY = T.let(:MY, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + NG = T.let(:NG, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + NL = T.let(:NL, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + NO = T.let(:NO, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + NZ = T.let(:NZ, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + OM = T.let(:OM, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + PE = T.let(:PE, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + PH = T.let(:PH, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + PL = T.let(:PL, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + PT = T.let(:PT, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + RO = T.let(:RO, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + RS = T.let(:RS, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + RU = T.let(:RU, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + SA = T.let(:SA, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + SE = T.let(:SE, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + SG = T.let(:SG, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + SI = T.let(:SI, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + SK = T.let(:SK, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + SV = T.let(:SV, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + TH = T.let(:TH, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + TR = T.let(:TR, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + TW = T.let(:TW, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + UA = T.let(:UA, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + US = T.let(:US, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + UY = T.let(:UY, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + VE = T.let(:VE, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + VN = T.let(:VN, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + ZA = T.let(:ZA, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Country::TaggedSymbol]) } + def values + end + end end - class Type < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - AD_NRT = :ad_nrt - AE_TRN = :ae_trn - AR_CUIT = :ar_cuit - EU_VAT = :eu_vat - AU_ABN = :au_abn - AU_ARN = :au_arn - BG_UIC = :bg_uic - BH_VAT = :bh_vat - BO_TIN = :bo_tin - BR_CNPJ = :br_cnpj - BR_CPF = :br_cpf - CA_BN = :ca_bn - CA_GST_HST = :ca_gst_hst - CA_PST_BC = :ca_pst_bc - CA_PST_MB = :ca_pst_mb - CA_PST_SK = :ca_pst_sk - CA_QST = :ca_qst - CH_VAT = :ch_vat - CL_TIN = :cl_tin - CN_TIN = :cn_tin - CO_NIT = :co_nit - CR_TIN = :cr_tin - DO_RCN = :do_rcn - EC_RUC = :ec_ruc - EG_TIN = :eg_tin - ES_CIF = :es_cif - EU_OSS_VAT = :eu_oss_vat - GB_VAT = :gb_vat - GE_VAT = :ge_vat - HK_BR = :hk_br - HU_TIN = :hu_tin - ID_NPWP = :id_npwp - IL_VAT = :il_vat - IN_GST = :in_gst - IS_VAT = :is_vat - JP_CN = :jp_cn - JP_RN = :jp_rn - JP_TRN = :jp_trn - KE_PIN = :ke_pin - KR_BRN = :kr_brn - KZ_BIN = :kz_bin - LI_UID = :li_uid - MX_RFC = :mx_rfc - MY_FRP = :my_frp - MY_ITN = :my_itn - MY_SST = :my_sst - NG_TIN = :ng_tin - NO_VAT = :no_vat - NO_VOEC = :no_voec - NZ_GST = :nz_gst - OM_VAT = :om_vat - PE_RUC = :pe_ruc - PH_TIN = :ph_tin - RO_TIN = :ro_tin - RS_PIB = :rs_pib - RU_INN = :ru_inn - RU_KPP = :ru_kpp - SA_VAT = :sa_vat - SG_GST = :sg_gst - SG_UEN = :sg_uen - SI_TIN = :si_tin - SV_NIT = :sv_nit - TH_VAT = :th_vat - TR_TIN = :tr_tin - TW_VAT = :tw_vat - UA_VAT = :ua_vat - US_EIN = :us_ein - UY_RUC = :uy_ruc - VE_RIF = :ve_rif - VN_TIN = :vn_tin - ZA_VAT = :za_vat + module Type + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) } + + AD_NRT = T.let(:ad_nrt, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + AE_TRN = T.let(:ae_trn, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + AR_CUIT = T.let(:ar_cuit, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + EU_VAT = T.let(:eu_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + AU_ABN = T.let(:au_abn, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + AU_ARN = T.let(:au_arn, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + BG_UIC = T.let(:bg_uic, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + BH_VAT = T.let(:bh_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + BO_TIN = T.let(:bo_tin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + BR_CNPJ = T.let(:br_cnpj, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + BR_CPF = T.let(:br_cpf, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + CA_BN = T.let(:ca_bn, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + CA_GST_HST = T.let(:ca_gst_hst, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + CA_PST_BC = T.let(:ca_pst_bc, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + CA_PST_MB = T.let(:ca_pst_mb, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + CA_PST_SK = T.let(:ca_pst_sk, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + CA_QST = T.let(:ca_qst, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + CH_VAT = T.let(:ch_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + CL_TIN = T.let(:cl_tin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + CN_TIN = T.let(:cn_tin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + CO_NIT = T.let(:co_nit, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + CR_TIN = T.let(:cr_tin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + DO_RCN = T.let(:do_rcn, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + EC_RUC = T.let(:ec_ruc, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + EG_TIN = T.let(:eg_tin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + ES_CIF = T.let(:es_cif, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + EU_OSS_VAT = T.let(:eu_oss_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + GB_VAT = T.let(:gb_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + GE_VAT = T.let(:ge_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + HK_BR = T.let(:hk_br, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + HU_TIN = T.let(:hu_tin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + ID_NPWP = T.let(:id_npwp, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + IL_VAT = T.let(:il_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + IN_GST = T.let(:in_gst, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + IS_VAT = T.let(:is_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + JP_CN = T.let(:jp_cn, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + JP_RN = T.let(:jp_rn, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + JP_TRN = T.let(:jp_trn, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + KE_PIN = T.let(:ke_pin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + KR_BRN = T.let(:kr_brn, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + KZ_BIN = T.let(:kz_bin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + LI_UID = T.let(:li_uid, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + MX_RFC = T.let(:mx_rfc, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + MY_FRP = T.let(:my_frp, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + MY_ITN = T.let(:my_itn, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + MY_SST = T.let(:my_sst, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + NG_TIN = T.let(:ng_tin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + NO_VAT = T.let(:no_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + NO_VOEC = T.let(:no_voec, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + NZ_GST = T.let(:nz_gst, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + OM_VAT = T.let(:om_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + PE_RUC = T.let(:pe_ruc, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + PH_TIN = T.let(:ph_tin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + RO_TIN = T.let(:ro_tin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + RS_PIB = T.let(:rs_pib, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + RU_INN = T.let(:ru_inn, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + RU_KPP = T.let(:ru_kpp, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + SA_VAT = T.let(:sa_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + SG_GST = T.let(:sg_gst, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + SG_UEN = T.let(:sg_uen, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + SI_TIN = T.let(:si_tin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + SV_NIT = T.let(:sv_nit, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + TH_VAT = T.let(:th_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + TR_TIN = T.let(:tr_tin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + TW_VAT = T.let(:tw_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + UA_VAT = T.let(:ua_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + US_EIN = T.let(:us_ein, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + UY_RUC = T.let(:uy_ruc, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + VE_RIF = T.let(:ve_rif, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + VN_TIN = T.let(:vn_tin, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + ZA_VAT = T.let(:za_vat, Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::CustomerUpdateByExternalIDParams::TaxID::Type::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/customer_update_params.rbi b/rbi/lib/orb/models/customer_update_params.rbi index 02be30cf..9ae32caa 100644 --- a/rbi/lib/orb/models/customer_update_params.rbi +++ b/rbi/lib/orb/models/customer_update_params.rbi @@ -7,119 +7,71 @@ module Orb include Orb::RequestParameters sig { returns(T.nilable(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration)) } - def accounting_sync_configuration - end + attr_reader :accounting_sync_configuration sig do - params(_: T.nilable(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration)) - .returns(T.nilable(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration)) - end - def accounting_sync_configuration=(_) + params( + accounting_sync_configuration: T.nilable(T.any(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :accounting_sync_configuration # Additional email addresses for this customer. If populated, these email # addresses will be CC'd for customer communications. sig { returns(T.nilable(T::Array[String])) } - def additional_emails - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def additional_emails=(_) - end + attr_accessor :additional_emails # Used to determine if invoices for this customer will automatically attempt to # charge a saved payment method, if available. This parameter defaults to `True` # when a payment provider is provided on customer creation. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(T.nilable(Orb::Models::CustomerUpdateParams::BillingAddress)) } - def billing_address - end + attr_reader :billing_address sig do - params(_: T.nilable(Orb::Models::CustomerUpdateParams::BillingAddress)) - .returns(T.nilable(Orb::Models::CustomerUpdateParams::BillingAddress)) - end - def billing_address=(_) + params( + billing_address: T.nilable(T.any(Orb::Models::CustomerUpdateParams::BillingAddress, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billing_address # An ISO 4217 currency string used for the customer's invoices and balance. If not # set at creation time, will be set at subscription creation time. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # A valid customer email, to be used for invoicing and notifications. sig { returns(T.nilable(String)) } - def email - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def email=(_) - end + attr_accessor :email sig { returns(T.nilable(T::Boolean)) } - def email_delivery - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def email_delivery=(_) - end + attr_accessor :email_delivery # The external customer ID. This can only be set if empty and the customer has no # past or current subscriptions. sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id # The hierarchical relationships for this customer. sig { returns(T.nilable(Orb::Models::CustomerUpdateParams::Hierarchy)) } - def hierarchy - end + attr_reader :hierarchy - sig do - params(_: T.nilable(Orb::Models::CustomerUpdateParams::Hierarchy)) - .returns(T.nilable(Orb::Models::CustomerUpdateParams::Hierarchy)) - end - def hierarchy=(_) - end + sig { params(hierarchy: T.nilable(T.any(Orb::Models::CustomerUpdateParams::Hierarchy, Orb::Util::AnyHash))).void } + attr_writer :hierarchy # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # The full name of the customer sig { returns(T.nilable(String)) } - def name - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def name=(_) - end + attr_accessor :name # This is used for creating charges or invoices in an external system via Orb. # When not in test mode: @@ -128,45 +80,35 @@ module Orb # - if the provider is an invoicing provider (`stripe_invoice`, `quickbooks`, # `bill.com`, `netsuite`), any product mappings must first be configured with # the Orb team. - sig { returns(T.nilable(Symbol)) } - def payment_provider - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def payment_provider=(_) - end + sig { returns(T.nilable(Orb::Models::CustomerUpdateParams::PaymentProvider::OrSymbol)) } + attr_accessor :payment_provider # The ID of this customer in an external payments solution, such as Stripe. This # is used for creating charges or invoices in the external system via Orb. sig { returns(T.nilable(String)) } - def payment_provider_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def payment_provider_id=(_) - end + attr_accessor :payment_provider_id sig { returns(T.nilable(Orb::Models::CustomerUpdateParams::ReportingConfiguration)) } - def reporting_configuration - end + attr_reader :reporting_configuration sig do - params(_: T.nilable(Orb::Models::CustomerUpdateParams::ReportingConfiguration)) - .returns(T.nilable(Orb::Models::CustomerUpdateParams::ReportingConfiguration)) - end - def reporting_configuration=(_) + params( + reporting_configuration: T.nilable(T.any(Orb::Models::CustomerUpdateParams::ReportingConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :reporting_configuration sig { returns(T.nilable(Orb::Models::CustomerUpdateParams::ShippingAddress)) } - def shipping_address - end + attr_reader :shipping_address sig do - params(_: T.nilable(Orb::Models::CustomerUpdateParams::ShippingAddress)) - .returns(T.nilable(Orb::Models::CustomerUpdateParams::ShippingAddress)) - end - def shipping_address=(_) + params( + shipping_address: T.nilable(T.any(Orb::Models::CustomerUpdateParams::ShippingAddress, Orb::Util::AnyHash)) + ) + .void end + attr_writer :shipping_address sig do returns( @@ -178,29 +120,7 @@ module Orb ) ) end - def tax_configuration - end - - sig do - params( - _: 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 + attr_accessor :tax_configuration # Tax IDs are commonly required to be displayed on customer invoices, which are # added to the headers of invoices. @@ -308,41 +228,37 @@ module Orb # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | sig { returns(T.nilable(Orb::Models::CustomerUpdateParams::TaxID)) } - def tax_id - end + attr_reader :tax_id - sig do - params(_: T.nilable(Orb::Models::CustomerUpdateParams::TaxID)) - .returns(T.nilable(Orb::Models::CustomerUpdateParams::TaxID)) - end - def tax_id=(_) - end + sig { params(tax_id: T.nilable(T.any(Orb::Models::CustomerUpdateParams::TaxID, Orb::Util::AnyHash))).void } + attr_writer :tax_id sig do params( - accounting_sync_configuration: T.nilable(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration), + accounting_sync_configuration: T.nilable(T.any(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration, Orb::Util::AnyHash)), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(Orb::Models::CustomerUpdateParams::BillingAddress), + billing_address: T.nilable(T.any(Orb::Models::CustomerUpdateParams::BillingAddress, Orb::Util::AnyHash)), currency: T.nilable(String), email: T.nilable(String), email_delivery: T.nilable(T::Boolean), external_customer_id: T.nilable(String), - hierarchy: T.nilable(Orb::Models::CustomerUpdateParams::Hierarchy), + hierarchy: T.nilable(T.any(Orb::Models::CustomerUpdateParams::Hierarchy, Orb::Util::AnyHash)), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), name: T.nilable(String), - payment_provider: T.nilable(Symbol), + payment_provider: T.nilable(Orb::Models::CustomerUpdateParams::PaymentProvider::OrSymbol), payment_provider_id: T.nilable(String), - reporting_configuration: T.nilable(Orb::Models::CustomerUpdateParams::ReportingConfiguration), - shipping_address: T.nilable(Orb::Models::CustomerUpdateParams::ShippingAddress), + reporting_configuration: T.nilable(T.any(Orb::Models::CustomerUpdateParams::ReportingConfiguration, Orb::Util::AnyHash)), + shipping_address: T.nilable(T.any(Orb::Models::CustomerUpdateParams::ShippingAddress, Orb::Util::AnyHash)), tax_configuration: T.nilable( T.any( Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Util::AnyHash, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration ) ), - tax_id: T.nilable(Orb::Models::CustomerUpdateParams::TaxID), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + tax_id: T.nilable(T.any(Orb::Models::CustomerUpdateParams::TaxID, Orb::Util::AnyHash)), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -383,7 +299,7 @@ module Orb hierarchy: T.nilable(Orb::Models::CustomerUpdateParams::Hierarchy), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), name: T.nilable(String), - payment_provider: T.nilable(Symbol), + payment_provider: T.nilable(Orb::Models::CustomerUpdateParams::PaymentProvider::OrSymbol), payment_provider_id: T.nilable(String), reporting_configuration: T.nilable(Orb::Models::CustomerUpdateParams::ReportingConfiguration), shipping_address: T.nilable(Orb::Models::CustomerUpdateParams::ShippingAddress), @@ -407,31 +323,21 @@ module Orb T.nilable(T::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]) ) end - def accounting_providers - end - - sig do - params( - _: T.nilable(T::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]) - ) - .returns( - T.nilable(T::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]) - ) - end - def accounting_providers=(_) - end + attr_accessor :accounting_providers sig { returns(T.nilable(T::Boolean)) } - def excluded - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def excluded=(_) - end + attr_accessor :excluded sig do params( - accounting_providers: T.nilable(T::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]), + accounting_providers: T.nilable( + T::Array[ + T.any( + Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider, + Orb::Util::AnyHash + ) + ] + ), excluded: T.nilable(T::Boolean) ) .returns(T.attached_class) @@ -453,20 +359,10 @@ module Orb class AccountingProvider < Orb::BaseModel sig { returns(String) } - def external_provider_id - end - - sig { params(_: String).returns(String) } - def external_provider_id=(_) - end + attr_accessor :external_provider_id sig { returns(String) } - def provider_type - end - - sig { params(_: String).returns(String) } - def provider_type=(_) - end + attr_accessor :provider_type sig { params(external_provider_id: String, provider_type: String).returns(T.attached_class) } def self.new(external_provider_id:, provider_type:) @@ -480,52 +376,22 @@ module Orb class BillingAddress < Orb::BaseModel sig { returns(T.nilable(String)) } - def city - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def city=(_) - end + attr_accessor :city sig { returns(T.nilable(String)) } - def country - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def country=(_) - end + attr_accessor :country sig { returns(T.nilable(String)) } - def line1 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_) - end + attr_accessor :line1 sig { returns(T.nilable(String)) } - def line2 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_) - end + attr_accessor :line2 sig { returns(T.nilable(String)) } - def postal_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_) - end + attr_accessor :postal_code sig { returns(T.nilable(String)) } - def state - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def state=(_) - end + attr_accessor :state sig do params( @@ -562,22 +428,15 @@ module Orb # A list of child customer IDs to add to the hierarchy. The desired child # customers must not already be part of another hierarchy. sig { returns(T.nilable(T::Array[String])) } - def child_customer_ids - end + attr_reader :child_customer_ids - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def child_customer_ids=(_) - end + sig { params(child_customer_ids: T::Array[String]).void } + attr_writer :child_customer_ids # The ID of the parent customer in the hierarchy. The desired parent customer must # not be a child of another customer. sig { returns(T.nilable(String)) } - def parent_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def parent_customer_id=(_) - end + attr_accessor :parent_customer_id # The hierarchical relationships for this customer. sig do @@ -601,26 +460,29 @@ module Orb # - if the provider is an invoicing provider (`stripe_invoice`, `quickbooks`, # `bill.com`, `netsuite`), any product mappings must first be configured with # the Orb team. - class PaymentProvider < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - QUICKBOOKS = :quickbooks - BILL_COM = :"bill.com" - STRIPE_CHARGE = :stripe_charge - STRIPE_INVOICE = :stripe_invoice - NETSUITE = :netsuite + module PaymentProvider + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CustomerUpdateParams::PaymentProvider) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::CustomerUpdateParams::PaymentProvider::TaggedSymbol) } + + QUICKBOOKS = T.let(:quickbooks, Orb::Models::CustomerUpdateParams::PaymentProvider::TaggedSymbol) + BILL_COM = T.let(:"bill.com", Orb::Models::CustomerUpdateParams::PaymentProvider::TaggedSymbol) + STRIPE_CHARGE = T.let(:stripe_charge, Orb::Models::CustomerUpdateParams::PaymentProvider::TaggedSymbol) + STRIPE_INVOICE = T.let(:stripe_invoice, Orb::Models::CustomerUpdateParams::PaymentProvider::TaggedSymbol) + NETSUITE = T.let(:netsuite, Orb::Models::CustomerUpdateParams::PaymentProvider::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::CustomerUpdateParams::PaymentProvider::TaggedSymbol]) } + def values + end + end end class ReportingConfiguration < Orb::BaseModel sig { returns(T::Boolean) } - def exempt - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def exempt=(_) - end + attr_accessor :exempt sig { params(exempt: T::Boolean).returns(T.attached_class) } def self.new(exempt:) @@ -633,52 +495,22 @@ module Orb class ShippingAddress < Orb::BaseModel sig { returns(T.nilable(String)) } - def city - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def city=(_) - end + attr_accessor :city sig { returns(T.nilable(String)) } - def country - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def country=(_) - end + attr_accessor :country sig { returns(T.nilable(String)) } - def line1 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_) - end + attr_accessor :line1 sig { returns(T.nilable(String)) } - def line2 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_) - end + attr_accessor :line2 sig { returns(T.nilable(String)) } - def postal_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_) - end + attr_accessor :postal_code sig { returns(T.nilable(String)) } - def state - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def state=(_) - end + attr_accessor :state sig do params( @@ -711,42 +543,28 @@ module Orb end end - class TaxConfiguration < Orb::Union - abstract! + module TaxConfiguration + extend Orb::Union - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, - Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration + ) + } + end class NewAvalaraTaxConfiguration < Orb::BaseModel sig { returns(T::Boolean) } - def tax_exempt - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def tax_exempt=(_) - end + attr_accessor :tax_exempt sig { returns(Symbol) } - def tax_provider - end - - sig { params(_: Symbol).returns(Symbol) } - def tax_provider=(_) - end + attr_accessor :tax_provider sig { returns(T.nilable(String)) } - def tax_exemption_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def tax_exemption_code=(_) - end + attr_accessor :tax_exemption_code sig do params(tax_exempt: T::Boolean, tax_exemption_code: T.nilable(String), tax_provider: Symbol) @@ -770,20 +588,10 @@ module Orb class NewTaxJarConfiguration < Orb::BaseModel sig { returns(T::Boolean) } - def tax_exempt - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def tax_exempt=(_) - end + attr_accessor :tax_exempt sig { returns(Symbol) } - def tax_provider - end - - sig { params(_: Symbol).returns(Symbol) } - def tax_provider=(_) - end + attr_accessor :tax_provider sig { params(tax_exempt: T::Boolean, tax_provider: Symbol).returns(T.attached_class) } def self.new(tax_exempt:, tax_provider: :taxjar) @@ -793,32 +601,28 @@ module Orb def to_hash end end - end - - class TaxID < Orb::BaseModel - sig { returns(Symbol) } - def country - end - sig { params(_: Symbol).returns(Symbol) } - def country=(_) + class << self + sig do + override + .returns( + [Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration] + ) + end + def variants + end end + end - sig { returns(Symbol) } - def type - end + class TaxID < Orb::BaseModel + sig { returns(Orb::Models::CustomerUpdateParams::TaxID::Country::OrSymbol) } + attr_accessor :country - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::CustomerUpdateParams::TaxID::Type::OrSymbol) } + attr_accessor :type sig { returns(String) } - def value - end - - sig { params(_: String).returns(String) } - def value=(_) - end + attr_accessor :value # Tax IDs are commonly required to be displayed on customer invoices, which are # added to the headers of invoices. @@ -925,175 +729,206 @@ module Orb # | Uruguay | `uy_ruc` | Uruguayan RUC Number | # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | - sig { params(country: Symbol, type: Symbol, value: String).returns(T.attached_class) } + sig do + params( + country: Orb::Models::CustomerUpdateParams::TaxID::Country::OrSymbol, + type: Orb::Models::CustomerUpdateParams::TaxID::Type::OrSymbol, + value: String + ) + .returns(T.attached_class) + end def self.new(country:, type:, value:) end - sig { override.returns({country: Symbol, type: Symbol, value: String}) } + sig do + override + .returns( + { + country: Orb::Models::CustomerUpdateParams::TaxID::Country::OrSymbol, + type: Orb::Models::CustomerUpdateParams::TaxID::Type::OrSymbol, + value: String + } + ) + end def to_hash end - class Country < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - AD = :AD - AE = :AE - AR = :AR - AT = :AT - AU = :AU - BE = :BE - BG = :BG - BH = :BH - BO = :BO - BR = :BR - CA = :CA - CH = :CH - CL = :CL - CN = :CN - CO = :CO - CR = :CR - CY = :CY - CZ = :CZ - DE = :DE - DK = :DK - EE = :EE - DO = :DO - EC = :EC - EG = :EG - ES = :ES - EU = :EU - FI = :FI - FR = :FR - GB = :GB - GE = :GE - GR = :GR - HK = :HK - HR = :HR - HU = :HU - ID = :ID - IE = :IE - IL = :IL - IN = :IN - IS = :IS - IT = :IT - JP = :JP - KE = :KE - KR = :KR - KZ = :KZ - LI = :LI - LT = :LT - LU = :LU - LV = :LV - MT = :MT - MX = :MX - MY = :MY - NG = :NG - NL = :NL - NO = :NO - NZ = :NZ - OM = :OM - PE = :PE - PH = :PH - PL = :PL - PT = :PT - RO = :RO - RS = :RS - RU = :RU - SA = :SA - SE = :SE - SG = :SG - SI = :SI - SK = :SK - SV = :SV - TH = :TH - TR = :TR - TW = :TW - UA = :UA - US = :US - UY = :UY - VE = :VE - VN = :VN - ZA = :ZA + module Country + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CustomerUpdateParams::TaxID::Country) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) } + + AD = T.let(:AD, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + AE = T.let(:AE, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + AR = T.let(:AR, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + AT = T.let(:AT, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + AU = T.let(:AU, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + BE = T.let(:BE, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + BG = T.let(:BG, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + BH = T.let(:BH, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + BO = T.let(:BO, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + BR = T.let(:BR, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + CA = T.let(:CA, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + CH = T.let(:CH, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + CL = T.let(:CL, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + CN = T.let(:CN, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + CO = T.let(:CO, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + CR = T.let(:CR, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + CY = T.let(:CY, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + CZ = T.let(:CZ, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + DE = T.let(:DE, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + DK = T.let(:DK, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + EE = T.let(:EE, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + DO = T.let(:DO, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + EC = T.let(:EC, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + EG = T.let(:EG, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + ES = T.let(:ES, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + EU = T.let(:EU, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + FI = T.let(:FI, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + FR = T.let(:FR, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + GB = T.let(:GB, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + GE = T.let(:GE, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + GR = T.let(:GR, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + HK = T.let(:HK, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + HR = T.let(:HR, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + HU = T.let(:HU, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + ID = T.let(:ID, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + IE = T.let(:IE, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + IL = T.let(:IL, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + IN = T.let(:IN, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + IS = T.let(:IS, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + IT = T.let(:IT, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + JP = T.let(:JP, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + KE = T.let(:KE, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + KR = T.let(:KR, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + KZ = T.let(:KZ, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + LI = T.let(:LI, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + LT = T.let(:LT, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + LU = T.let(:LU, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + LV = T.let(:LV, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + MT = T.let(:MT, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + MX = T.let(:MX, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + MY = T.let(:MY, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + NG = T.let(:NG, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + NL = T.let(:NL, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + NO = T.let(:NO, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + NZ = T.let(:NZ, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + OM = T.let(:OM, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + PE = T.let(:PE, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + PH = T.let(:PH, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + PL = T.let(:PL, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + PT = T.let(:PT, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + RO = T.let(:RO, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + RS = T.let(:RS, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + RU = T.let(:RU, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + SA = T.let(:SA, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + SE = T.let(:SE, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + SG = T.let(:SG, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + SI = T.let(:SI, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + SK = T.let(:SK, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + SV = T.let(:SV, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + TH = T.let(:TH, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + TR = T.let(:TR, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + TW = T.let(:TW, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + UA = T.let(:UA, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + US = T.let(:US, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + UY = T.let(:UY, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + VE = T.let(:VE, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + VN = T.let(:VN, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + ZA = T.let(:ZA, Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::CustomerUpdateParams::TaxID::Country::TaggedSymbol]) } + def values + end + end end - class Type < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - AD_NRT = :ad_nrt - AE_TRN = :ae_trn - AR_CUIT = :ar_cuit - EU_VAT = :eu_vat - AU_ABN = :au_abn - AU_ARN = :au_arn - BG_UIC = :bg_uic - BH_VAT = :bh_vat - BO_TIN = :bo_tin - BR_CNPJ = :br_cnpj - BR_CPF = :br_cpf - CA_BN = :ca_bn - CA_GST_HST = :ca_gst_hst - CA_PST_BC = :ca_pst_bc - CA_PST_MB = :ca_pst_mb - CA_PST_SK = :ca_pst_sk - CA_QST = :ca_qst - CH_VAT = :ch_vat - CL_TIN = :cl_tin - CN_TIN = :cn_tin - CO_NIT = :co_nit - CR_TIN = :cr_tin - DO_RCN = :do_rcn - EC_RUC = :ec_ruc - EG_TIN = :eg_tin - ES_CIF = :es_cif - EU_OSS_VAT = :eu_oss_vat - GB_VAT = :gb_vat - GE_VAT = :ge_vat - HK_BR = :hk_br - HU_TIN = :hu_tin - ID_NPWP = :id_npwp - IL_VAT = :il_vat - IN_GST = :in_gst - IS_VAT = :is_vat - JP_CN = :jp_cn - JP_RN = :jp_rn - JP_TRN = :jp_trn - KE_PIN = :ke_pin - KR_BRN = :kr_brn - KZ_BIN = :kz_bin - LI_UID = :li_uid - MX_RFC = :mx_rfc - MY_FRP = :my_frp - MY_ITN = :my_itn - MY_SST = :my_sst - NG_TIN = :ng_tin - NO_VAT = :no_vat - NO_VOEC = :no_voec - NZ_GST = :nz_gst - OM_VAT = :om_vat - PE_RUC = :pe_ruc - PH_TIN = :ph_tin - RO_TIN = :ro_tin - RS_PIB = :rs_pib - RU_INN = :ru_inn - RU_KPP = :ru_kpp - SA_VAT = :sa_vat - SG_GST = :sg_gst - SG_UEN = :sg_uen - SI_TIN = :si_tin - SV_NIT = :sv_nit - TH_VAT = :th_vat - TR_TIN = :tr_tin - TW_VAT = :tw_vat - UA_VAT = :ua_vat - US_EIN = :us_ein - UY_RUC = :uy_ruc - VE_RIF = :ve_rif - VN_TIN = :vn_tin - ZA_VAT = :za_vat + module Type + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::CustomerUpdateParams::TaxID::Type) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) } + + AD_NRT = T.let(:ad_nrt, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + AE_TRN = T.let(:ae_trn, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + AR_CUIT = T.let(:ar_cuit, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + EU_VAT = T.let(:eu_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + AU_ABN = T.let(:au_abn, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + AU_ARN = T.let(:au_arn, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + BG_UIC = T.let(:bg_uic, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + BH_VAT = T.let(:bh_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + BO_TIN = T.let(:bo_tin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + BR_CNPJ = T.let(:br_cnpj, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + BR_CPF = T.let(:br_cpf, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + CA_BN = T.let(:ca_bn, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + CA_GST_HST = T.let(:ca_gst_hst, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + CA_PST_BC = T.let(:ca_pst_bc, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + CA_PST_MB = T.let(:ca_pst_mb, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + CA_PST_SK = T.let(:ca_pst_sk, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + CA_QST = T.let(:ca_qst, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + CH_VAT = T.let(:ch_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + CL_TIN = T.let(:cl_tin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + CN_TIN = T.let(:cn_tin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + CO_NIT = T.let(:co_nit, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + CR_TIN = T.let(:cr_tin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + DO_RCN = T.let(:do_rcn, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + EC_RUC = T.let(:ec_ruc, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + EG_TIN = T.let(:eg_tin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + ES_CIF = T.let(:es_cif, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + EU_OSS_VAT = T.let(:eu_oss_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + GB_VAT = T.let(:gb_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + GE_VAT = T.let(:ge_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + HK_BR = T.let(:hk_br, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + HU_TIN = T.let(:hu_tin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + ID_NPWP = T.let(:id_npwp, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + IL_VAT = T.let(:il_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + IN_GST = T.let(:in_gst, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + IS_VAT = T.let(:is_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + JP_CN = T.let(:jp_cn, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + JP_RN = T.let(:jp_rn, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + JP_TRN = T.let(:jp_trn, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + KE_PIN = T.let(:ke_pin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + KR_BRN = T.let(:kr_brn, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + KZ_BIN = T.let(:kz_bin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + LI_UID = T.let(:li_uid, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + MX_RFC = T.let(:mx_rfc, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + MY_FRP = T.let(:my_frp, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + MY_ITN = T.let(:my_itn, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + MY_SST = T.let(:my_sst, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + NG_TIN = T.let(:ng_tin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + NO_VAT = T.let(:no_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + NO_VOEC = T.let(:no_voec, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + NZ_GST = T.let(:nz_gst, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + OM_VAT = T.let(:om_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + PE_RUC = T.let(:pe_ruc, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + PH_TIN = T.let(:ph_tin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + RO_TIN = T.let(:ro_tin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + RS_PIB = T.let(:rs_pib, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + RU_INN = T.let(:ru_inn, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + RU_KPP = T.let(:ru_kpp, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + SA_VAT = T.let(:sa_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + SG_GST = T.let(:sg_gst, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + SG_UEN = T.let(:sg_uen, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + SI_TIN = T.let(:si_tin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + SV_NIT = T.let(:sv_nit, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + TH_VAT = T.let(:th_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + TR_TIN = T.let(:tr_tin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + TW_VAT = T.let(:tw_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + UA_VAT = T.let(:ua_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + US_EIN = T.let(:us_ein, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + UY_RUC = T.let(:uy_ruc, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + VE_RIF = T.let(:ve_rif, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + VN_TIN = T.let(:vn_tin, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + ZA_VAT = T.let(:za_vat, Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::CustomerUpdateParams::TaxID::Type::TaggedSymbol]) } + def values + end + end end end 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 6bd75bc3..5ece65ca 100644 --- a/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi +++ b/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi @@ -8,36 +8,21 @@ module Orb include Orb::RequestParameters sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end - - sig { returns(Symbol) } - def type - end + attr_accessor :amount - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::Customers::BalanceTransactionCreateParams::Type::OrSymbol) } + attr_accessor :type # An optional description that can be specified around this entry. sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig do params( amount: String, - type: Symbol, + type: Orb::Models::Customers::BalanceTransactionCreateParams::Type::OrSymbol, description: T.nilable(String), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -49,7 +34,7 @@ module Orb .returns( { amount: String, - type: Symbol, + type: Orb::Models::Customers::BalanceTransactionCreateParams::Type::OrSymbol, description: T.nilable(String), request_options: Orb::RequestOptions } @@ -58,13 +43,22 @@ module Orb def to_hash end - class Type < Orb::Enum - abstract! + module Type + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::BalanceTransactionCreateParams::Type) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::BalanceTransactionCreateParams::Type::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + INCREMENT = T.let(:increment, Orb::Models::Customers::BalanceTransactionCreateParams::Type::TaggedSymbol) + DECREMENT = T.let(:decrement, Orb::Models::Customers::BalanceTransactionCreateParams::Type::TaggedSymbol) - INCREMENT = :increment - DECREMENT = :decrement + class << self + sig { override.returns(T::Array[Orb::Models::Customers::BalanceTransactionCreateParams::Type::TaggedSymbol]) } + def values + end + end end end 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 00c30910..ee597d45 100644 --- a/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi +++ b/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi @@ -6,110 +6,70 @@ module Orb class BalanceTransactionCreateResponse < Orb::BaseModel # A unique id for this transaction. sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id - sig { returns(Symbol) } - def action - end - - sig { params(_: Symbol).returns(Symbol) } - def action=(_) - end + sig { returns(Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol) } + attr_accessor :action # The value of the amount changed in the transaction. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The creation time of this transaction. sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote)) } - def credit_note - end + attr_reader :credit_note sig do - params(_: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote)) - .returns(T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote)) - end - def credit_note=(_) + params( + credit_note: T.nilable(T.any(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_note # An optional description provided for manual customer balance adjustments. sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description # The new value of the customer's balance prior to the transaction, in the # customer's currency. sig { returns(String) } - def ending_balance - end - - sig { params(_: String).returns(String) } - def ending_balance=(_) - end + attr_accessor :ending_balance sig { returns(T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice)) } - def invoice - end + attr_reader :invoice sig do - params(_: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice)) - .returns(T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice)) - end - def invoice=(_) + params( + invoice: T.nilable(T.any(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice, Orb::Util::AnyHash)) + ) + .void end + attr_writer :invoice # The original value of the customer's balance prior to the transaction, in the # customer's currency. sig { returns(String) } - def starting_balance - end - - sig { params(_: String).returns(String) } - def starting_balance=(_) - end + attr_accessor :starting_balance - sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::Customers::BalanceTransactionCreateResponse::Type::TaggedSymbol) } + attr_accessor :type sig do params( id: String, - action: Symbol, + action: Orb::Models::Customers::BalanceTransactionCreateResponse::Action::OrSymbol, amount: String, created_at: Time, - credit_note: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote), + credit_note: T.nilable(T.any(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote, Orb::Util::AnyHash)), description: T.nilable(String), ending_balance: String, - invoice: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice), + invoice: T.nilable(T.any(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice, Orb::Util::AnyHash)), starting_balance: String, - type: Symbol + type: Orb::Models::Customers::BalanceTransactionCreateResponse::Type::OrSymbol ) .returns(T.attached_class) end @@ -132,7 +92,7 @@ module Orb .returns( { id: String, - action: Symbol, + action: Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol, amount: String, created_at: Time, credit_note: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote), @@ -140,38 +100,60 @@ module Orb ending_balance: String, invoice: T.nilable(Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice), starting_balance: String, - type: Symbol + type: Orb::Models::Customers::BalanceTransactionCreateResponse::Type::TaggedSymbol } ) end def to_hash end - class Action < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - APPLIED_TO_INVOICE = :applied_to_invoice - MANUAL_ADJUSTMENT = :manual_adjustment - PRORATED_REFUND = :prorated_refund - REVERT_PRORATED_REFUND = :revert_prorated_refund - RETURN_FROM_VOIDING = :return_from_voiding - CREDIT_NOTE_APPLIED = :credit_note_applied - CREDIT_NOTE_VOIDED = :credit_note_voided - OVERPAYMENT_REFUND = :overpayment_refund - EXTERNAL_PAYMENT = :external_payment + module Action + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::BalanceTransactionCreateResponse::Action) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol) } + + APPLIED_TO_INVOICE = + T.let(:applied_to_invoice, Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol) + MANUAL_ADJUSTMENT = + T.let(:manual_adjustment, Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol) + PRORATED_REFUND = + T.let(:prorated_refund, Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol) + REVERT_PRORATED_REFUND = + T.let( + :revert_prorated_refund, + Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol + ) + RETURN_FROM_VOIDING = + T.let( + :return_from_voiding, + Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol + ) + CREDIT_NOTE_APPLIED = + T.let( + :credit_note_applied, + Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol + ) + CREDIT_NOTE_VOIDED = + T.let(:credit_note_voided, Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol) + OVERPAYMENT_REFUND = + T.let(:overpayment_refund, Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol) + EXTERNAL_PAYMENT = + T.let(:external_payment, Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol]) } + def values + end + end end class CreditNote < Orb::BaseModel # The id of the Credit note sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -185,12 +167,7 @@ module Orb class Invoice < Orb::BaseModel # The Invoice id sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -201,13 +178,24 @@ module Orb end end - class Type < Orb::Enum - abstract! + module Type + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::BalanceTransactionCreateResponse::Type) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::BalanceTransactionCreateResponse::Type::TaggedSymbol) } - INCREMENT = :increment - DECREMENT = :decrement + INCREMENT = + T.let(:increment, Orb::Models::Customers::BalanceTransactionCreateResponse::Type::TaggedSymbol) + DECREMENT = + T.let(:decrement, Orb::Models::Customers::BalanceTransactionCreateResponse::Type::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Customers::BalanceTransactionCreateResponse::Type::TaggedSymbol]) } + def values + end + end end end 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 f2c8375f..483d56ec 100644 --- a/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi +++ b/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi @@ -10,53 +10,26 @@ module Orb # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig { returns(T.nilable(Time)) } - def operation_time_gt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def operation_time_gt=(_) - end + attr_accessor :operation_time_gt sig { returns(T.nilable(Time)) } - def operation_time_gte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def operation_time_gte=(_) - end + attr_accessor :operation_time_gte sig { returns(T.nilable(Time)) } - def operation_time_lt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def operation_time_lt=(_) - end + attr_accessor :operation_time_lt sig { returns(T.nilable(Time)) } - def operation_time_lte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def operation_time_lte=(_) - end + attr_accessor :operation_time_lte sig do params( @@ -66,7 +39,7 @@ module Orb operation_time_gte: T.nilable(Time), operation_time_lt: T.nilable(Time), operation_time_lte: T.nilable(Time), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) 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 bc5822c0..4918e2bd 100644 --- a/rbi/lib/orb/models/customers/balance_transaction_list_response.rbi +++ b/rbi/lib/orb/models/customers/balance_transaction_list_response.rbi @@ -6,110 +6,70 @@ module Orb class BalanceTransactionListResponse < Orb::BaseModel # A unique id for this transaction. sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id - sig { returns(Symbol) } - def action - end - - sig { params(_: Symbol).returns(Symbol) } - def action=(_) - end + sig { returns(Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol) } + attr_accessor :action # The value of the amount changed in the transaction. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The creation time of this transaction. sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote)) } - def credit_note - end + attr_reader :credit_note sig do - params(_: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote)) - .returns(T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote)) - end - def credit_note=(_) + params( + credit_note: T.nilable(T.any(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_note # An optional description provided for manual customer balance adjustments. sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description # The new value of the customer's balance prior to the transaction, in the # customer's currency. sig { returns(String) } - def ending_balance - end - - sig { params(_: String).returns(String) } - def ending_balance=(_) - end + attr_accessor :ending_balance sig { returns(T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::Invoice)) } - def invoice - end + attr_reader :invoice sig do - params(_: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::Invoice)) - .returns(T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::Invoice)) - end - def invoice=(_) + params( + invoice: T.nilable(T.any(Orb::Models::Customers::BalanceTransactionListResponse::Invoice, Orb::Util::AnyHash)) + ) + .void end + attr_writer :invoice # The original value of the customer's balance prior to the transaction, in the # customer's currency. sig { returns(String) } - def starting_balance - end + attr_accessor :starting_balance - sig { params(_: String).returns(String) } - def starting_balance=(_) - end - - sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::Customers::BalanceTransactionListResponse::Type::TaggedSymbol) } + attr_accessor :type sig do params( id: String, - action: Symbol, + action: Orb::Models::Customers::BalanceTransactionListResponse::Action::OrSymbol, amount: String, created_at: Time, - credit_note: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote), + credit_note: T.nilable(T.any(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote, Orb::Util::AnyHash)), description: T.nilable(String), ending_balance: String, - invoice: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::Invoice), + invoice: T.nilable(T.any(Orb::Models::Customers::BalanceTransactionListResponse::Invoice, Orb::Util::AnyHash)), starting_balance: String, - type: Symbol + type: Orb::Models::Customers::BalanceTransactionListResponse::Type::OrSymbol ) .returns(T.attached_class) end @@ -132,7 +92,7 @@ module Orb .returns( { id: String, - action: Symbol, + action: Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol, amount: String, created_at: Time, credit_note: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::CreditNote), @@ -140,38 +100,54 @@ module Orb ending_balance: String, invoice: T.nilable(Orb::Models::Customers::BalanceTransactionListResponse::Invoice), starting_balance: String, - type: Symbol + type: Orb::Models::Customers::BalanceTransactionListResponse::Type::TaggedSymbol } ) end def to_hash end - class Action < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - APPLIED_TO_INVOICE = :applied_to_invoice - MANUAL_ADJUSTMENT = :manual_adjustment - PRORATED_REFUND = :prorated_refund - REVERT_PRORATED_REFUND = :revert_prorated_refund - RETURN_FROM_VOIDING = :return_from_voiding - CREDIT_NOTE_APPLIED = :credit_note_applied - CREDIT_NOTE_VOIDED = :credit_note_voided - OVERPAYMENT_REFUND = :overpayment_refund - EXTERNAL_PAYMENT = :external_payment + module Action + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::BalanceTransactionListResponse::Action) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol) } + + APPLIED_TO_INVOICE = + T.let(:applied_to_invoice, Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol) + MANUAL_ADJUSTMENT = + T.let(:manual_adjustment, Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol) + PRORATED_REFUND = + T.let(:prorated_refund, Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol) + REVERT_PRORATED_REFUND = + T.let( + :revert_prorated_refund, + Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol + ) + RETURN_FROM_VOIDING = + T.let(:return_from_voiding, Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol) + CREDIT_NOTE_APPLIED = + T.let(:credit_note_applied, Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol) + CREDIT_NOTE_VOIDED = + T.let(:credit_note_voided, Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol) + OVERPAYMENT_REFUND = + T.let(:overpayment_refund, Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol) + EXTERNAL_PAYMENT = + T.let(:external_payment, Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol]) } + def values + end + end end class CreditNote < Orb::BaseModel # The id of the Credit note sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -185,12 +161,7 @@ module Orb class Invoice < Orb::BaseModel # The Invoice id sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -201,13 +172,22 @@ module Orb end end - class Type < Orb::Enum - abstract! + module Type + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::BalanceTransactionListResponse::Type) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::BalanceTransactionListResponse::Type::TaggedSymbol) } - INCREMENT = :increment - DECREMENT = :decrement + INCREMENT = T.let(:increment, Orb::Models::Customers::BalanceTransactionListResponse::Type::TaggedSymbol) + DECREMENT = T.let(:decrement, Orb::Models::Customers::BalanceTransactionListResponse::Type::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Customers::BalanceTransactionListResponse::Type::TaggedSymbol]) } + def values + end + end end end 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 5f794871..bdfe86ab 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 @@ -9,50 +9,30 @@ module Orb # The currency or custom pricing unit to use. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # Costs returned are exclusive of `timeframe_end`. sig { returns(T.nilable(Time)) } - def timeframe_end - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end # Costs returned are inclusive of `timeframe_start`. sig { returns(T.nilable(Time)) } - def timeframe_start - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # Controls whether Orb returns cumulative costs since the start of the billing # period, or incremental day-by-day costs. If your customer has minimums or # discounts, it's strongly recommended that you use the default cumulative # behavior. - sig { returns(T.nilable(Symbol)) } - def view_mode - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def view_mode=(_) - end + sig { returns(T.nilable(Orb::Models::Customers::CostListByExternalIDParams::ViewMode::OrSymbol)) } + attr_accessor :view_mode sig do params( currency: T.nilable(String), timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - view_mode: T.nilable(Symbol), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + view_mode: T.nilable(Orb::Models::Customers::CostListByExternalIDParams::ViewMode::OrSymbol), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -66,7 +46,7 @@ module Orb currency: T.nilable(String), timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - view_mode: T.nilable(Symbol), + view_mode: T.nilable(Orb::Models::Customers::CostListByExternalIDParams::ViewMode::OrSymbol), request_options: Orb::RequestOptions } ) @@ -78,13 +58,23 @@ module Orb # period, or incremental day-by-day costs. If your customer has minimums or # discounts, it's strongly recommended that you use the default cumulative # behavior. - class ViewMode < Orb::Enum - abstract! + module ViewMode + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::CostListByExternalIDParams::ViewMode) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::CostListByExternalIDParams::ViewMode::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + PERIODIC = T.let(:periodic, Orb::Models::Customers::CostListByExternalIDParams::ViewMode::TaggedSymbol) + CUMULATIVE = + T.let(:cumulative, Orb::Models::Customers::CostListByExternalIDParams::ViewMode::TaggedSymbol) - PERIODIC = :periodic - CUMULATIVE = :cumulative + class << self + sig { override.returns(T::Array[Orb::Models::Customers::CostListByExternalIDParams::ViewMode::TaggedSymbol]) } + def values + end + end end end 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 83f9d5ea..467f40bf 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 @@ -5,18 +5,12 @@ module Orb module Customers class CostListByExternalIDResponse < Orb::BaseModel sig { returns(T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data]) } - def data - end - - sig do - params(_: T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data]) - .returns(T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data]) - end - def data=(_) - end + attr_accessor :data sig do - params(data: T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data]) + params( + data: T::Array[T.any(Orb::Models::Customers::CostListByExternalIDResponse::Data, Orb::Util::AnyHash)] + ) .returns(T.attached_class) end def self.new(data:) @@ -28,53 +22,25 @@ module Orb class Data < Orb::BaseModel sig { returns(T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost]) } - def per_price_costs - end - - sig do - params(_: T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost]) - .returns(T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost]) - end - def per_price_costs=(_) - end + attr_accessor :per_price_costs # Total costs for the timeframe, excluding any minimums and discounts. sig { returns(String) } - def subtotal - end - - sig { params(_: String).returns(String) } - def subtotal=(_) - end + attr_accessor :subtotal sig { returns(Time) } - def timeframe_end - end - - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # Total costs for the timeframe, including any minimums and discounts. sig { returns(String) } - def total - end - - sig { params(_: String).returns(String) } - def total=(_) - end + attr_accessor :total sig do params( - per_price_costs: T::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost], + per_price_costs: T::Array[T.any(Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost, Orb::Util::AnyHash)], subtotal: String, timeframe_end: Time, timeframe_start: Time, @@ -136,118 +102,29 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .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 + attr_accessor :price # The price the cost is associated with sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id # Price's contributions for the timeframe, excluding any minimums and discounts. sig { returns(String) } - def subtotal - end - - sig { params(_: String).returns(String) } - def subtotal=(_) - end + attr_accessor :subtotal # Price's contributions for the timeframe, including minimums and discounts. sig { returns(String) } - def total - end - - sig { params(_: String).returns(String) } - def total=(_) - end + attr_accessor :total # The price's quantity for the timeframe sig { returns(T.nilable(Float)) } - def quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def quantity=(_) - end + attr_accessor :quantity sig do params( price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, diff --git a/rbi/lib/orb/models/customers/cost_list_params.rbi b/rbi/lib/orb/models/customers/cost_list_params.rbi index 6e8b621b..4af8f171 100644 --- a/rbi/lib/orb/models/customers/cost_list_params.rbi +++ b/rbi/lib/orb/models/customers/cost_list_params.rbi @@ -9,50 +9,30 @@ module Orb # The currency or custom pricing unit to use. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # Costs returned are exclusive of `timeframe_end`. sig { returns(T.nilable(Time)) } - def timeframe_end - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end # Costs returned are inclusive of `timeframe_start`. sig { returns(T.nilable(Time)) } - def timeframe_start - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # Controls whether Orb returns cumulative costs since the start of the billing # period, or incremental day-by-day costs. If your customer has minimums or # discounts, it's strongly recommended that you use the default cumulative # behavior. - sig { returns(T.nilable(Symbol)) } - def view_mode - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def view_mode=(_) - end + sig { returns(T.nilable(Orb::Models::Customers::CostListParams::ViewMode::OrSymbol)) } + attr_accessor :view_mode sig do params( currency: T.nilable(String), timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - view_mode: T.nilable(Symbol), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + view_mode: T.nilable(Orb::Models::Customers::CostListParams::ViewMode::OrSymbol), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -66,7 +46,7 @@ module Orb currency: T.nilable(String), timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - view_mode: T.nilable(Symbol), + view_mode: T.nilable(Orb::Models::Customers::CostListParams::ViewMode::OrSymbol), request_options: Orb::RequestOptions } ) @@ -78,13 +58,20 @@ module Orb # period, or incremental day-by-day costs. If your customer has minimums or # discounts, it's strongly recommended that you use the default cumulative # behavior. - class ViewMode < Orb::Enum - abstract! + module ViewMode + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Customers::CostListParams::ViewMode) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Customers::CostListParams::ViewMode::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + PERIODIC = T.let(:periodic, Orb::Models::Customers::CostListParams::ViewMode::TaggedSymbol) + CUMULATIVE = T.let(:cumulative, Orb::Models::Customers::CostListParams::ViewMode::TaggedSymbol) - PERIODIC = :periodic - CUMULATIVE = :cumulative + class << self + sig { override.returns(T::Array[Orb::Models::Customers::CostListParams::ViewMode::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/customers/cost_list_response.rbi b/rbi/lib/orb/models/customers/cost_list_response.rbi index 557ac669..95e0e6ac 100644 --- a/rbi/lib/orb/models/customers/cost_list_response.rbi +++ b/rbi/lib/orb/models/customers/cost_list_response.rbi @@ -5,17 +5,12 @@ module Orb module Customers class CostListResponse < Orb::BaseModel sig { returns(T::Array[Orb::Models::Customers::CostListResponse::Data]) } - def data - end + attr_accessor :data sig do - params(_: T::Array[Orb::Models::Customers::CostListResponse::Data]) - .returns(T::Array[Orb::Models::Customers::CostListResponse::Data]) - end - def data=(_) + params(data: T::Array[T.any(Orb::Models::Customers::CostListResponse::Data, Orb::Util::AnyHash)]) + .returns(T.attached_class) end - - sig { params(data: T::Array[Orb::Models::Customers::CostListResponse::Data]).returns(T.attached_class) } def self.new(data:) end @@ -25,53 +20,25 @@ module Orb class Data < Orb::BaseModel sig { returns(T::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost]) } - def per_price_costs - end - - sig do - params(_: T::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost]) - .returns(T::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost]) - end - def per_price_costs=(_) - end + attr_accessor :per_price_costs # Total costs for the timeframe, excluding any minimums and discounts. sig { returns(String) } - def subtotal - end - - sig { params(_: String).returns(String) } - def subtotal=(_) - end + attr_accessor :subtotal sig { returns(Time) } - def timeframe_end - end - - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # Total costs for the timeframe, including any minimums and discounts. sig { returns(String) } - def total - end - - sig { params(_: String).returns(String) } - def total=(_) - end + attr_accessor :total sig do params( - per_price_costs: T::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost], + per_price_costs: T::Array[T.any(Orb::Models::Customers::CostListResponse::Data::PerPriceCost, Orb::Util::AnyHash)], subtotal: String, timeframe_end: Time, timeframe_start: Time, @@ -133,118 +100,29 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .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 + attr_accessor :price # The price the cost is associated with sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id # Price's contributions for the timeframe, excluding any minimums and discounts. sig { returns(String) } - def subtotal - end - - sig { params(_: String).returns(String) } - def subtotal=(_) - end + attr_accessor :subtotal # Price's contributions for the timeframe, including minimums and discounts. sig { returns(String) } - def total - end - - sig { params(_: String).returns(String) } - def total=(_) - end + attr_accessor :total # The price's quantity for the timeframe sig { returns(T.nilable(Float)) } - def quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def quantity=(_) - end + attr_accessor :quantity sig do params( price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, 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 44732388..be717b13 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 @@ -9,41 +9,27 @@ module Orb # The ledger currency or custom pricing unit to use. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # If set to True, all expired and depleted blocks, as well as active block will be # returned. sig { returns(T.nilable(T::Boolean)) } - def include_all_blocks - end + attr_reader :include_all_blocks - sig { params(_: T::Boolean).returns(T::Boolean) } - def include_all_blocks=(_) - end + sig { params(include_all_blocks: T::Boolean).void } + attr_writer :include_all_blocks # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig do params( @@ -51,7 +37,7 @@ module Orb cursor: T.nilable(String), include_all_blocks: T::Boolean, limit: Integer, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) 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 fbff485a..05c95838 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 @@ -5,60 +5,25 @@ module Orb module Customers class CreditListByExternalIDResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def balance - end - - sig { params(_: Float).returns(Float) } - def balance=(_) - end + attr_accessor :balance sig { returns(T.nilable(Time)) } - def effective_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def effective_date=(_) - end + attr_accessor :effective_date sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(Float)) } - def maximum_initial_balance - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def maximum_initial_balance=(_) - end + attr_accessor :maximum_initial_balance sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end + attr_accessor :per_unit_cost_basis - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end - - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::Customers::CreditListByExternalIDResponse::Status::TaggedSymbol) } + attr_accessor :status sig do params( @@ -68,7 +33,7 @@ module Orb expiry_date: T.nilable(Time), maximum_initial_balance: T.nilable(Float), per_unit_cost_basis: T.nilable(String), - status: Symbol + status: Orb::Models::Customers::CreditListByExternalIDResponse::Status::OrSymbol ) .returns(T.attached_class) end @@ -85,20 +50,30 @@ module Orb expiry_date: T.nilable(Time), maximum_initial_balance: T.nilable(Float), per_unit_cost_basis: T.nilable(String), - status: Symbol + status: Orb::Models::Customers::CreditListByExternalIDResponse::Status::TaggedSymbol } ) end def to_hash end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::CreditListByExternalIDResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::CreditListByExternalIDResponse::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ACTIVE = T.let(:active, Orb::Models::Customers::CreditListByExternalIDResponse::Status::TaggedSymbol) + PENDING_PAYMENT = + T.let(:pending_payment, Orb::Models::Customers::CreditListByExternalIDResponse::Status::TaggedSymbol) - ACTIVE = :active - PENDING_PAYMENT = :pending_payment + class << self + sig { override.returns(T::Array[Orb::Models::Customers::CreditListByExternalIDResponse::Status::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/customers/credit_list_params.rbi b/rbi/lib/orb/models/customers/credit_list_params.rbi index 043c9823..2653dcdf 100644 --- a/rbi/lib/orb/models/customers/credit_list_params.rbi +++ b/rbi/lib/orb/models/customers/credit_list_params.rbi @@ -9,41 +9,27 @@ module Orb # The ledger currency or custom pricing unit to use. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # If set to True, all expired and depleted blocks, as well as active block will be # returned. sig { returns(T.nilable(T::Boolean)) } - def include_all_blocks - end + attr_reader :include_all_blocks - sig { params(_: T::Boolean).returns(T::Boolean) } - def include_all_blocks=(_) - end + sig { params(include_all_blocks: T::Boolean).void } + attr_writer :include_all_blocks # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig do params( @@ -51,7 +37,7 @@ module Orb cursor: T.nilable(String), include_all_blocks: T::Boolean, limit: Integer, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/customers/credit_list_response.rbi b/rbi/lib/orb/models/customers/credit_list_response.rbi index 6321b595..7654b29d 100644 --- a/rbi/lib/orb/models/customers/credit_list_response.rbi +++ b/rbi/lib/orb/models/customers/credit_list_response.rbi @@ -5,60 +5,25 @@ module Orb module Customers class CreditListResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def balance - end - - sig { params(_: Float).returns(Float) } - def balance=(_) - end + attr_accessor :balance sig { returns(T.nilable(Time)) } - def effective_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def effective_date=(_) - end + attr_accessor :effective_date sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(Float)) } - def maximum_initial_balance - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def maximum_initial_balance=(_) - end + attr_accessor :maximum_initial_balance sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end + attr_accessor :per_unit_cost_basis - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end - - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::Customers::CreditListResponse::Status::TaggedSymbol) } + attr_accessor :status sig do params( @@ -68,7 +33,7 @@ module Orb expiry_date: T.nilable(Time), maximum_initial_balance: T.nilable(Float), per_unit_cost_basis: T.nilable(String), - status: Symbol + status: Orb::Models::Customers::CreditListResponse::Status::OrSymbol ) .returns(T.attached_class) end @@ -85,20 +50,29 @@ module Orb expiry_date: T.nilable(Time), maximum_initial_balance: T.nilable(Float), per_unit_cost_basis: T.nilable(String), - status: Symbol + status: Orb::Models::Customers::CreditListResponse::Status::TaggedSymbol } ) end def to_hash end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Customers::CreditListResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::CreditListResponse::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ACTIVE = T.let(:active, Orb::Models::Customers::CreditListResponse::Status::TaggedSymbol) + PENDING_PAYMENT = + T.let(:pending_payment, Orb::Models::Customers::CreditListResponse::Status::TaggedSymbol) - ACTIVE = :active - PENDING_PAYMENT = :pending_payment + class << self + sig { override.returns(T::Array[Orb::Models::Customers::CreditListResponse::Status::TaggedSymbol]) } + def values + end + end end end 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 5e9b2ed7..e1356dde 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 @@ -11,146 +11,100 @@ module Orb # The number of credits to effect. Note that this is required for increment, # decrement or void operations. sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end - - sig { returns(Symbol) } - def entry_type - end + attr_accessor :amount - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType::OrSymbol) } + attr_accessor :entry_type # The currency or custom pricing unit to use for this ledger entry. If this is a # real-world currency, it must match the customer's invoicing currency. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # Optional metadata that can be specified when adding ledger results via the API. # For example, this can be used to note an increment refers to trial credits, or # for noting corrections as a result of an incident, etc. sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description # An ISO 8601 format date that denotes when this credit balance should become # available for use. sig { returns(T.nilable(Time)) } - def effective_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def effective_date=(_) - end + attr_accessor :effective_date # An ISO 8601 format date that identifies the origination credit block to expire sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date # Passing `invoice_settings` automatically generates an invoice for the newly # added credits. If `invoice_settings` is passed, you must specify # per_unit_cost_basis, as the calculation of the invoice total is done on that # basis. sig { returns(T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings)) } - def invoice_settings - end + attr_reader :invoice_settings sig do params( - _: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings) + invoice_settings: T.nilable( + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings, + Orb::Util::AnyHash + ) + ) ) - .returns(T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings)) - end - def invoice_settings=(_) + .void end + attr_writer :invoice_settings # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # Can only be specified when entry_type=increment. How much, in the customer's # currency, a customer paid for a single credit in this block sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis # A future date (specified in YYYY-MM-DD format) used for expiration change, # denoting when credits transferred (as part of a partial block expiration) should # expire. sig { returns(Date) } - def target_expiry_date - end - - sig { params(_: Date).returns(Date) } - def target_expiry_date=(_) - end + attr_accessor :target_expiry_date # The ID of the block to reverse a decrement from. sig { returns(String) } - def block_id - end - - sig { params(_: String).returns(String) } - def block_id=(_) - end + attr_accessor :block_id # Can only be specified when `entry_type=void`. The reason for the void. - sig { returns(T.nilable(Symbol)) } - def void_reason - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def void_reason=(_) + sig do + returns( + T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::OrSymbol) + ) end + attr_accessor :void_reason sig do params( amount: Float, - entry_type: Symbol, + entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType::OrSymbol, expiry_date: T.nilable(Time), target_expiry_date: Date, block_id: String, currency: T.nilable(String), description: T.nilable(String), effective_date: T.nilable(Time), - invoice_settings: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings), + invoice_settings: T.nilable( + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings, + Orb::Util::AnyHash + ) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), per_unit_cost_basis: T.nilable(String), - void_reason: T.nilable(Symbol), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + void_reason: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::OrSymbol), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -176,7 +130,7 @@ module Orb .returns( { amount: Float, - entry_type: Symbol, + entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType::OrSymbol, currency: T.nilable(String), description: T.nilable(String), effective_date: T.nilable(Time), @@ -186,7 +140,7 @@ module Orb per_unit_cost_basis: T.nilable(String), target_expiry_date: Date, block_id: String, - void_reason: T.nilable(Symbol), + void_reason: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::OrSymbol), request_options: Orb::RequestOptions } ) @@ -194,54 +148,60 @@ module Orb def to_hash end - class EntryType < Orb::Enum - abstract! + module EntryType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType::TaggedSymbol + ) + end - AMENDMENT = :amendment + AMENDMENT = + T.let( + :amendment, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType::TaggedSymbol] + ) + end + def values + end + end end class InvoiceSettings < Orb::BaseModel # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. sig { returns(T::Boolean) } - def auto_collection - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def auto_collection=(_) - end + attr_accessor :auto_collection # The net terms determines the difference between the invoice date and the issue # date for the invoice. If you intend the invoice to be due on issue, set this # to 0. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # An optional memo to display on the invoice. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo # If true, the new credit block will require that the corresponding invoice is # paid before it can be drawn down from. sig { returns(T.nilable(T::Boolean)) } - def require_successful_payment - end + attr_reader :require_successful_payment - sig { params(_: T::Boolean).returns(T::Boolean) } - def require_successful_payment=(_) - end + sig { params(require_successful_payment: T::Boolean).void } + attr_writer :require_successful_payment # Passing `invoice_settings` automatically generates an invoice for the newly # added credits. If `invoice_settings` is passed, you must specify @@ -275,12 +235,35 @@ module Orb end # Can only be specified when `entry_type=void`. The reason for the void. - class VoidReason < Orb::Enum - abstract! + module VoidReason + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + REFUND = + T.let( + :refund, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::TaggedSymbol + ) - REFUND = :refund + class << self + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::TaggedSymbol] + ) + end + def values + end + end end end 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 84b4b3ae..f8960471 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 @@ -6,165 +6,119 @@ module Orb module Credits # The [Credit Ledger Entry resource](/product-catalog/prepurchase) models prepaid # credits within Orb. - class LedgerCreateEntryByExternalIDResponse < Orb::Union - abstract! - - Variants = type_template(:out) do - { - fixed: 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 + module LedgerCreateEntryByExternalIDResponse + extend Orb::Union + + Variants = + type_template(:out) do + { + fixed: 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 class IncrementLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Customer ) end - def customer - end + attr_reader :customer sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Customer - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Customer + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Customer, + Orb::Util::AnyHash ) + ) + .void end - def customer=(_) - end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end + attr_accessor :ending_balance - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -201,7 +155,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -214,28 +168,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -259,20 +198,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -283,182 +212,151 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class DecrementLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Customer ) end - def customer - end + attr_reader :customer sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Customer - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Customer + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Customer, + Orb::Util::AnyHash ) + ) + .void end - def customer=(_) - end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end + attr_accessor :ending_balance - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig { returns(T.nilable(String)) } - def event_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def event_id=(_) - end + attr_accessor :event_id sig { returns(T.nilable(String)) } - def invoice_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_id=(_) - end + attr_accessor :invoice_id sig { returns(T.nilable(String)) } - def price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def price_id=(_) - end + attr_accessor :price_id sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -501,7 +399,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -517,28 +415,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -562,20 +445,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -586,166 +459,145 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) + end - COMMITTED = :committed - PENDING = :pending + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class ExpirationChangeLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Customer ) end - def customer - end + attr_reader :customer sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Customer - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Customer + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, + Orb::Util::AnyHash ) + ) + .void end - def customer=(_) - end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end + attr_accessor :ending_balance - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Time)) } - def new_block_expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def new_block_expiry_date=(_) - end + attr_accessor :new_block_expiry_date sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], new_block_expiry_date: T.nilable(Time), @@ -784,7 +636,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -798,28 +650,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -843,20 +680,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -867,158 +694,142 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) + end - COMMITTED = :committed - PENDING = :pending + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class CreditBlockExpiryLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer ) end - def customer - end + attr_reader :customer sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, + Orb::Util::AnyHash ) + ) + .void end - def customer=(_) - end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end + attr_accessor :ending_balance - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -1055,7 +866,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1068,28 +879,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1113,20 +909,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -1137,168 +923,144 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) + end - COMMITTED = :committed - PENDING = :pending + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class VoidLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Customer + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Customer, + Orb::Util::AnyHash + ) ) - .returns(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Customer) - end - def customer=(_) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end + attr_accessor :ending_balance - sig { params(_: Float).returns(Float) } - def ending_balance=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) - end - - sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig { returns(Float) } - def void_amount - end - - sig { params(_: Float).returns(Float) } - def void_amount=(_) - end + attr_accessor :void_amount sig { returns(T.nilable(String)) } - def void_reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def void_reason=(_) - end + attr_accessor :void_reason sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -1339,7 +1101,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1354,28 +1116,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1399,20 +1146,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -1423,182 +1160,151 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) + end + + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class VoidInitiatedLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Customer ) end - def customer - end + attr_reader :customer sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Customer - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Customer + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, + Orb::Util::AnyHash ) + ) + .void end - def customer=(_) - end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end + attr_accessor :ending_balance - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Time) } - def new_block_expiry_date - end - - sig { params(_: Time).returns(Time) } - def new_block_expiry_date=(_) - end + attr_accessor :new_block_expiry_date sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig { returns(Float) } - def void_amount - end - - sig { params(_: Float).returns(Float) } - def void_amount=(_) - end + attr_accessor :void_amount sig { returns(T.nilable(String)) } - def void_reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def void_reason=(_) - end + attr_accessor :void_reason sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], new_block_expiry_date: Time, @@ -1641,7 +1347,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1657,28 +1363,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1702,20 +1393,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -1726,158 +1407,142 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) + end - COMMITTED = :committed - PENDING = :pending + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class AmendmentLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Customer ) end - def customer - end + attr_reader :customer sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Customer - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Customer + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Customer, + Orb::Util::AnyHash ) + ) + .void end - def customer=(_) - end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end + attr_accessor :ending_balance - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -1914,7 +1579,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1927,28 +1592,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1972,20 +1622,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -1996,13 +1636,55 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end + end + end + + class << self + sig do + override + .returns( + [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 variants end end 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 524a19f7..adc36d69 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 @@ -11,144 +11,90 @@ module Orb # The number of credits to effect. Note that this is required for increment, # decrement or void operations. sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount - sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType::OrSymbol) } + attr_accessor :entry_type # The currency or custom pricing unit to use for this ledger entry. If this is a # real-world currency, it must match the customer's invoicing currency. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # Optional metadata that can be specified when adding ledger results via the API. # For example, this can be used to note an increment refers to trial credits, or # for noting corrections as a result of an incident, etc. sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description # An ISO 8601 format date that denotes when this credit balance should become # available for use. sig { returns(T.nilable(Time)) } - def effective_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def effective_date=(_) - end + attr_accessor :effective_date # An ISO 8601 format date that identifies the origination credit block to expire sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date # Passing `invoice_settings` automatically generates an invoice for the newly # added credits. If `invoice_settings` is passed, you must specify # per_unit_cost_basis, as the calculation of the invoice total is done on that # basis. sig { returns(T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings)) } - def invoice_settings - end + attr_reader :invoice_settings sig do - params(_: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings)) - .returns(T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings)) - end - def invoice_settings=(_) + params( + invoice_settings: T.nilable( + T.any(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoice_settings # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # Can only be specified when entry_type=increment. How much, in the customer's # currency, a customer paid for a single credit in this block sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis # A future date (specified in YYYY-MM-DD format) used for expiration change, # denoting when credits transferred (as part of a partial block expiration) should # expire. sig { returns(Date) } - def target_expiry_date - end - - sig { params(_: Date).returns(Date) } - def target_expiry_date=(_) - end + attr_accessor :target_expiry_date # The ID of the block to reverse a decrement from. sig { returns(String) } - def block_id - end - - sig { params(_: String).returns(String) } - def block_id=(_) - end + attr_accessor :block_id # Can only be specified when `entry_type=void`. The reason for the void. - sig { returns(T.nilable(Symbol)) } - def void_reason - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def void_reason=(_) - end + sig { returns(T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason::OrSymbol)) } + attr_accessor :void_reason sig do params( amount: Float, - entry_type: Symbol, + entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType::OrSymbol, expiry_date: T.nilable(Time), target_expiry_date: Date, block_id: String, currency: T.nilable(String), description: T.nilable(String), effective_date: T.nilable(Time), - invoice_settings: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings), + invoice_settings: T.nilable( + T.any(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings, Orb::Util::AnyHash) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), per_unit_cost_basis: T.nilable(String), - void_reason: T.nilable(Symbol), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + void_reason: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason::OrSymbol), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -174,7 +120,7 @@ module Orb .returns( { amount: Float, - entry_type: Symbol, + entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType::OrSymbol, currency: T.nilable(String), description: T.nilable(String), effective_date: T.nilable(Time), @@ -184,7 +130,7 @@ module Orb per_unit_cost_basis: T.nilable(String), target_expiry_date: Date, block_id: String, - void_reason: T.nilable(Symbol), + void_reason: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason::OrSymbol), request_options: Orb::RequestOptions } ) @@ -192,54 +138,50 @@ module Orb def to_hash end - class EntryType < Orb::Enum - abstract! + module EntryType + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + AMENDMENT = + T.let(:amendment, Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType::TaggedSymbol) - AMENDMENT = :amendment + class << self + sig do + override + .returns(T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType::TaggedSymbol]) + end + def values + end + end end class InvoiceSettings < Orb::BaseModel # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. sig { returns(T::Boolean) } - def auto_collection - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def auto_collection=(_) - end + attr_accessor :auto_collection # The net terms determines the difference between the invoice date and the issue # date for the invoice. If you intend the invoice to be due on issue, set this # to 0. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # An optional memo to display on the invoice. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo # If true, the new credit block will require that the corresponding invoice is # paid before it can be drawn down from. sig { returns(T.nilable(T::Boolean)) } - def require_successful_payment - end + attr_reader :require_successful_payment - sig { params(_: T::Boolean).returns(T::Boolean) } - def require_successful_payment=(_) - end + sig { params(require_successful_payment: T::Boolean).void } + attr_writer :require_successful_payment # Passing `invoice_settings` automatically generates an invoice for the newly # added credits. If `invoice_settings` is passed, you must specify @@ -273,12 +215,25 @@ module Orb end # Can only be specified when `entry_type=void`. The reason for the void. - class VoidReason < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - REFUND = :refund + module VoidReason + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason::TaggedSymbol) } + + REFUND = + T.let(:refund, Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason::TaggedSymbol]) + end + def values + end + end end end 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 07c85462..a55657da 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 @@ -6,149 +6,111 @@ module Orb module Credits # The [Credit Ledger Entry resource](/product-catalog/prepurchase) models prepaid # credits within Orb. - class LedgerCreateEntryResponse < Orb::Union - abstract! - - Variants = type_template(:out) do - { - fixed: 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 + module LedgerCreateEntryResponse + extend Orb::Union + + Variants = + type_template(:out) do + { + fixed: 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 class IncrementLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::CreditBlock) } - def credit_block - end + attr_reader :credit_block sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::CreditBlock) - .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::CreditBlock) - end - def credit_block=(_) + params( + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end + attr_accessor :ending_balance - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -185,7 +147,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -198,28 +160,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -243,20 +190,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -267,166 +204,143 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class DecrementLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::CreditBlock) } - def credit_block - end + attr_reader :credit_block sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::CreditBlock) - .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::CreditBlock) - end - def credit_block=(_) + params( + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end + attr_accessor :ending_balance - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig { returns(T.nilable(String)) } - def event_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def event_id=(_) - end + attr_accessor :event_id sig { returns(T.nilable(String)) } - def invoice_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_id=(_) - end + attr_accessor :invoice_id sig { returns(T.nilable(String)) } - def price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def price_id=(_) - end + attr_accessor :price_id sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -469,7 +383,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -485,28 +399,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -530,20 +429,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -554,160 +443,141 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) + end - COMMITTED = :committed - PENDING = :pending + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class ExpirationChangeLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Customer + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Customer, + Orb::Util::AnyHash + ) ) - .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Customer) - end - def customer=(_) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end + attr_accessor :ending_balance - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Time)) } - def new_block_expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def new_block_expiry_date=(_) - end + attr_accessor :new_block_expiry_date sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], new_block_expiry_date: T.nilable(Time), @@ -746,7 +616,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -760,28 +630,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -805,20 +660,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -829,158 +674,142 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class CreditBlockExpiryLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Customer ) end - def customer - end + attr_reader :customer sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Customer - ) - .returns( - Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Customer + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Customer, + Orb::Util::AnyHash ) + ) + .void end - def customer=(_) - end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end + attr_accessor :ending_balance - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -1017,7 +846,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1030,28 +859,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1075,20 +889,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -1099,158 +903,140 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class VoidLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::CreditBlock) } - def credit_block - end + attr_reader :credit_block sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::CreditBlock) - .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::CreditBlock) - end - def credit_block=(_) + params( + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end + attr_accessor :ending_balance - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig { returns(Float) } - def void_amount - end - - sig { params(_: Float).returns(Float) } - def void_amount=(_) - end + attr_accessor :void_amount sig { returns(T.nilable(String)) } - def void_reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def void_reason=(_) - end + attr_accessor :void_reason sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -1291,7 +1077,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1306,28 +1092,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1351,20 +1122,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -1375,168 +1136,139 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::EntryStatus) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol] + ) + end + def values + end + end end end class VoidInitiatedLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::CreditBlock) } - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ) ) - .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::CreditBlock) - end - def credit_block=(_) + .void end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end + attr_accessor :ending_balance - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Time) } - def new_block_expiry_date - end - - sig { params(_: Time).returns(Time) } - def new_block_expiry_date=(_) - end + attr_accessor :new_block_expiry_date sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig { returns(Float) } - def void_amount - end - - sig { params(_: Float).returns(Float) } - def void_amount=(_) - end + attr_accessor :void_amount sig { returns(T.nilable(String)) } - def void_reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def void_reason=(_) - end + attr_accessor :void_reason sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], new_block_expiry_date: Time, @@ -1579,7 +1311,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1595,28 +1327,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1640,20 +1357,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -1664,142 +1371,134 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class AmendmentLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::CreditBlock) } - def credit_block - end + attr_reader :credit_block sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::CreditBlock) - .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::CreditBlock) - end - def credit_block=(_) + params( + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end + attr_accessor :ending_balance - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -1836,7 +1535,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1849,28 +1548,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1894,20 +1578,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -1918,13 +1592,55 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end + end + end + + class << self + sig do + override + .returns( + [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 variants end end 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 ac07623f..40188710 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 @@ -9,88 +9,41 @@ module Orb include Orb::RequestParameters sig { returns(T.nilable(Time)) } - def created_at_gt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gt=(_) - end + attr_accessor :created_at_gt sig { returns(T.nilable(Time)) } - def created_at_gte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gte=(_) - end + attr_accessor :created_at_gte sig { returns(T.nilable(Time)) } - def created_at_lt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lt=(_) - end + attr_accessor :created_at_lt sig { returns(T.nilable(Time)) } - def created_at_lte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lte=(_) - end + attr_accessor :created_at_lte # The ledger currency or custom pricing unit to use. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end + attr_accessor :cursor - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + sig { returns(T.nilable(Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::OrSymbol)) } + attr_accessor :entry_status - sig { returns(T.nilable(Symbol)) } - def entry_status - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def entry_status=(_) - end - - sig { returns(T.nilable(Symbol)) } - def entry_type - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def entry_type=(_) - end + sig { returns(T.nilable(Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::OrSymbol)) } + attr_accessor :entry_type # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params( @@ -100,11 +53,11 @@ module Orb created_at_lte: T.nilable(Time), currency: T.nilable(String), cursor: T.nilable(String), - entry_status: T.nilable(Symbol), - entry_type: T.nilable(Symbol), + entry_status: T.nilable(Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::OrSymbol), + entry_type: T.nilable(Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::OrSymbol), limit: Integer, minimum_amount: T.nilable(String), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -133,8 +86,8 @@ module Orb created_at_lte: T.nilable(Time), currency: T.nilable(String), cursor: T.nilable(String), - entry_status: T.nilable(Symbol), - entry_type: T.nilable(Symbol), + entry_status: T.nilable(Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::OrSymbol), + entry_type: T.nilable(Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::OrSymbol), limit: Integer, minimum_amount: T.nilable(String), request_options: Orb::RequestOptions @@ -144,27 +97,74 @@ module Orb def to_hash end - class EntryStatus < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - COMMITTED = :committed - PENDING = :pending - end - - class EntryType < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::TaggedSymbol) } - INCREMENT = :increment - DECREMENT = :decrement - EXPIRATION_CHANGE = :expiration_change - CREDIT_BLOCK_EXPIRY = :credit_block_expiry - VOID = :void - VOID_INITIATED = :void_initiated - AMENDMENT = :amendment + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::TaggedSymbol + ) + PENDING = + T.let(:pending, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::TaggedSymbol) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::TaggedSymbol] + ) + end + def values + end + end + end + + module EntryType + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol) } + + INCREMENT = + T.let(:increment, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol) + DECREMENT = + T.let(:decrement, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol) + EXPIRATION_CHANGE = + T.let( + :expiration_change, + Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol + ) + CREDIT_BLOCK_EXPIRY = + T.let( + :credit_block_expiry, + Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol + ) + VOID = + T.let(:void, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol) + VOID_INITIATED = + T.let( + :void_initiated, + Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol + ) + AMENDMENT = + T.let(:amendment, Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::TaggedSymbol]) + end + def values + end + end end end 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 a457ebfa..a8fbf69b 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 @@ -6,157 +6,115 @@ module Orb module Credits # The [Credit Ledger Entry resource](/product-catalog/prepurchase) models prepaid # credits within Orb. - class LedgerListByExternalIDResponse < Orb::Union - abstract! - - Variants = type_template(:out) do - { - fixed: 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 + module LedgerListByExternalIDResponse + extend Orb::Union + + Variants = + type_template(:out) do + { + fixed: 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 class IncrementLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end + attr_accessor :ending_balance - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -193,7 +151,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -206,28 +164,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -251,20 +194,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -275,174 +208,147 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class DecrementLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end + attr_accessor :ending_balance - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig { returns(T.nilable(String)) } - def event_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def event_id=(_) - end + attr_accessor :event_id sig { returns(T.nilable(String)) } - def invoice_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_id=(_) - end + attr_accessor :invoice_id sig { returns(T.nilable(String)) } - def price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def price_id=(_) - end + attr_accessor :price_id sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -485,7 +391,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -501,28 +407,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -546,20 +437,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -570,166 +451,145 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) + end - COMMITTED = :committed - PENDING = :pending + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class ExpirationChangeLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Customer ) end - def customer - end + attr_reader :customer sig do params( - _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Customer - ) - .returns( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Customer + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, + Orb::Util::AnyHash ) + ) + .void end - def customer=(_) - end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end + attr_accessor :ending_balance - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Time)) } - def new_block_expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def new_block_expiry_date=(_) - end + attr_accessor :new_block_expiry_date sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], new_block_expiry_date: T.nilable(Time), @@ -768,7 +628,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -782,28 +642,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -827,20 +672,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -851,158 +686,142 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class CreditBlockExpiryLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer ) end - def customer - end + attr_reader :customer sig do params( - _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer - ) - .returns( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, + Orb::Util::AnyHash ) + ) + .void end - def customer=(_) - end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end + attr_accessor :ending_balance - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -1039,7 +858,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1052,28 +871,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1097,20 +901,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -1121,158 +915,140 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class VoidLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::CreditBlock) } - def credit_block - end + attr_reader :credit_block sig do - params(_: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::CreditBlock) - .returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::CreditBlock) - end - def credit_block=(_) + params( + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end + attr_accessor :ending_balance - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig { returns(Float) } - def void_amount - end - - sig { params(_: Float).returns(Float) } - def void_amount=(_) - end + attr_accessor :void_amount sig { returns(T.nilable(String)) } - def void_reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def void_reason=(_) - end + attr_accessor :void_reason sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -1313,7 +1089,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1328,28 +1104,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1373,20 +1134,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -1397,182 +1148,151 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class VoidInitiatedLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Customer ) end - def customer - end + attr_reader :customer sig do params( - _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Customer - ) - .returns( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Customer + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, + Orb::Util::AnyHash ) + ) + .void end - def customer=(_) - end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end + attr_accessor :ending_balance - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Time) } - def new_block_expiry_date - end - - sig { params(_: Time).returns(Time) } - def new_block_expiry_date=(_) - end + attr_accessor :new_block_expiry_date sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig { returns(Float) } - def void_amount - end - - sig { params(_: Float).returns(Float) } - def void_amount=(_) - end + attr_accessor :void_amount sig { returns(T.nilable(String)) } - def void_reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def void_reason=(_) - end + attr_accessor :void_reason sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], new_block_expiry_date: Time, @@ -1615,7 +1335,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1631,28 +1351,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1676,20 +1381,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -1700,150 +1395,138 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) + end - COMMITTED = :committed - PENDING = :pending + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class AmendmentLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig do returns( Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::CreditBlock ) end - def credit_block - end + attr_reader :credit_block sig do params( - _: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::CreditBlock - ) - .returns( - Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::CreditBlock + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::CreditBlock, + Orb::Util::AnyHash ) + ) + .void end - def credit_block=(_) - end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end + attr_accessor :ending_balance - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -1880,7 +1563,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1893,28 +1576,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1938,20 +1606,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -1962,13 +1620,55 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end + end + end + + class << self + sig do + override + .returns( + [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 variants end end 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 23324eb6..a5a6b95d 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_list_params.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_list_params.rbi @@ -9,88 +9,41 @@ module Orb include Orb::RequestParameters sig { returns(T.nilable(Time)) } - def created_at_gt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gt=(_) - end + attr_accessor :created_at_gt sig { returns(T.nilable(Time)) } - def created_at_gte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gte=(_) - end + attr_accessor :created_at_gte sig { returns(T.nilable(Time)) } - def created_at_lt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lt=(_) - end + attr_accessor :created_at_lt sig { returns(T.nilable(Time)) } - def created_at_lte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lte=(_) - end + attr_accessor :created_at_lte # The ledger currency or custom pricing unit to use. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end + attr_accessor :cursor - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + sig { returns(T.nilable(Orb::Models::Customers::Credits::LedgerListParams::EntryStatus::OrSymbol)) } + attr_accessor :entry_status - sig { returns(T.nilable(Symbol)) } - def entry_status - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def entry_status=(_) - end - - sig { returns(T.nilable(Symbol)) } - def entry_type - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def entry_type=(_) - end + sig { returns(T.nilable(Orb::Models::Customers::Credits::LedgerListParams::EntryType::OrSymbol)) } + attr_accessor :entry_type # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params( @@ -100,11 +53,11 @@ module Orb created_at_lte: T.nilable(Time), currency: T.nilable(String), cursor: T.nilable(String), - entry_status: T.nilable(Symbol), - entry_type: T.nilable(Symbol), + entry_status: T.nilable(Orb::Models::Customers::Credits::LedgerListParams::EntryStatus::OrSymbol), + entry_type: T.nilable(Orb::Models::Customers::Credits::LedgerListParams::EntryType::OrSymbol), limit: Integer, minimum_amount: T.nilable(String), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -133,8 +86,8 @@ module Orb created_at_lte: T.nilable(Time), currency: T.nilable(String), cursor: T.nilable(String), - entry_status: T.nilable(Symbol), - entry_type: T.nilable(Symbol), + entry_status: T.nilable(Orb::Models::Customers::Credits::LedgerListParams::EntryStatus::OrSymbol), + entry_type: T.nilable(Orb::Models::Customers::Credits::LedgerListParams::EntryType::OrSymbol), limit: Integer, minimum_amount: T.nilable(String), request_options: Orb::RequestOptions @@ -144,27 +97,49 @@ module Orb def to_hash end - class EntryStatus < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - COMMITTED = :committed - PENDING = :pending - end - - class EntryType < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - INCREMENT = :increment - DECREMENT = :decrement - EXPIRATION_CHANGE = :expiration_change - CREDIT_BLOCK_EXPIRY = :credit_block_expiry - VOID = :void - VOID_INITIATED = :void_initiated - AMENDMENT = :amendment + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListParams::EntryStatus) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::Credits::LedgerListParams::EntryStatus::TaggedSymbol) } + + COMMITTED = + T.let(:committed, Orb::Models::Customers::Credits::LedgerListParams::EntryStatus::TaggedSymbol) + PENDING = T.let(:pending, Orb::Models::Customers::Credits::LedgerListParams::EntryStatus::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Customers::Credits::LedgerListParams::EntryStatus::TaggedSymbol]) } + def values + end + end + end + + module EntryType + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListParams::EntryType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol) } + + INCREMENT = T.let(:increment, Orb::Models::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol) + DECREMENT = T.let(:decrement, Orb::Models::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol) + EXPIRATION_CHANGE = + T.let(:expiration_change, Orb::Models::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol) + CREDIT_BLOCK_EXPIRY = + T.let(:credit_block_expiry, Orb::Models::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol) + VOID = T.let(:void, Orb::Models::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol) + VOID_INITIATED = + T.let(:void_initiated, Orb::Models::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol) + AMENDMENT = T.let(:amendment, Orb::Models::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Customers::Credits::LedgerListParams::EntryType::TaggedSymbol]) } + def values + end + end end end 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 45efd389..988c9c2f 100644 --- a/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi +++ b/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi @@ -6,149 +6,111 @@ module Orb module Credits # The [Credit Ledger Entry resource](/product-catalog/prepurchase) models prepaid # credits within Orb. - class LedgerListResponse < Orb::Union - abstract! - - Variants = type_template(:out) do - { - fixed: 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 + module LedgerListResponse + extend Orb::Union + + Variants = + type_template(:out) do + { + fixed: 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 class IncrementLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock) } - def credit_block - end + attr_reader :credit_block sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock) - end - def credit_block=(_) + params( + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end + attr_accessor :ending_balance - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -185,7 +147,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -198,28 +160,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -243,20 +190,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -267,166 +204,139 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::EntryStatus::TaggedSymbol] + ) + end + def values + end + end end end class DecrementLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock) } - def credit_block - end + attr_reader :credit_block sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock) - end - def credit_block=(_) + params( + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end + attr_accessor :ending_balance - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig { returns(T.nilable(String)) } - def event_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def event_id=(_) - end + attr_accessor :event_id sig { returns(T.nilable(String)) } - def invoice_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_id=(_) - end + attr_accessor :invoice_id sig { returns(T.nilable(String)) } - def price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def price_id=(_) - end + attr_accessor :price_id sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -469,7 +379,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -485,28 +395,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -530,20 +425,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -554,150 +439,133 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) + end - COMMITTED = :committed - PENDING = :pending + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::EntryStatus::TaggedSymbol] + ) + end + def values + end + end end end class ExpirationChangeLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock) } - def credit_block - end + attr_reader :credit_block sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock) - end - def credit_block=(_) + params( + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end + attr_accessor :ending_balance - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Time)) } - def new_block_expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def new_block_expiry_date=(_) - end + attr_accessor :new_block_expiry_date sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], new_block_expiry_date: T.nilable(Time), @@ -736,7 +604,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -750,28 +618,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -795,20 +648,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -819,142 +662,134 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) + end - COMMITTED = :committed - PENDING = :pending + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class CreditBlockExpiryLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock) } - def credit_block - end + attr_reader :credit_block sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock) - end - def credit_block=(_) + params( + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end + attr_accessor :ending_balance - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -991,7 +826,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1004,28 +839,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1049,20 +869,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -1073,158 +883,130 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::EntryStatus::TaggedSymbol + ] + ) + end + def values + end + end end end class VoidLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock) } - def credit_block - end + attr_reader :credit_block sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock) - end - def credit_block=(_) + params( + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any(Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer, Orb::Util::AnyHash) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end + attr_accessor :ending_balance - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end + sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol) } + attr_accessor :entry_status sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) - end - - sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig { returns(Float) } - def void_amount - end - - sig { params(_: Float).returns(Float) } - def void_amount=(_) - end + attr_accessor :void_amount sig { returns(T.nilable(String)) } - def void_reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def void_reason=(_) - end + attr_accessor :void_reason sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer, + customer: T.any(Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer, Orb::Util::AnyHash), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -1265,7 +1047,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1280,28 +1062,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1325,20 +1092,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -1349,166 +1106,139 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) + end + + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::EntryStatus::TaggedSymbol] + ) + end + def values + end + end end end class VoidInitiatedLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock) } - def credit_block - end + attr_reader :credit_block sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock) - end - def credit_block=(_) + params( + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end + attr_accessor :ending_balance - sig { returns(Symbol) } - def entry_status - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Time) } - def new_block_expiry_date - end - - sig { params(_: Time).returns(Time) } - def new_block_expiry_date=(_) - end + attr_accessor :new_block_expiry_date sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig { returns(Float) } - def void_amount - end - - sig { params(_: Float).returns(Float) } - def void_amount=(_) - end + attr_accessor :void_amount sig { returns(T.nilable(String)) } - def void_reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def void_reason=(_) - end + attr_accessor :void_reason sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], new_block_expiry_date: Time, @@ -1551,7 +1281,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1567,28 +1297,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1612,20 +1327,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -1636,142 +1341,130 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::EntryStatus::TaggedSymbol] + ) + end + def values + end + end end end class AmendmentLedgerEntry < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Float) } - def amount - end - - sig { params(_: Float).returns(Float) } - def amount=(_) - end + attr_accessor :amount sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock) } - def credit_block - end + attr_reader :credit_block sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock) - end - def credit_block=(_) + params( + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :credit_block sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer) } - def customer - end + attr_reader :customer sig do - params(_: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer) - .returns(Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer) - end - def customer=(_) + params( + customer: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :customer sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig { returns(Float) } - def ending_balance - end - - sig { params(_: Float).returns(Float) } - def ending_balance=(_) - end - - sig { returns(Symbol) } - def entry_status - end + attr_accessor :ending_balance - sig { params(_: Symbol).returns(Symbol) } - def entry_status=(_) + sig do + returns( + Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) end + attr_accessor :entry_status sig { returns(Symbol) } - def entry_type - end - - sig { params(_: Symbol).returns(Symbol) } - def entry_type=(_) - end + attr_accessor :entry_type sig { returns(Integer) } - def ledger_sequence_number - end - - sig { params(_: Integer).returns(Integer) } - def ledger_sequence_number=(_) - end + attr_accessor :ledger_sequence_number # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(Float) } - def starting_balance - end - - sig { params(_: Float).returns(Float) } - def starting_balance=(_) - end + attr_accessor :starting_balance sig do params( id: String, amount: Float, created_at: Time, - credit_block: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock, + credit_block: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock, + Orb::Util::AnyHash + ), currency: String, - customer: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer, + customer: T.any( + Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer, + Orb::Util::AnyHash + ), description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus::OrSymbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], starting_balance: Float, @@ -1808,7 +1501,7 @@ module Orb customer: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer, description: T.nilable(String), ending_balance: Float, - entry_status: Symbol, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol, entry_type: Symbol, ledger_sequence_number: Integer, metadata: T::Hash[Symbol, String], @@ -1821,28 +1514,13 @@ module Orb class CreditBlock < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Time)) } - def expiry_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def expiry_date=(_) - end + attr_accessor :expiry_date sig { returns(T.nilable(String)) } - def per_unit_cost_basis - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis sig do params(id: String, expiry_date: T.nilable(Time), per_unit_cost_basis: T.nilable(String)) @@ -1866,20 +1544,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -1890,13 +1558,51 @@ module Orb end end - class EntryStatus < Orb::Enum - abstract! + module EntryStatus + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + COMMITTED = + T.let( + :committed, + Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) + PENDING = + T.let( + :pending, + Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol + ) - COMMITTED = :committed - PENDING = :pending + class << self + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::EntryStatus::TaggedSymbol] + ) + end + def values + end + end + end + end + + class << self + sig do + override + .returns( + [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 variants end end 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 29532e24..82d177c6 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 @@ -10,94 +10,63 @@ module Orb # The amount to increment when the threshold is reached. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The currency or custom pricing unit to use for this top-up. If this is a # real-world currency, it must match the customer's invoicing currency. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # Settings for invoices generated by triggered top-ups. sig { returns(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings) } - def invoice_settings - end + attr_reader :invoice_settings sig do - params(_: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings) - .returns(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings) - end - def invoice_settings=(_) + params( + invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, Orb::Util::AnyHash) + ) + .void end + attr_writer :invoice_settings # How much, in the customer's currency, to charge for each unit. sig { returns(String) } - def per_unit_cost_basis - end - - sig { params(_: String).returns(String) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis # The threshold at which to trigger the top-up. If the balance is at or below this # threshold, the top-up will be triggered. sig { returns(String) } - def threshold - end - - sig { params(_: String).returns(String) } - def threshold=(_) - end + attr_accessor :threshold # The date from which the top-up is active. If unspecified, the top-up is active # immediately. sig { returns(T.nilable(Time)) } - def active_from - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def active_from=(_) - end + attr_accessor :active_from # The number of days or months after which the top-up expires. If unspecified, it # does not expire. sig { returns(T.nilable(Integer)) } - def expires_after - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def expires_after=(_) - end + attr_accessor :expires_after # The unit of expires_after. - sig { returns(T.nilable(Symbol)) } - def expires_after_unit - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def expires_after_unit=(_) + sig do + returns( + T.nilable(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::OrSymbol) + ) end + attr_accessor :expires_after_unit sig do params( amount: String, currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, + invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, Orb::Util::AnyHash), per_unit_cost_basis: String, threshold: String, active_from: T.nilable(Time), expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::OrSymbol), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -125,7 +94,7 @@ module Orb threshold: String, active_from: T.nilable(Time), expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol), + expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::OrSymbol), request_options: Orb::RequestOptions } ) @@ -137,42 +106,25 @@ module Orb # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. sig { returns(T::Boolean) } - def auto_collection - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def auto_collection=(_) - end + attr_accessor :auto_collection # The net terms determines the difference between the invoice date and the issue # date for the invoice. If you intend the invoice to be due on issue, set this # to 0. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # An optional memo to display on the invoice. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo # If true, new credit blocks created by this top-up will require that the # corresponding invoice is paid before they can be drawn down from. sig { returns(T.nilable(T::Boolean)) } - def require_successful_payment - end + attr_reader :require_successful_payment - sig { params(_: T::Boolean).returns(T::Boolean) } - def require_successful_payment=(_) - end + sig { params(require_successful_payment: T::Boolean).void } + attr_writer :require_successful_payment # Settings for invoices generated by triggered top-ups. sig do @@ -203,13 +155,40 @@ module Orb end # The unit of expires_after. - class ExpiresAfterUnit < Orb::Enum - abstract! + module ExpiresAfterUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::TaggedSymbol] + ) + end + def values + end + end end end 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 208a3499..7f839ffc 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 @@ -6,92 +6,69 @@ module Orb module Credits class TopUpCreateByExternalIDResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The amount to increment when the threshold is reached. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The currency or custom pricing unit to use for this top-up. If this is a # real-world currency, it must match the customer's invoicing currency. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # Settings for invoices generated by triggered top-ups. sig { returns(Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings) } - def invoice_settings - end + attr_reader :invoice_settings sig do - params(_: Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings) - .returns(Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings) - end - def invoice_settings=(_) + params( + invoice_settings: T.any( + Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :invoice_settings # How much, in the customer's currency, to charge for each unit. sig { returns(String) } - def per_unit_cost_basis - end - - sig { params(_: String).returns(String) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis # The threshold at which to trigger the top-up. If the balance is at or below this # threshold, the top-up will be triggered. sig { returns(String) } - def threshold - end - - sig { params(_: String).returns(String) } - def threshold=(_) - end + attr_accessor :threshold # The number of days or months after which the top-up expires. If unspecified, it # does not expire. sig { returns(T.nilable(Integer)) } - def expires_after - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def expires_after=(_) - end + attr_accessor :expires_after # The unit of expires_after. - sig { returns(T.nilable(Symbol)) } - def expires_after_unit - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def expires_after_unit=(_) + sig do + returns( + T.nilable( + Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol + ) + ) end + attr_accessor :expires_after_unit sig do params( id: String, amount: String, currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings, + invoice_settings: T.any( + Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings, + Orb::Util::AnyHash + ), per_unit_cost_basis: String, threshold: String, expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol) + expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit::OrSymbol) ) .returns(T.attached_class) end @@ -118,7 +95,9 @@ module Orb per_unit_cost_basis: String, threshold: String, expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol) + expires_after_unit: T.nilable( + Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol + ) } ) end @@ -129,42 +108,25 @@ module Orb # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. sig { returns(T::Boolean) } - def auto_collection - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def auto_collection=(_) - end + attr_accessor :auto_collection # The net terms determines the difference between the invoice date and the issue # date for the invoice. If you intend the invoice to be due on issue, set this # to 0. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # An optional memo to display on the invoice. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo # If true, new credit blocks created by this top-up will require that the # corresponding invoice is paid before they can be drawn down from. sig { returns(T.nilable(T::Boolean)) } - def require_successful_payment - end + attr_reader :require_successful_payment - sig { params(_: T::Boolean).returns(T::Boolean) } - def require_successful_payment=(_) - end + sig { params(require_successful_payment: T::Boolean).void } + attr_writer :require_successful_payment # Settings for invoices generated by triggered top-ups. sig do @@ -195,13 +157,40 @@ module Orb end # The unit of expires_after. - class ExpiresAfterUnit < Orb::Enum - abstract! + module ExpiresAfterUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol] + ) + end + def values + end + end end end 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 697e019b..66f6704a 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 @@ -10,94 +10,59 @@ module Orb # The amount to increment when the threshold is reached. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The currency or custom pricing unit to use for this top-up. If this is a # real-world currency, it must match the customer's invoicing currency. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # Settings for invoices generated by triggered top-ups. sig { returns(Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings) } - def invoice_settings - end + attr_reader :invoice_settings sig do - params(_: Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings) - .returns(Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings) - end - def invoice_settings=(_) + params( + invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, Orb::Util::AnyHash) + ) + .void end + attr_writer :invoice_settings # How much, in the customer's currency, to charge for each unit. sig { returns(String) } - def per_unit_cost_basis - end - - sig { params(_: String).returns(String) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis # The threshold at which to trigger the top-up. If the balance is at or below this # threshold, the top-up will be triggered. sig { returns(String) } - def threshold - end - - sig { params(_: String).returns(String) } - def threshold=(_) - end + attr_accessor :threshold # The date from which the top-up is active. If unspecified, the top-up is active # immediately. sig { returns(T.nilable(Time)) } - def active_from - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def active_from=(_) - end + attr_accessor :active_from # The number of days or months after which the top-up expires. If unspecified, it # does not expire. sig { returns(T.nilable(Integer)) } - def expires_after - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def expires_after=(_) - end + attr_accessor :expires_after # The unit of expires_after. - sig { returns(T.nilable(Symbol)) } - def expires_after_unit - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def expires_after_unit=(_) - end + sig { returns(T.nilable(Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::OrSymbol)) } + attr_accessor :expires_after_unit sig do params( amount: String, currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, + invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, Orb::Util::AnyHash), per_unit_cost_basis: String, threshold: String, active_from: T.nilable(Time), expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::OrSymbol), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -125,7 +90,7 @@ module Orb threshold: String, active_from: T.nilable(Time), expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol), + expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::OrSymbol), request_options: Orb::RequestOptions } ) @@ -137,42 +102,25 @@ module Orb # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. sig { returns(T::Boolean) } - def auto_collection - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def auto_collection=(_) - end + attr_accessor :auto_collection # The net terms determines the difference between the invoice date and the issue # date for the invoice. If you intend the invoice to be due on issue, set this # to 0. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # An optional memo to display on the invoice. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo # If true, new credit blocks created by this top-up will require that the # corresponding invoice is paid before they can be drawn down from. sig { returns(T.nilable(T::Boolean)) } - def require_successful_payment - end + attr_reader :require_successful_payment - sig { params(_: T::Boolean).returns(T::Boolean) } - def require_successful_payment=(_) - end + sig { params(require_successful_payment: T::Boolean).void } + attr_writer :require_successful_payment # Settings for invoices generated by triggered top-ups. sig do @@ -203,13 +151,25 @@ module Orb end # The unit of expires_after. - class ExpiresAfterUnit < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - DAY = :day - MONTH = :month + module ExpiresAfterUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::TaggedSymbol) } + + DAY = T.let(:day, Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::TaggedSymbol) + MONTH = T.let(:month, Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::TaggedSymbol]) + end + def values + end + end end end 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 7e9ad45a..299420c7 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 @@ -6,92 +6,57 @@ module Orb module Credits class TopUpCreateResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The amount to increment when the threshold is reached. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The currency or custom pricing unit to use for this top-up. If this is a # real-world currency, it must match the customer's invoicing currency. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # Settings for invoices generated by triggered top-ups. sig { returns(Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings) } - def invoice_settings - end + attr_reader :invoice_settings sig do - params(_: Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings) - .returns(Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings) - end - def invoice_settings=(_) + params( + invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings, Orb::Util::AnyHash) + ) + .void end + attr_writer :invoice_settings # How much, in the customer's currency, to charge for each unit. sig { returns(String) } - def per_unit_cost_basis - end - - sig { params(_: String).returns(String) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis # The threshold at which to trigger the top-up. If the balance is at or below this # threshold, the top-up will be triggered. sig { returns(String) } - def threshold - end - - sig { params(_: String).returns(String) } - def threshold=(_) - end + attr_accessor :threshold # The number of days or months after which the top-up expires. If unspecified, it # does not expire. sig { returns(T.nilable(Integer)) } - def expires_after - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def expires_after=(_) - end + attr_accessor :expires_after # The unit of expires_after. - sig { returns(T.nilable(Symbol)) } - def expires_after_unit - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def expires_after_unit=(_) - end + sig { returns(T.nilable(Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit::TaggedSymbol)) } + attr_accessor :expires_after_unit sig do params( id: String, amount: String, currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings, + invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings, Orb::Util::AnyHash), per_unit_cost_basis: String, threshold: String, expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol) + expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit::OrSymbol) ) .returns(T.attached_class) end @@ -118,7 +83,7 @@ module Orb per_unit_cost_basis: String, threshold: String, expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol) + expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit::TaggedSymbol) } ) end @@ -129,42 +94,25 @@ module Orb # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. sig { returns(T::Boolean) } - def auto_collection - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def auto_collection=(_) - end + attr_accessor :auto_collection # The net terms determines the difference between the invoice date and the issue # date for the invoice. If you intend the invoice to be due on issue, set this # to 0. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # An optional memo to display on the invoice. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo # If true, new credit blocks created by this top-up will require that the # corresponding invoice is paid before they can be drawn down from. sig { returns(T.nilable(T::Boolean)) } - def require_successful_payment - end + attr_reader :require_successful_payment - sig { params(_: T::Boolean).returns(T::Boolean) } - def require_successful_payment=(_) - end + sig { params(require_successful_payment: T::Boolean).void } + attr_writer :require_successful_payment # Settings for invoices generated by triggered top-ups. sig do @@ -195,13 +143,26 @@ module Orb end # The unit of expires_after. - class ExpiresAfterUnit < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - DAY = :day - MONTH = :month + module ExpiresAfterUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit::TaggedSymbol) } + + DAY = T.let(:day, Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::Customers::Credits::TopUpCreateResponse::ExpiresAfterUnit::TaggedSymbol]) + end + def values + end + end end end 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 e9d3992b..f7affdcf 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 @@ -9,17 +9,12 @@ module Orb include Orb::RequestParameters sig { returns(String) } - def external_customer_id - end - - sig { params(_: String).returns(String) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig do params( external_customer_id: String, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/customers/credits/top_up_delete_params.rbi b/rbi/lib/orb/models/customers/credits/top_up_delete_params.rbi index aef729a6..f30cf531 100644 --- a/rbi/lib/orb/models/customers/credits/top_up_delete_params.rbi +++ b/rbi/lib/orb/models/customers/credits/top_up_delete_params.rbi @@ -9,21 +9,10 @@ module Orb include Orb::RequestParameters sig { returns(String) } - def customer_id - end - - sig { params(_: String).returns(String) } - def customer_id=(_) - end + attr_accessor :customer_id sig do - params( - customer_id: String, - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ) + params(customer_id: String, request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)) .returns(T.attached_class) end def self.new(customer_id:, request_options: {}) 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 cf7e12fc..cc63968f 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 @@ -11,27 +11,20 @@ module Orb # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig do params( cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) 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 3d552fb5..3e04b616 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 @@ -6,92 +6,61 @@ module Orb module Credits class TopUpListByExternalIDResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The amount to increment when the threshold is reached. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The currency or custom pricing unit to use for this top-up. If this is a # real-world currency, it must match the customer's invoicing currency. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # Settings for invoices generated by triggered top-ups. sig { returns(Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings) } - def invoice_settings - end + attr_reader :invoice_settings sig do - params(_: Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings) - .returns(Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings) - end - def invoice_settings=(_) + params( + invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings, Orb::Util::AnyHash) + ) + .void end + attr_writer :invoice_settings # How much, in the customer's currency, to charge for each unit. sig { returns(String) } - def per_unit_cost_basis - end - - sig { params(_: String).returns(String) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis # The threshold at which to trigger the top-up. If the balance is at or below this # threshold, the top-up will be triggered. sig { returns(String) } - def threshold - end - - sig { params(_: String).returns(String) } - def threshold=(_) - end + attr_accessor :threshold # The number of days or months after which the top-up expires. If unspecified, it # does not expire. sig { returns(T.nilable(Integer)) } - def expires_after - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def expires_after=(_) - end + attr_accessor :expires_after # The unit of expires_after. - sig { returns(T.nilable(Symbol)) } - def expires_after_unit - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def expires_after_unit=(_) + sig do + returns( + T.nilable(Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol) + ) end + attr_accessor :expires_after_unit sig do params( id: String, amount: String, currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings, + invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings, Orb::Util::AnyHash), per_unit_cost_basis: String, threshold: String, expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol) + expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit::OrSymbol) ) .returns(T.attached_class) end @@ -118,7 +87,7 @@ module Orb per_unit_cost_basis: String, threshold: String, expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol) + expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol) } ) end @@ -129,42 +98,25 @@ module Orb # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. sig { returns(T::Boolean) } - def auto_collection - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def auto_collection=(_) - end + attr_accessor :auto_collection # The net terms determines the difference between the invoice date and the issue # date for the invoice. If you intend the invoice to be due on issue, set this # to 0. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # An optional memo to display on the invoice. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo # If true, new credit blocks created by this top-up will require that the # corresponding invoice is paid before they can be drawn down from. sig { returns(T.nilable(T::Boolean)) } - def require_successful_payment - end + attr_reader :require_successful_payment - sig { params(_: T::Boolean).returns(T::Boolean) } - def require_successful_payment=(_) - end + sig { params(require_successful_payment: T::Boolean).void } + attr_writer :require_successful_payment # Settings for invoices generated by triggered top-ups. sig do @@ -195,13 +147,40 @@ module Orb end # The unit of expires_after. - class ExpiresAfterUnit < Orb::Enum - abstract! + module ExpiresAfterUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::ExpiresAfterUnit::TaggedSymbol] + ) + end + def values + end + end end end 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 45c13da8..7320609d 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 @@ -11,27 +11,20 @@ module Orb # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig do params( cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) 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 f0dc7e3a..d9077ae2 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 @@ -6,92 +6,57 @@ module Orb module Credits class TopUpListResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The amount to increment when the threshold is reached. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The currency or custom pricing unit to use for this top-up. If this is a # real-world currency, it must match the customer's invoicing currency. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # Settings for invoices generated by triggered top-ups. sig { returns(Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings) } - def invoice_settings - end + attr_reader :invoice_settings sig do - params(_: Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings) - .returns(Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings) - end - def invoice_settings=(_) + params( + invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings, Orb::Util::AnyHash) + ) + .void end + attr_writer :invoice_settings # How much, in the customer's currency, to charge for each unit. sig { returns(String) } - def per_unit_cost_basis - end - - sig { params(_: String).returns(String) } - def per_unit_cost_basis=(_) - end + attr_accessor :per_unit_cost_basis # The threshold at which to trigger the top-up. If the balance is at or below this # threshold, the top-up will be triggered. sig { returns(String) } - def threshold - end - - sig { params(_: String).returns(String) } - def threshold=(_) - end + attr_accessor :threshold # The number of days or months after which the top-up expires. If unspecified, it # does not expire. sig { returns(T.nilable(Integer)) } - def expires_after - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def expires_after=(_) - end + attr_accessor :expires_after # The unit of expires_after. - sig { returns(T.nilable(Symbol)) } - def expires_after_unit - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def expires_after_unit=(_) - end + sig { returns(T.nilable(Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit::TaggedSymbol)) } + attr_accessor :expires_after_unit sig do params( id: String, amount: String, currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings, + invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings, Orb::Util::AnyHash), per_unit_cost_basis: String, threshold: String, expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol) + expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit::OrSymbol) ) .returns(T.attached_class) end @@ -118,7 +83,7 @@ module Orb per_unit_cost_basis: String, threshold: String, expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol) + expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit::TaggedSymbol) } ) end @@ -129,42 +94,25 @@ module Orb # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. sig { returns(T::Boolean) } - def auto_collection - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def auto_collection=(_) - end + attr_accessor :auto_collection # The net terms determines the difference between the invoice date and the issue # date for the invoice. If you intend the invoice to be due on issue, set this # to 0. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # An optional memo to display on the invoice. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo # If true, new credit blocks created by this top-up will require that the # corresponding invoice is paid before they can be drawn down from. sig { returns(T.nilable(T::Boolean)) } - def require_successful_payment - end + attr_reader :require_successful_payment - sig { params(_: T::Boolean).returns(T::Boolean) } - def require_successful_payment=(_) - end + sig { params(require_successful_payment: T::Boolean).void } + attr_writer :require_successful_payment # Settings for invoices generated by triggered top-ups. sig do @@ -195,13 +143,25 @@ module Orb end # The unit of expires_after. - class ExpiresAfterUnit < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - DAY = :day - MONTH = :month + module ExpiresAfterUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit::TaggedSymbol) } + + DAY = T.let(:day, Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit::TaggedSymbol) + MONTH = T.let(:month, Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::Customers::Credits::TopUpListResponse::ExpiresAfterUnit::TaggedSymbol]) + end + def values + end + end end end end diff --git a/rbi/lib/orb/models/dimensional_price_group.rbi b/rbi/lib/orb/models/dimensional_price_group.rbi index aaf63f54..0af6e5c2 100644 --- a/rbi/lib/orb/models/dimensional_price_group.rbi +++ b/rbi/lib/orb/models/dimensional_price_group.rbi @@ -4,62 +4,32 @@ module Orb module Models class DimensionalPriceGroup < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The billable metric associated with this dimensional price group. All prices # associated with this dimensional price group will be computed using this # billable metric. sig { returns(String) } - def billable_metric_id - end - - sig { params(_: String).returns(String) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # The dimensions that this dimensional price group is defined over sig { returns(T::Array[String]) } - def dimensions - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimensions=(_) - end + attr_accessor :dimensions # An alias for the dimensional price group sig { returns(T.nilable(String)) } - def external_dimensional_price_group_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_dimensional_price_group_id=(_) - end + attr_accessor :external_dimensional_price_group_id # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata # The name of the dimensional price group sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # A dimensional price group is used to partition the result of a billable metric # by a set of dimensions. Prices in a price group must specify the parition used 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 6b8d00d6..a89baeec 100644 --- a/rbi/lib/orb/models/dimensional_price_group_create_params.rbi +++ b/rbi/lib/orb/models/dimensional_price_group_create_params.rbi @@ -7,51 +7,23 @@ module Orb include Orb::RequestParameters sig { returns(String) } - def billable_metric_id - end - - sig { params(_: String).returns(String) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # The set of keys (in order) used to disambiguate prices in the group. sig { returns(T::Array[String]) } - def dimensions - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimensions=(_) - end + attr_accessor :dimensions sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(String)) } - def external_dimensional_price_group_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_dimensional_price_group_id=(_) - end + attr_accessor :external_dimensional_price_group_id # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( @@ -60,7 +32,7 @@ module Orb name: String, 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]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) 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 1316c4a0..5c7e0c63 100644 --- a/rbi/lib/orb/models/dimensional_price_group_list_params.rbi +++ b/rbi/lib/orb/models/dimensional_price_group_list_params.rbi @@ -9,27 +9,20 @@ module Orb # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig do params( cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/dimensional_price_group_retrieve_params.rbi b/rbi/lib/orb/models/dimensional_price_group_retrieve_params.rbi index 6b641d32..833f2fdb 100644 --- a/rbi/lib/orb/models/dimensional_price_group_retrieve_params.rbi +++ b/rbi/lib/orb/models/dimensional_price_group_retrieve_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/dimensional_price_groups.rbi b/rbi/lib/orb/models/dimensional_price_groups.rbi index 6afd9756..acd4a5a8 100644 --- a/rbi/lib/orb/models/dimensional_price_groups.rbi +++ b/rbi/lib/orb/models/dimensional_price_groups.rbi @@ -4,28 +4,18 @@ module Orb module Models class DimensionalPriceGroupsAPI < Orb::BaseModel sig { returns(T::Array[Orb::Models::DimensionalPriceGroup]) } - def data - end - - sig do - params(_: T::Array[Orb::Models::DimensionalPriceGroup]) - .returns(T::Array[Orb::Models::DimensionalPriceGroup]) - end - def data=(_) - end + attr_accessor :data sig { returns(Orb::Models::PaginationMetadata) } - def pagination_metadata - end + attr_reader :pagination_metadata - sig { params(_: Orb::Models::PaginationMetadata).returns(Orb::Models::PaginationMetadata) } - def pagination_metadata=(_) - end + sig { params(pagination_metadata: T.any(Orb::Models::PaginationMetadata, Orb::Util::AnyHash)).void } + attr_writer :pagination_metadata sig do params( - data: T::Array[Orb::Models::DimensionalPriceGroup], - pagination_metadata: Orb::Models::PaginationMetadata + data: T::Array[T.any(Orb::Models::DimensionalPriceGroup, Orb::Util::AnyHash)], + pagination_metadata: T.any(Orb::Models::PaginationMetadata, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi b/rbi/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi index ea1ad495..f46117db 100644 --- a/rbi/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +++ b/rbi/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi @@ -8,12 +8,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/discount.rbi b/rbi/lib/orb/models/discount.rbi index 5b83a0bc..1e28e806 100644 --- a/rbi/lib/orb/models/discount.rbi +++ b/rbi/lib/orb/models/discount.rbi @@ -2,18 +2,30 @@ module Orb module Models - class Discount < Orb::Union - abstract! + module Discount + extend Orb::Union - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - } + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::PercentageDiscount, + Orb::Models::TrialDiscount, + Orb::Models::UsageDiscount, + Orb::Models::AmountDiscount + ) + } + end + + class << self + sig do + override + .returns( + [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount] + ) + end + def variants + end end end end diff --git a/rbi/lib/orb/models/evaluate_price_group.rbi b/rbi/lib/orb/models/evaluate_price_group.rbi index bd86aabd..ea368b38 100644 --- a/rbi/lib/orb/models/evaluate_price_group.rbi +++ b/rbi/lib/orb/models/evaluate_price_group.rbi @@ -5,38 +5,15 @@ module Orb class EvaluatePriceGroup < Orb::BaseModel # The price's output for the group sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The values for the group in the order specified by `grouping_keys` sig { returns(T::Array[T.any(String, Float, T::Boolean)]) } - def grouping_values - end - - sig do - params( - _: T::Array[T.any( - String, - Float, - T::Boolean - )] - ).returns(T::Array[T.any(String, Float, T::Boolean)]) - end - def grouping_values=(_) - end + attr_accessor :grouping_values # The price's usage quantity for the group sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig do params(amount: String, grouping_values: T::Array[T.any(String, Float, T::Boolean)], quantity: Float) @@ -56,10 +33,16 @@ module Orb def to_hash end - class GroupingValue < Orb::Union - abstract! + module GroupingValue + extend Orb::Union Variants = type_template(:out) { {fixed: T.any(String, Float, T::Boolean)} } + + class << self + sig { override.returns([String, Float, T::Boolean]) } + def variants + end + end end end end diff --git a/rbi/lib/orb/models/event_deprecate_params.rbi b/rbi/lib/orb/models/event_deprecate_params.rbi index 225cdf89..8232fc49 100644 --- a/rbi/lib/orb/models/event_deprecate_params.rbi +++ b/rbi/lib/orb/models/event_deprecate_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/event_deprecate_response.rbi b/rbi/lib/orb/models/event_deprecate_response.rbi index 3ef5841a..42ce4acc 100644 --- a/rbi/lib/orb/models/event_deprecate_response.rbi +++ b/rbi/lib/orb/models/event_deprecate_response.rbi @@ -5,12 +5,7 @@ module Orb class EventDeprecateResponse < Orb::BaseModel # event_id of the deprecated event, if successfully updated sig { returns(String) } - def deprecated - end - - sig { params(_: String).returns(String) } - def deprecated=(_) - end + attr_accessor :deprecated sig { params(deprecated: String).returns(T.attached_class) } def self.new(deprecated:) diff --git a/rbi/lib/orb/models/event_ingest_params.rbi b/rbi/lib/orb/models/event_ingest_params.rbi index 3afd650f..7a198694 100644 --- a/rbi/lib/orb/models/event_ingest_params.rbi +++ b/rbi/lib/orb/models/event_ingest_params.rbi @@ -7,41 +7,26 @@ module Orb include Orb::RequestParameters sig { returns(T::Array[Orb::Models::EventIngestParams::Event]) } - def events - end - - sig do - params(_: T::Array[Orb::Models::EventIngestParams::Event]) - .returns(T::Array[Orb::Models::EventIngestParams::Event]) - end - def events=(_) - end + attr_accessor :events # If this ingestion request is part of a backfill, this parameter ties the # ingested events to the backfill sig { returns(T.nilable(String)) } - def backfill_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def backfill_id=(_) - end + attr_accessor :backfill_id # Flag to enable additional debug information in the endpoint response sig { returns(T.nilable(T::Boolean)) } - def debug - end + attr_reader :debug - sig { params(_: T::Boolean).returns(T::Boolean) } - def debug=(_) - end + sig { params(debug: T::Boolean).void } + attr_writer :debug sig do params( - events: T::Array[Orb::Models::EventIngestParams::Event], + events: T::Array[T.any(Orb::Models::EventIngestParams::Event, Orb::Util::AnyHash)], backfill_id: T.nilable(String), debug: T::Boolean, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -65,63 +50,33 @@ module Orb class Event < Orb::BaseModel # A name to meaningfully identify the action or event type. sig { returns(String) } - def event_name - end - - sig { params(_: String).returns(String) } - def event_name=(_) - end + attr_accessor :event_name # A unique value, generated by the client, that is used to de-duplicate events. # Exactly one event with a given idempotency key will be ingested, which allows # for safe request retries. sig { returns(String) } - def idempotency_key - end - - sig { params(_: String).returns(String) } - def idempotency_key=(_) - end + attr_accessor :idempotency_key # A dictionary of custom properties. Values in this dictionary must be numeric, # boolean, or strings. Nested dictionaries are disallowed. sig { returns(T.anything) } - def properties - end - - sig { params(_: T.anything).returns(T.anything) } - def properties=(_) - end + attr_accessor :properties # An ISO 8601 format date with no timezone offset (i.e. UTC). This should # represent the time that usage was recorded, and is particularly important to # attribute usage to a given billing period. sig { returns(Time) } - def timestamp - end - - sig { params(_: Time).returns(Time) } - def timestamp=(_) - end + attr_accessor :timestamp # The Orb Customer identifier sig { returns(T.nilable(String)) } - def customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end + attr_accessor :customer_id # An alias for the Orb customer, whose mapping is specified when creating the # customer sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig do params( diff --git a/rbi/lib/orb/models/event_ingest_response.rbi b/rbi/lib/orb/models/event_ingest_response.rbi index 5049aac3..57b71033 100644 --- a/rbi/lib/orb/models/event_ingest_response.rbi +++ b/rbi/lib/orb/models/event_ingest_response.rbi @@ -6,33 +6,20 @@ module Orb # Contains all failing validation events. In the case of a 200, this array will # always be empty. This field will always be present. sig { returns(T::Array[Orb::Models::EventIngestResponse::ValidationFailed]) } - def validation_failed - end - - sig do - params(_: T::Array[Orb::Models::EventIngestResponse::ValidationFailed]) - .returns(T::Array[Orb::Models::EventIngestResponse::ValidationFailed]) - end - def validation_failed=(_) - end + attr_accessor :validation_failed # Optional debug information (only present when debug=true is passed to the # endpoint). Contains ingested and duplicate event idempotency keys. sig { returns(T.nilable(Orb::Models::EventIngestResponse::Debug)) } - def debug - end + attr_reader :debug - sig do - params(_: T.nilable(Orb::Models::EventIngestResponse::Debug)) - .returns(T.nilable(Orb::Models::EventIngestResponse::Debug)) - end - def debug=(_) - end + sig { params(debug: T.nilable(T.any(Orb::Models::EventIngestResponse::Debug, Orb::Util::AnyHash))).void } + attr_writer :debug sig do params( - validation_failed: T::Array[Orb::Models::EventIngestResponse::ValidationFailed], - debug: T.nilable(Orb::Models::EventIngestResponse::Debug) + validation_failed: T::Array[T.any(Orb::Models::EventIngestResponse::ValidationFailed, Orb::Util::AnyHash)], + debug: T.nilable(T.any(Orb::Models::EventIngestResponse::Debug, Orb::Util::AnyHash)) ) .returns(T.attached_class) end @@ -54,22 +41,12 @@ module Orb class ValidationFailed < Orb::BaseModel # The passed idempotency_key corresponding to the validation_errors sig { returns(String) } - def idempotency_key - end - - sig { params(_: String).returns(String) } - def idempotency_key=(_) - end + attr_accessor :idempotency_key # An array of strings corresponding to validation failures for this # idempotency_key. sig { returns(T::Array[String]) } - def validation_errors - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def validation_errors=(_) - end + attr_accessor :validation_errors sig { params(idempotency_key: String, validation_errors: T::Array[String]).returns(T.attached_class) } def self.new(idempotency_key:, validation_errors:) @@ -82,20 +59,10 @@ module Orb class Debug < Orb::BaseModel sig { returns(T::Array[String]) } - def duplicate - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def duplicate=(_) - end + attr_accessor :duplicate sig { returns(T::Array[String]) } - def ingested - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def ingested=(_) - end + attr_accessor :ingested # Optional debug information (only present when debug=true is passed to the # endpoint). Contains ingested and duplicate event idempotency keys. diff --git a/rbi/lib/orb/models/event_search_params.rbi b/rbi/lib/orb/models/event_search_params.rbi index bd29a28c..3fa9c976 100644 --- a/rbi/lib/orb/models/event_search_params.rbi +++ b/rbi/lib/orb/models/event_search_params.rbi @@ -11,39 +11,24 @@ module Orb # events that have not been amended. Values in this array will be treated case # sensitively. sig { returns(T::Array[String]) } - def event_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def event_ids=(_) - end + attr_accessor :event_ids # The end of the timeframe, exclusive, in which to search events. If not # specified, the current time is used. sig { returns(T.nilable(Time)) } - def timeframe_end - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end # The start of the timeframe, inclusive, in which to search events. If not # specified, the one week ago is used. sig { returns(T.nilable(Time)) } - def timeframe_start - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start sig do params( event_ids: T::Array[String], timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/event_search_response.rbi b/rbi/lib/orb/models/event_search_response.rbi index 516c65df..f0d495df 100644 --- a/rbi/lib/orb/models/event_search_response.rbi +++ b/rbi/lib/orb/models/event_search_response.rbi @@ -4,17 +4,12 @@ module Orb module Models class EventSearchResponse < Orb::BaseModel sig { returns(T::Array[Orb::Models::EventSearchResponse::Data]) } - def data - end + attr_accessor :data sig do - params(_: T::Array[Orb::Models::EventSearchResponse::Data]) - .returns(T::Array[Orb::Models::EventSearchResponse::Data]) - end - def data=(_) + params(data: T::Array[T.any(Orb::Models::EventSearchResponse::Data, Orb::Util::AnyHash)]) + .returns(T.attached_class) end - - sig { params(data: T::Array[Orb::Models::EventSearchResponse::Data]).returns(T.attached_class) } def self.new(data:) end @@ -27,70 +22,35 @@ module Orb # Exactly one event with a given idempotency key will be ingested, which allows # for safe request retries. sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The Orb Customer identifier sig { returns(T.nilable(String)) } - def customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end + attr_accessor :customer_id # A boolean indicating whether the event is currently deprecated. sig { returns(T::Boolean) } - def deprecated - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def deprecated=(_) - end + attr_accessor :deprecated # A name to meaningfully identify the action or event type. sig { returns(String) } - def event_name - end - - sig { params(_: String).returns(String) } - def event_name=(_) - end + attr_accessor :event_name # An alias for the Orb customer, whose mapping is specified when creating the # customer sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id # A dictionary of custom properties. Values in this dictionary must be numeric, # boolean, or strings. Nested dictionaries are disallowed. sig { returns(T.anything) } - def properties - end - - sig { params(_: T.anything).returns(T.anything) } - def properties=(_) - end + attr_accessor :properties # An ISO 8601 format date with no timezone offset (i.e. UTC). This should # represent the time that usage was recorded, and is particularly important to # attribute usage to a given billing period. sig { returns(Time) } - def timestamp - end - - sig { params(_: Time).returns(Time) } - def timestamp=(_) - end + attr_accessor :timestamp # The [Event](/core-concepts#event) resource represents a usage event that has # been created for a customer. Events are the core of Orb's usage-based billing diff --git a/rbi/lib/orb/models/event_update_params.rbi b/rbi/lib/orb/models/event_update_params.rbi index c700c8c7..8a3cf0d7 100644 --- a/rbi/lib/orb/models/event_update_params.rbi +++ b/rbi/lib/orb/models/event_update_params.rbi @@ -8,52 +8,27 @@ module Orb # A name to meaningfully identify the action or event type. sig { returns(String) } - def event_name - end - - sig { params(_: String).returns(String) } - def event_name=(_) - end + attr_accessor :event_name # A dictionary of custom properties. Values in this dictionary must be numeric, # boolean, or strings. Nested dictionaries are disallowed. sig { returns(T.anything) } - def properties - end - - sig { params(_: T.anything).returns(T.anything) } - def properties=(_) - end + attr_accessor :properties # An ISO 8601 format date with no timezone offset (i.e. UTC). This should # represent the time that usage was recorded, and is particularly important to # attribute usage to a given billing period. sig { returns(Time) } - def timestamp - end - - sig { params(_: Time).returns(Time) } - def timestamp=(_) - end + attr_accessor :timestamp # The Orb Customer identifier sig { returns(T.nilable(String)) } - def customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end + attr_accessor :customer_id # An alias for the Orb customer, whose mapping is specified when creating the # customer sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig do params( @@ -62,7 +37,7 @@ module Orb timestamp: Time, customer_id: T.nilable(String), external_customer_id: T.nilable(String), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/event_update_response.rbi b/rbi/lib/orb/models/event_update_response.rbi index 89cf4f8d..fe28651e 100644 --- a/rbi/lib/orb/models/event_update_response.rbi +++ b/rbi/lib/orb/models/event_update_response.rbi @@ -5,12 +5,7 @@ module Orb class EventUpdateResponse < Orb::BaseModel # event_id of the amended event, if successfully ingested sig { returns(String) } - def amended - end - - sig { params(_: String).returns(String) } - def amended=(_) - end + attr_accessor :amended sig { params(amended: String).returns(T.attached_class) } def self.new(amended:) diff --git a/rbi/lib/orb/models/events/backfill_close_params.rbi b/rbi/lib/orb/models/events/backfill_close_params.rbi index 1468d57f..a868ef8a 100644 --- a/rbi/lib/orb/models/events/backfill_close_params.rbi +++ b/rbi/lib/orb/models/events/backfill_close_params.rbi @@ -8,12 +8,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/events/backfill_close_response.rbi b/rbi/lib/orb/models/events/backfill_close_response.rbi index 5a083259..d56429f8 100644 --- a/rbi/lib/orb/models/events/backfill_close_response.rbi +++ b/rbi/lib/orb/models/events/backfill_close_response.rbi @@ -5,105 +5,50 @@ module Orb module Events class BackfillCloseResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # If in the future, the time at which the backfill will automatically close. If in # the past, the time at which the backfill was closed. sig { returns(T.nilable(Time)) } - def close_time - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def close_time=(_) - end + attr_accessor :close_time sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The Orb-generated ID of the customer to which this backfill is scoped. If # `null`, this backfill is scoped to all customers. sig { returns(T.nilable(String)) } - def customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end + attr_accessor :customer_id # The number of events ingested in this backfill. sig { returns(Integer) } - def events_ingested - end - - sig { params(_: Integer).returns(Integer) } - def events_ingested=(_) - end + attr_accessor :events_ingested # If `true`, existing events in the backfill's timeframe will be replaced with the # newly ingested events associated with the backfill. If `false`, newly ingested # events will be added to the existing events. sig { returns(T::Boolean) } - def replace_existing_events - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def replace_existing_events=(_) - end + attr_accessor :replace_existing_events # The time at which this backfill was reverted. sig { returns(T.nilable(Time)) } - def reverted_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def reverted_at=(_) - end + attr_accessor :reverted_at # The status of the backfill. - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::Events::BackfillCloseResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Time) } - def timeframe_end - end - - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # A boolean # [computed property](/extensibility/advanced-metrics#computed-properties) used to # filter the set of events to deprecate sig { returns(T.nilable(String)) } - def deprecation_filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def deprecation_filter=(_) - end + attr_accessor :deprecation_filter # A backfill represents an update to historical usage data, adding or replacing # events in a timeframe. @@ -116,7 +61,7 @@ module Orb events_ingested: Integer, replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), - status: Symbol, + status: Orb::Models::Events::BackfillCloseResponse::Status::OrSymbol, timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) @@ -149,7 +94,7 @@ module Orb events_ingested: Integer, replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), - status: Symbol, + status: Orb::Models::Events::BackfillCloseResponse::Status::TaggedSymbol, timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) @@ -160,15 +105,23 @@ module Orb end # The status of the backfill. - class Status < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - PENDING = :pending - REFLECTED = :reflected - PENDING_REVERT = :pending_revert - REVERTED = :reverted + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Events::BackfillCloseResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Events::BackfillCloseResponse::Status::TaggedSymbol) } + + PENDING = T.let(:pending, Orb::Models::Events::BackfillCloseResponse::Status::TaggedSymbol) + REFLECTED = T.let(:reflected, Orb::Models::Events::BackfillCloseResponse::Status::TaggedSymbol) + PENDING_REVERT = T.let(:pending_revert, Orb::Models::Events::BackfillCloseResponse::Status::TaggedSymbol) + REVERTED = T.let(:reverted, Orb::Models::Events::BackfillCloseResponse::Status::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Events::BackfillCloseResponse::Status::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/events/backfill_create_params.rbi b/rbi/lib/orb/models/events/backfill_create_params.rbi index 2a82de2a..6d154e94 100644 --- a/rbi/lib/orb/models/events/backfill_create_params.rbi +++ b/rbi/lib/orb/models/events/backfill_create_params.rbi @@ -11,75 +11,43 @@ module Orb # default, Orb allows backfills up to 10 days in duration at a time. Reach out to # discuss extending this limit and your use case. sig { returns(Time) } - def timeframe_end - end - - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end # The (inclusive) start of the usage timeframe affected by this backfill. By # default, Orb allows backfills up to 10 days in duration at a time. Reach out to # discuss extending this limit and your use case. sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # The time at which no more events will be accepted for this backfill. The # backfill will automatically begin reflecting throughout Orb at the close time. # If not specified, it will default to 1 day after the creation of the backfill. sig { returns(T.nilable(Time)) } - def close_time - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def close_time=(_) - end + attr_accessor :close_time # The Orb-generated ID of the customer to which this backfill is scoped. Omitting # this field will scope the backfill to all customers. sig { returns(T.nilable(String)) } - def customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end + attr_accessor :customer_id # A boolean # [computed property](/extensibility/advanced-metrics#computed-properties) used to # filter the set of events to deprecate sig { returns(T.nilable(String)) } - def deprecation_filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def deprecation_filter=(_) - end + attr_accessor :deprecation_filter # The external customer ID of the customer to which this backfill is scoped. # Omitting this field will scope the backfill to all customers. sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id # If true, replaces all existing events in the timeframe with the newly ingested # events. If false, adds the newly ingested events to the existing events. sig { returns(T.nilable(T::Boolean)) } - def replace_existing_events - end + attr_reader :replace_existing_events - sig { params(_: T::Boolean).returns(T::Boolean) } - def replace_existing_events=(_) - end + sig { params(replace_existing_events: T::Boolean).void } + attr_writer :replace_existing_events sig do params( @@ -90,7 +58,7 @@ module Orb deprecation_filter: T.nilable(String), external_customer_id: T.nilable(String), replace_existing_events: T::Boolean, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/events/backfill_create_response.rbi b/rbi/lib/orb/models/events/backfill_create_response.rbi index aebfa1c7..9f5da1b8 100644 --- a/rbi/lib/orb/models/events/backfill_create_response.rbi +++ b/rbi/lib/orb/models/events/backfill_create_response.rbi @@ -5,105 +5,50 @@ module Orb module Events class BackfillCreateResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # If in the future, the time at which the backfill will automatically close. If in # the past, the time at which the backfill was closed. sig { returns(T.nilable(Time)) } - def close_time - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def close_time=(_) - end + attr_accessor :close_time sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The Orb-generated ID of the customer to which this backfill is scoped. If # `null`, this backfill is scoped to all customers. sig { returns(T.nilable(String)) } - def customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end + attr_accessor :customer_id # The number of events ingested in this backfill. sig { returns(Integer) } - def events_ingested - end - - sig { params(_: Integer).returns(Integer) } - def events_ingested=(_) - end + attr_accessor :events_ingested # If `true`, existing events in the backfill's timeframe will be replaced with the # newly ingested events associated with the backfill. If `false`, newly ingested # events will be added to the existing events. sig { returns(T::Boolean) } - def replace_existing_events - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def replace_existing_events=(_) - end + attr_accessor :replace_existing_events # The time at which this backfill was reverted. sig { returns(T.nilable(Time)) } - def reverted_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def reverted_at=(_) - end + attr_accessor :reverted_at # The status of the backfill. - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::Events::BackfillCreateResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Time) } - def timeframe_end - end - - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # A boolean # [computed property](/extensibility/advanced-metrics#computed-properties) used to # filter the set of events to deprecate sig { returns(T.nilable(String)) } - def deprecation_filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def deprecation_filter=(_) - end + attr_accessor :deprecation_filter # A backfill represents an update to historical usage data, adding or replacing # events in a timeframe. @@ -116,7 +61,7 @@ module Orb events_ingested: Integer, replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), - status: Symbol, + status: Orb::Models::Events::BackfillCreateResponse::Status::OrSymbol, timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) @@ -149,7 +94,7 @@ module Orb events_ingested: Integer, replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), - status: Symbol, + status: Orb::Models::Events::BackfillCreateResponse::Status::TaggedSymbol, timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) @@ -160,15 +105,24 @@ module Orb end # The status of the backfill. - class Status < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - PENDING = :pending - REFLECTED = :reflected - PENDING_REVERT = :pending_revert - REVERTED = :reverted + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Events::BackfillCreateResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Events::BackfillCreateResponse::Status::TaggedSymbol) } + + PENDING = T.let(:pending, Orb::Models::Events::BackfillCreateResponse::Status::TaggedSymbol) + REFLECTED = T.let(:reflected, Orb::Models::Events::BackfillCreateResponse::Status::TaggedSymbol) + PENDING_REVERT = + T.let(:pending_revert, Orb::Models::Events::BackfillCreateResponse::Status::TaggedSymbol) + REVERTED = T.let(:reverted, Orb::Models::Events::BackfillCreateResponse::Status::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Events::BackfillCreateResponse::Status::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/events/backfill_fetch_params.rbi b/rbi/lib/orb/models/events/backfill_fetch_params.rbi index 3948368c..dece14fe 100644 --- a/rbi/lib/orb/models/events/backfill_fetch_params.rbi +++ b/rbi/lib/orb/models/events/backfill_fetch_params.rbi @@ -8,12 +8,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/events/backfill_fetch_response.rbi b/rbi/lib/orb/models/events/backfill_fetch_response.rbi index 2d0dee78..5960fcfa 100644 --- a/rbi/lib/orb/models/events/backfill_fetch_response.rbi +++ b/rbi/lib/orb/models/events/backfill_fetch_response.rbi @@ -5,105 +5,50 @@ module Orb module Events class BackfillFetchResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # If in the future, the time at which the backfill will automatically close. If in # the past, the time at which the backfill was closed. sig { returns(T.nilable(Time)) } - def close_time - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def close_time=(_) - end + attr_accessor :close_time sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The Orb-generated ID of the customer to which this backfill is scoped. If # `null`, this backfill is scoped to all customers. sig { returns(T.nilable(String)) } - def customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end + attr_accessor :customer_id # The number of events ingested in this backfill. sig { returns(Integer) } - def events_ingested - end - - sig { params(_: Integer).returns(Integer) } - def events_ingested=(_) - end + attr_accessor :events_ingested # If `true`, existing events in the backfill's timeframe will be replaced with the # newly ingested events associated with the backfill. If `false`, newly ingested # events will be added to the existing events. sig { returns(T::Boolean) } - def replace_existing_events - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def replace_existing_events=(_) - end + attr_accessor :replace_existing_events # The time at which this backfill was reverted. sig { returns(T.nilable(Time)) } - def reverted_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def reverted_at=(_) - end + attr_accessor :reverted_at # The status of the backfill. - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::Events::BackfillFetchResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Time) } - def timeframe_end - end - - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # A boolean # [computed property](/extensibility/advanced-metrics#computed-properties) used to # filter the set of events to deprecate sig { returns(T.nilable(String)) } - def deprecation_filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def deprecation_filter=(_) - end + attr_accessor :deprecation_filter # A backfill represents an update to historical usage data, adding or replacing # events in a timeframe. @@ -116,7 +61,7 @@ module Orb events_ingested: Integer, replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), - status: Symbol, + status: Orb::Models::Events::BackfillFetchResponse::Status::OrSymbol, timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) @@ -149,7 +94,7 @@ module Orb events_ingested: Integer, replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), - status: Symbol, + status: Orb::Models::Events::BackfillFetchResponse::Status::TaggedSymbol, timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) @@ -160,15 +105,23 @@ module Orb end # The status of the backfill. - class Status < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - PENDING = :pending - REFLECTED = :reflected - PENDING_REVERT = :pending_revert - REVERTED = :reverted + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Events::BackfillFetchResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Events::BackfillFetchResponse::Status::TaggedSymbol) } + + PENDING = T.let(:pending, Orb::Models::Events::BackfillFetchResponse::Status::TaggedSymbol) + REFLECTED = T.let(:reflected, Orb::Models::Events::BackfillFetchResponse::Status::TaggedSymbol) + PENDING_REVERT = T.let(:pending_revert, Orb::Models::Events::BackfillFetchResponse::Status::TaggedSymbol) + REVERTED = T.let(:reverted, Orb::Models::Events::BackfillFetchResponse::Status::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Events::BackfillFetchResponse::Status::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/events/backfill_list_params.rbi b/rbi/lib/orb/models/events/backfill_list_params.rbi index 61b8d98c..18b02d34 100644 --- a/rbi/lib/orb/models/events/backfill_list_params.rbi +++ b/rbi/lib/orb/models/events/backfill_list_params.rbi @@ -10,27 +10,20 @@ module Orb # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig do params( cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/events/backfill_list_response.rbi b/rbi/lib/orb/models/events/backfill_list_response.rbi index e0fc1712..3e416d11 100644 --- a/rbi/lib/orb/models/events/backfill_list_response.rbi +++ b/rbi/lib/orb/models/events/backfill_list_response.rbi @@ -5,105 +5,50 @@ module Orb module Events class BackfillListResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # If in the future, the time at which the backfill will automatically close. If in # the past, the time at which the backfill was closed. sig { returns(T.nilable(Time)) } - def close_time - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def close_time=(_) - end + attr_accessor :close_time sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The Orb-generated ID of the customer to which this backfill is scoped. If # `null`, this backfill is scoped to all customers. sig { returns(T.nilable(String)) } - def customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end + attr_accessor :customer_id # The number of events ingested in this backfill. sig { returns(Integer) } - def events_ingested - end - - sig { params(_: Integer).returns(Integer) } - def events_ingested=(_) - end + attr_accessor :events_ingested # If `true`, existing events in the backfill's timeframe will be replaced with the # newly ingested events associated with the backfill. If `false`, newly ingested # events will be added to the existing events. sig { returns(T::Boolean) } - def replace_existing_events - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def replace_existing_events=(_) - end + attr_accessor :replace_existing_events # The time at which this backfill was reverted. sig { returns(T.nilable(Time)) } - def reverted_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def reverted_at=(_) - end + attr_accessor :reverted_at # The status of the backfill. - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::Events::BackfillListResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Time) } - def timeframe_end - end - - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # A boolean # [computed property](/extensibility/advanced-metrics#computed-properties) used to # filter the set of events to deprecate sig { returns(T.nilable(String)) } - def deprecation_filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def deprecation_filter=(_) - end + attr_accessor :deprecation_filter # A backfill represents an update to historical usage data, adding or replacing # events in a timeframe. @@ -116,7 +61,7 @@ module Orb events_ingested: Integer, replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), - status: Symbol, + status: Orb::Models::Events::BackfillListResponse::Status::OrSymbol, timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) @@ -149,7 +94,7 @@ module Orb events_ingested: Integer, replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), - status: Symbol, + status: Orb::Models::Events::BackfillListResponse::Status::TaggedSymbol, timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) @@ -160,15 +105,23 @@ module Orb end # The status of the backfill. - class Status < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - PENDING = :pending - REFLECTED = :reflected - PENDING_REVERT = :pending_revert - REVERTED = :reverted + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Events::BackfillListResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Events::BackfillListResponse::Status::TaggedSymbol) } + + PENDING = T.let(:pending, Orb::Models::Events::BackfillListResponse::Status::TaggedSymbol) + REFLECTED = T.let(:reflected, Orb::Models::Events::BackfillListResponse::Status::TaggedSymbol) + PENDING_REVERT = T.let(:pending_revert, Orb::Models::Events::BackfillListResponse::Status::TaggedSymbol) + REVERTED = T.let(:reverted, Orb::Models::Events::BackfillListResponse::Status::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Events::BackfillListResponse::Status::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/events/backfill_revert_params.rbi b/rbi/lib/orb/models/events/backfill_revert_params.rbi index bd219af5..4ef8e816 100644 --- a/rbi/lib/orb/models/events/backfill_revert_params.rbi +++ b/rbi/lib/orb/models/events/backfill_revert_params.rbi @@ -8,12 +8,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/events/backfill_revert_response.rbi b/rbi/lib/orb/models/events/backfill_revert_response.rbi index bce55589..5cfc9759 100644 --- a/rbi/lib/orb/models/events/backfill_revert_response.rbi +++ b/rbi/lib/orb/models/events/backfill_revert_response.rbi @@ -5,105 +5,50 @@ module Orb module Events class BackfillRevertResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # If in the future, the time at which the backfill will automatically close. If in # the past, the time at which the backfill was closed. sig { returns(T.nilable(Time)) } - def close_time - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def close_time=(_) - end + attr_accessor :close_time sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The Orb-generated ID of the customer to which this backfill is scoped. If # `null`, this backfill is scoped to all customers. sig { returns(T.nilable(String)) } - def customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end + attr_accessor :customer_id # The number of events ingested in this backfill. sig { returns(Integer) } - def events_ingested - end - - sig { params(_: Integer).returns(Integer) } - def events_ingested=(_) - end + attr_accessor :events_ingested # If `true`, existing events in the backfill's timeframe will be replaced with the # newly ingested events associated with the backfill. If `false`, newly ingested # events will be added to the existing events. sig { returns(T::Boolean) } - def replace_existing_events - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def replace_existing_events=(_) - end + attr_accessor :replace_existing_events # The time at which this backfill was reverted. sig { returns(T.nilable(Time)) } - def reverted_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def reverted_at=(_) - end + attr_accessor :reverted_at # The status of the backfill. - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::Events::BackfillRevertResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Time) } - def timeframe_end - end - - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # A boolean # [computed property](/extensibility/advanced-metrics#computed-properties) used to # filter the set of events to deprecate sig { returns(T.nilable(String)) } - def deprecation_filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def deprecation_filter=(_) - end + attr_accessor :deprecation_filter # A backfill represents an update to historical usage data, adding or replacing # events in a timeframe. @@ -116,7 +61,7 @@ module Orb events_ingested: Integer, replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), - status: Symbol, + status: Orb::Models::Events::BackfillRevertResponse::Status::OrSymbol, timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) @@ -149,7 +94,7 @@ module Orb events_ingested: Integer, replace_existing_events: T::Boolean, reverted_at: T.nilable(Time), - status: Symbol, + status: Orb::Models::Events::BackfillRevertResponse::Status::TaggedSymbol, timeframe_end: Time, timeframe_start: Time, deprecation_filter: T.nilable(String) @@ -160,15 +105,24 @@ module Orb end # The status of the backfill. - class Status < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - PENDING = :pending - REFLECTED = :reflected - PENDING_REVERT = :pending_revert - REVERTED = :reverted + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Events::BackfillRevertResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Events::BackfillRevertResponse::Status::TaggedSymbol) } + + PENDING = T.let(:pending, Orb::Models::Events::BackfillRevertResponse::Status::TaggedSymbol) + REFLECTED = T.let(:reflected, Orb::Models::Events::BackfillRevertResponse::Status::TaggedSymbol) + PENDING_REVERT = + T.let(:pending_revert, Orb::Models::Events::BackfillRevertResponse::Status::TaggedSymbol) + REVERTED = T.let(:reverted, Orb::Models::Events::BackfillRevertResponse::Status::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Events::BackfillRevertResponse::Status::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/events/event_volumes.rbi b/rbi/lib/orb/models/events/event_volumes.rbi index 1d823baa..4eaf92bb 100644 --- a/rbi/lib/orb/models/events/event_volumes.rbi +++ b/rbi/lib/orb/models/events/event_volumes.rbi @@ -2,22 +2,15 @@ module Orb module Models - EventVolumes = T.type_alias { Events::EventVolumes } - module Events class EventVolumes < Orb::BaseModel sig { returns(T::Array[Orb::Models::Events::EventVolumes::Data]) } - def data - end + attr_accessor :data sig do - params(_: T::Array[Orb::Models::Events::EventVolumes::Data]) - .returns(T::Array[Orb::Models::Events::EventVolumes::Data]) + params(data: T::Array[T.any(Orb::Models::Events::EventVolumes::Data, Orb::Util::AnyHash)]) + .returns(T.attached_class) end - def data=(_) - end - - sig { params(data: T::Array[Orb::Models::Events::EventVolumes::Data]).returns(T.attached_class) } def self.new(data:) end @@ -28,28 +21,13 @@ module Orb class Data < Orb::BaseModel # The number of events ingested with a timestamp between the timeframe sig { returns(Integer) } - def count - end - - sig { params(_: Integer).returns(Integer) } - def count=(_) - end + attr_accessor :count sig { returns(Time) } - def timeframe_end - end - - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # An EventVolume contains the event volume ingested in an hourly window. The # timestamp used for the aggregation is the `timestamp` datetime field on events. @@ -63,5 +41,7 @@ module Orb end end end + + EventVolumes = Events::EventVolumes end end diff --git a/rbi/lib/orb/models/events/volume_list_params.rbi b/rbi/lib/orb/models/events/volume_list_params.rbi index a6c4cbb4..c6694c64 100644 --- a/rbi/lib/orb/models/events/volume_list_params.rbi +++ b/rbi/lib/orb/models/events/volume_list_params.rbi @@ -12,43 +12,29 @@ module Orb # hour-aligned, the response includes the event volume count for the hour the time # falls in. sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit # The end of the timeframe, exclusive, in which to return event volume. If not # specified, the current time is used. All datetime values are converted to UTC # time.If the specified time isn't hour-aligned, the response includes the event # volumecount for the hour the time falls in. sig { returns(T.nilable(Time)) } - def timeframe_end - end + attr_reader :timeframe_end - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + sig { params(timeframe_end: Time).void } + attr_writer :timeframe_end sig do params( @@ -56,7 +42,7 @@ module Orb cursor: T.nilable(String), limit: Integer, timeframe_end: Time, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/invoice.rbi b/rbi/lib/orb/models/invoice.rbi index 7661ba67..f566e247 100644 --- a/rbi/lib/orb/models/invoice.rbi +++ b/rbi/lib/orb/models/invoice.rbi @@ -4,87 +4,45 @@ module Orb module Models class Invoice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # This is the final amount required to be charged to the customer and reflects the # application of the customer balance to the `total` of the invoice. sig { returns(String) } - def amount_due - end - - sig { params(_: String).returns(String) } - def amount_due=(_) - end + attr_accessor :amount_due sig { returns(Orb::Models::Invoice::AutoCollection) } - def auto_collection - end + attr_reader :auto_collection - sig { params(_: Orb::Models::Invoice::AutoCollection).returns(Orb::Models::Invoice::AutoCollection) } - def auto_collection=(_) - end + sig { params(auto_collection: T.any(Orb::Models::Invoice::AutoCollection, Orb::Util::AnyHash)).void } + attr_writer :auto_collection sig { returns(T.nilable(Orb::Models::Invoice::BillingAddress)) } - def billing_address - end + attr_reader :billing_address - sig do - params(_: T.nilable(Orb::Models::Invoice::BillingAddress)) - .returns(T.nilable(Orb::Models::Invoice::BillingAddress)) - end - def billing_address=(_) - end + sig { params(billing_address: T.nilable(T.any(Orb::Models::Invoice::BillingAddress, Orb::Util::AnyHash))).void } + attr_writer :billing_address # The creation time of the resource in Orb. sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # A list of credit notes associated with the invoice sig { returns(T::Array[Orb::Models::Invoice::CreditNote]) } - def credit_notes - end - - sig { params(_: T::Array[Orb::Models::Invoice::CreditNote]).returns(T::Array[Orb::Models::Invoice::CreditNote]) } - def credit_notes=(_) - end + attr_accessor :credit_notes # An ISO 4217 currency string or `credits` sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::Invoice::Customer) } - def customer - end + attr_reader :customer - sig { params(_: Orb::Models::Invoice::Customer).returns(Orb::Models::Invoice::Customer) } - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::Invoice::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer sig { returns(T::Array[Orb::Models::Invoice::CustomerBalanceTransaction]) } - def customer_balance_transactions - end - - sig do - params(_: T::Array[Orb::Models::Invoice::CustomerBalanceTransaction]) - .returns(T::Array[Orb::Models::Invoice::CustomerBalanceTransaction]) - end - def customer_balance_transactions=(_) - end + attr_accessor :customer_balance_transactions # Tax IDs are commonly required to be displayed on customer invoices, which are # added to the headers of invoices. @@ -192,327 +150,163 @@ module Orb # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | sig { returns(T.nilable(Orb::Models::Invoice::CustomerTaxID)) } - def customer_tax_id - end + attr_reader :customer_tax_id - sig do - params(_: T.nilable(Orb::Models::Invoice::CustomerTaxID)) - .returns(T.nilable(Orb::Models::Invoice::CustomerTaxID)) - end - def customer_tax_id=(_) - end + sig { params(customer_tax_id: T.nilable(T.any(Orb::Models::Invoice::CustomerTaxID, Orb::Util::AnyHash))).void } + attr_writer :customer_tax_id # This field is deprecated in favor of `discounts`. If a `discounts` list is # provided, the first discount in the list will be returned. If the list is empty, # `None` will be returned. sig { returns(T.anything) } - def discount - end - - sig { params(_: T.anything).returns(T.anything) } - def discount=(_) - end + attr_accessor :discount sig do returns( T::Array[T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)] ) end - def discounts - end - - 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)] - ) - end - def discounts=(_) - end + attr_accessor :discounts # When the invoice payment is due. The due date is null if the invoice is not yet # finalized. sig { returns(T.nilable(Time)) } - def due_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def due_date=(_) - end + attr_accessor :due_date # If the invoice has a status of `draft`, this will be the time that the invoice # will be eligible to be issued, otherwise it will be `null`. If `auto-issue` is # true, the invoice will automatically begin issuing at this time. sig { returns(T.nilable(Time)) } - def eligible_to_issue_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def eligible_to_issue_at=(_) - end + attr_accessor :eligible_to_issue_at # A URL for the customer-facing invoice portal. This URL expires 30 days after the # invoice's due date, or 60 days after being re-generated through the UI. sig { returns(T.nilable(String)) } - def hosted_invoice_url - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def hosted_invoice_url=(_) - end + attr_accessor :hosted_invoice_url # The scheduled date of the invoice sig { returns(Time) } - def invoice_date - end - - sig { params(_: Time).returns(Time) } - def invoice_date=(_) - end + attr_accessor :invoice_date # Automatically generated invoice number to help track and reconcile invoices. # Invoice numbers have a prefix such as `RFOBWG`. These can be sequential per # account or customer. sig { returns(String) } - def invoice_number - end - - sig { params(_: String).returns(String) } - def invoice_number=(_) - end + attr_accessor :invoice_number # The link to download the PDF representation of the `Invoice`. sig { returns(T.nilable(String)) } - def invoice_pdf - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_pdf=(_) - end - - sig { returns(Symbol) } - def invoice_source - end + attr_accessor :invoice_pdf - sig { params(_: Symbol).returns(Symbol) } - def invoice_source=(_) - end + sig { returns(Orb::Models::Invoice::InvoiceSource::TaggedSymbol) } + attr_accessor :invoice_source # If the invoice failed to issue, this will be the last time it failed to issue # (even if it is now in a different state.) sig { returns(T.nilable(Time)) } - def issue_failed_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def issue_failed_at=(_) - end + attr_accessor :issue_failed_at # If the invoice has been issued, this will be the time it transitioned to # `issued` (even if it is now in a different state.) sig { returns(T.nilable(Time)) } - def issued_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def issued_at=(_) - end + attr_accessor :issued_at # The breakdown of prices in this invoice. sig { returns(T::Array[Orb::Models::Invoice::LineItem]) } - def line_items - end - - sig { params(_: T::Array[Orb::Models::Invoice::LineItem]).returns(T::Array[Orb::Models::Invoice::LineItem]) } - def line_items=(_) - end + attr_accessor :line_items sig { returns(T.nilable(Orb::Models::Invoice::Maximum)) } - def maximum - end + attr_reader :maximum - sig { params(_: T.nilable(Orb::Models::Invoice::Maximum)).returns(T.nilable(Orb::Models::Invoice::Maximum)) } - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Invoice::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # Free-form text which is available on the invoice PDF and the Orb invoice portal. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Invoice::Minimum)) } - def minimum - end + attr_reader :minimum - sig { params(_: T.nilable(Orb::Models::Invoice::Minimum)).returns(T.nilable(Orb::Models::Invoice::Minimum)) } - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Invoice::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # If the invoice has a status of `paid`, this gives a timestamp when the invoice # was paid. sig { returns(T.nilable(Time)) } - def paid_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def paid_at=(_) - end + attr_accessor :paid_at # A list of payment attempts associated with the invoice sig { returns(T::Array[Orb::Models::Invoice::PaymentAttempt]) } - def payment_attempts - end - - sig do - params(_: T::Array[Orb::Models::Invoice::PaymentAttempt]) - .returns(T::Array[Orb::Models::Invoice::PaymentAttempt]) - end - def payment_attempts=(_) - end + attr_accessor :payment_attempts # If payment was attempted on this invoice but failed, this will be the time of # the most recent attempt. sig { returns(T.nilable(Time)) } - def payment_failed_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def payment_failed_at=(_) - end + attr_accessor :payment_failed_at # If payment was attempted on this invoice, this will be the start time of the # most recent attempt. This field is especially useful for delayed-notification # payment mechanisms (like bank transfers), where payment can take 3 days or more. sig { returns(T.nilable(Time)) } - def payment_started_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def payment_started_at=(_) - end + attr_accessor :payment_started_at # If the invoice is in draft, this timestamp will reflect when the invoice is # scheduled to be issued. sig { returns(T.nilable(Time)) } - def scheduled_issue_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def scheduled_issue_at=(_) - end + attr_accessor :scheduled_issue_at sig { returns(T.nilable(Orb::Models::Invoice::ShippingAddress)) } - def shipping_address - end - - sig do - params(_: T.nilable(Orb::Models::Invoice::ShippingAddress)) - .returns(T.nilable(Orb::Models::Invoice::ShippingAddress)) - end - def shipping_address=(_) - end + attr_reader :shipping_address - sig { returns(Symbol) } - def status - end + sig { params(shipping_address: T.nilable(T.any(Orb::Models::Invoice::ShippingAddress, Orb::Util::AnyHash))).void } + attr_writer :shipping_address - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::Invoice::Status::TaggedSymbol) } + attr_accessor :status sig { returns(T.nilable(Orb::Models::Invoice::Subscription)) } - def subscription - end + attr_reader :subscription - sig do - params(_: T.nilable(Orb::Models::Invoice::Subscription)) - .returns(T.nilable(Orb::Models::Invoice::Subscription)) - end - def subscription=(_) - end + sig { params(subscription: T.nilable(T.any(Orb::Models::Invoice::Subscription, Orb::Util::AnyHash))).void } + attr_writer :subscription # The total before any discounts and minimums are applied. sig { returns(String) } - def subtotal - end - - sig { params(_: String).returns(String) } - def subtotal=(_) - end + attr_accessor :subtotal # If the invoice failed to sync, this will be the last time an external invoicing # provider sync was attempted. This field will always be `null` for invoices using # Orb Invoicing. sig { returns(T.nilable(Time)) } - def sync_failed_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def sync_failed_at=(_) - end + attr_accessor :sync_failed_at # The total after any minimums and discounts have been applied. sig { returns(String) } - def total - end - - sig { params(_: String).returns(String) } - def total=(_) - end + attr_accessor :total # If the invoice has a status of `void`, this gives a timestamp when the invoice # was voided. sig { returns(T.nilable(Time)) } - def voided_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def voided_at=(_) - end + attr_accessor :voided_at # This is true if the invoice will be automatically issued in the future, and # false otherwise. sig { returns(T::Boolean) } - def will_auto_issue - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def will_auto_issue=(_) - end + attr_accessor :will_auto_issue # An [`Invoice`](/core-concepts#invoice) is a fundamental billing entity, # representing the request for payment for a single subscription. This includes a @@ -523,40 +317,47 @@ module Orb params( id: String, amount_due: String, - auto_collection: Orb::Models::Invoice::AutoCollection, - billing_address: T.nilable(Orb::Models::Invoice::BillingAddress), + auto_collection: T.any(Orb::Models::Invoice::AutoCollection, Orb::Util::AnyHash), + billing_address: T.nilable(T.any(Orb::Models::Invoice::BillingAddress, Orb::Util::AnyHash)), created_at: Time, - credit_notes: T::Array[Orb::Models::Invoice::CreditNote], + credit_notes: T::Array[T.any(Orb::Models::Invoice::CreditNote, Orb::Util::AnyHash)], 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), + customer: T.any(Orb::Models::Invoice::Customer, Orb::Util::AnyHash), + customer_balance_transactions: T::Array[T.any(Orb::Models::Invoice::CustomerBalanceTransaction, Orb::Util::AnyHash)], + customer_tax_id: T.nilable(T.any(Orb::Models::Invoice::CustomerTaxID, Orb::Util::AnyHash)), 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::Util::AnyHash, + 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, + invoice_source: Orb::Models::Invoice::InvoiceSource::OrSymbol, 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), + line_items: T::Array[T.any(Orb::Models::Invoice::LineItem, Orb::Util::AnyHash)], + maximum: T.nilable(T.any(Orb::Models::Invoice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), memo: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Invoice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Invoice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), paid_at: T.nilable(Time), - payment_attempts: T::Array[Orb::Models::Invoice::PaymentAttempt], + payment_attempts: T::Array[T.any(Orb::Models::Invoice::PaymentAttempt, Orb::Util::AnyHash)], 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), + shipping_address: T.nilable(T.any(Orb::Models::Invoice::ShippingAddress, Orb::Util::AnyHash)), + status: Orb::Models::Invoice::Status::OrSymbol, + subscription: T.nilable(T.any(Orb::Models::Invoice::Subscription, Orb::Util::AnyHash)), subtotal: String, sync_failed_at: T.nilable(Time), total: String, @@ -632,7 +433,7 @@ module Orb invoice_date: Time, invoice_number: String, invoice_pdf: T.nilable(String), - invoice_source: Symbol, + invoice_source: Orb::Models::Invoice::InvoiceSource::TaggedSymbol, issue_failed_at: T.nilable(Time), issued_at: T.nilable(Time), line_items: T::Array[Orb::Models::Invoice::LineItem], @@ -648,7 +449,7 @@ module Orb payment_started_at: T.nilable(Time), scheduled_issue_at: T.nilable(Time), shipping_address: T.nilable(Orb::Models::Invoice::ShippingAddress), - status: Symbol, + status: Orb::Models::Invoice::Status::TaggedSymbol, subscription: T.nilable(Orb::Models::Invoice::Subscription), subtotal: String, sync_failed_at: T.nilable(Time), @@ -664,32 +465,17 @@ module Orb class AutoCollection < Orb::BaseModel # True only if auto-collection is enabled for this invoice. sig { returns(T.nilable(T::Boolean)) } - def enabled - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def enabled=(_) - end + attr_accessor :enabled # If the invoice is scheduled for auto-collection, this field will reflect when # the next attempt will occur. If dunning has been exhausted, or auto-collection # is not enabled for this invoice, this field will be `null`. sig { returns(T.nilable(Time)) } - def next_attempt_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def next_attempt_at=(_) - end + attr_accessor :next_attempt_at # Number of auto-collection payment attempts. sig { returns(T.nilable(Integer)) } - def num_attempts - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def num_attempts=(_) - end + attr_accessor :num_attempts # If Orb has ever attempted payment auto-collection for this invoice, this field # will reflect when that attempt occurred. In conjunction with `next_attempt_at`, @@ -698,12 +484,7 @@ module Orb # if dunning has been exhausted (`previously_attempted_at` is non-null, but # `next_attempt_time` is null). sig { returns(T.nilable(Time)) } - def previously_attempted_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def previously_attempted_at=(_) - end + attr_accessor :previously_attempted_at sig do params( @@ -734,52 +515,22 @@ module Orb class BillingAddress < Orb::BaseModel sig { returns(T.nilable(String)) } - def city - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def city=(_) - end + attr_accessor :city sig { returns(T.nilable(String)) } - def country - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def country=(_) - end + attr_accessor :country sig { returns(T.nilable(String)) } - def line1 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_) - end + attr_accessor :line1 sig { returns(T.nilable(String)) } - def line2 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_) - end + attr_accessor :line2 sig { returns(T.nilable(String)) } - def postal_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_) - end + attr_accessor :postal_code sig { returns(T.nilable(String)) } - def state - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def state=(_) - end + attr_accessor :state sig do params( @@ -814,63 +565,28 @@ module Orb class CreditNote < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def credit_note_number - end - - sig { params(_: String).returns(String) } - def credit_note_number=(_) - end + attr_accessor :credit_note_number # An optional memo supplied on the credit note. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo sig { returns(String) } - def reason - end - - sig { params(_: String).returns(String) } - def reason=(_) - end + attr_accessor :reason sig { returns(String) } - def total - end - - sig { params(_: String).returns(String) } - def total=(_) - end + attr_accessor :total sig { returns(String) } - def type - end - - sig { params(_: String).returns(String) } - def type=(_) - end + attr_accessor :type # If the credit note has a status of `void`, this gives a timestamp when the # credit note was voided. sig { returns(T.nilable(Time)) } - def voided_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def voided_at=(_) - end + attr_accessor :voided_at sig do params( @@ -907,20 +623,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -934,110 +640,70 @@ module Orb class CustomerBalanceTransaction < Orb::BaseModel # A unique id for this transaction. sig { returns(String) } - def id - end + attr_accessor :id - sig { params(_: String).returns(String) } - def id=(_) - end - - sig { returns(Symbol) } - def action - end - - sig { params(_: Symbol).returns(Symbol) } - def action=(_) - end + sig { returns(Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) } + attr_accessor :action # The value of the amount changed in the transaction. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The creation time of this transaction. sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote)) } - def credit_note - end + attr_reader :credit_note sig do - params(_: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote)) - .returns(T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote)) - end - def credit_note=(_) + params( + credit_note: T.nilable(T.any(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_note # An optional description provided for manual customer balance adjustments. sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description # The new value of the customer's balance prior to the transaction, in the # customer's currency. sig { returns(String) } - def ending_balance - end - - sig { params(_: String).returns(String) } - def ending_balance=(_) - end + attr_accessor :ending_balance sig { returns(T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice)) } - def invoice - end + attr_reader :invoice sig do - params(_: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice)) - .returns(T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice)) - end - def invoice=(_) + params( + invoice: T.nilable(T.any(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice, Orb::Util::AnyHash)) + ) + .void end + attr_writer :invoice # The original value of the customer's balance prior to the transaction, in the # customer's currency. sig { returns(String) } - def starting_balance - end - - sig { params(_: String).returns(String) } - def starting_balance=(_) - end + attr_accessor :starting_balance - sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol) } + attr_accessor :type sig do params( id: String, - action: Symbol, + action: Orb::Models::Invoice::CustomerBalanceTransaction::Action::OrSymbol, amount: String, created_at: Time, - credit_note: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote), + credit_note: T.nilable(T.any(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote, Orb::Util::AnyHash)), description: T.nilable(String), ending_balance: String, - invoice: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice), + invoice: T.nilable(T.any(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice, Orb::Util::AnyHash)), starting_balance: String, - type: Symbol + type: Orb::Models::Invoice::CustomerBalanceTransaction::Type::OrSymbol ) .returns(T.attached_class) end @@ -1060,7 +726,7 @@ module Orb .returns( { id: String, - action: Symbol, + action: Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol, amount: String, created_at: Time, credit_note: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote), @@ -1068,38 +734,50 @@ module Orb ending_balance: String, invoice: T.nilable(Orb::Models::Invoice::CustomerBalanceTransaction::Invoice), starting_balance: String, - type: Symbol + type: Orb::Models::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol } ) end def to_hash end - class Action < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - APPLIED_TO_INVOICE = :applied_to_invoice - MANUAL_ADJUSTMENT = :manual_adjustment - PRORATED_REFUND = :prorated_refund - REVERT_PRORATED_REFUND = :revert_prorated_refund - RETURN_FROM_VOIDING = :return_from_voiding - CREDIT_NOTE_APPLIED = :credit_note_applied - CREDIT_NOTE_VOIDED = :credit_note_voided - OVERPAYMENT_REFUND = :overpayment_refund - EXTERNAL_PAYMENT = :external_payment + module Action + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::CustomerBalanceTransaction::Action) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) } + + APPLIED_TO_INVOICE = + T.let(:applied_to_invoice, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + MANUAL_ADJUSTMENT = + T.let(:manual_adjustment, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + PRORATED_REFUND = + T.let(:prorated_refund, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + REVERT_PRORATED_REFUND = + T.let(:revert_prorated_refund, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + RETURN_FROM_VOIDING = + T.let(:return_from_voiding, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + CREDIT_NOTE_APPLIED = + T.let(:credit_note_applied, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + CREDIT_NOTE_VOIDED = + T.let(:credit_note_voided, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + OVERPAYMENT_REFUND = + T.let(:overpayment_refund, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + EXTERNAL_PAYMENT = + T.let(:external_payment, Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol]) } + def values + end + end end class CreditNote < Orb::BaseModel # The id of the Credit note sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -1113,12 +791,7 @@ module Orb class Invoice < Orb::BaseModel # The Invoice id sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -1129,40 +802,33 @@ module Orb end end - class Type < Orb::Enum - abstract! + module Type + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::CustomerBalanceTransaction::Type) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol) } - INCREMENT = :increment - DECREMENT = :decrement + INCREMENT = T.let(:increment, Orb::Models::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol) + DECREMENT = T.let(:decrement, Orb::Models::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Invoice::CustomerBalanceTransaction::Type::TaggedSymbol]) } + def values + end + end end end class CustomerTaxID < Orb::BaseModel - sig { returns(Symbol) } - def country - end - - sig { params(_: Symbol).returns(Symbol) } - def country=(_) - end + sig { returns(Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) } + attr_accessor :country - sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) } + attr_accessor :type sig { returns(String) } - def value - end - - sig { params(_: String).returns(String) } - def value=(_) - end + attr_accessor :value # Tax IDs are commonly required to be displayed on customer invoices, which are # added to the headers of invoices. @@ -1269,207 +935,234 @@ module Orb # | Uruguay | `uy_ruc` | Uruguayan RUC Number | # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | - sig { params(country: Symbol, type: Symbol, value: String).returns(T.attached_class) } - def self.new(country:, type:, value:) - end - - sig { override.returns({country: Symbol, type: Symbol, value: String}) } - def to_hash + sig do + params( + country: Orb::Models::Invoice::CustomerTaxID::Country::OrSymbol, + type: Orb::Models::Invoice::CustomerTaxID::Type::OrSymbol, + value: String + ) + .returns(T.attached_class) end - - class Country < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - AD = :AD - AE = :AE - AR = :AR - AT = :AT - AU = :AU - BE = :BE - BG = :BG - BH = :BH - BO = :BO - BR = :BR - CA = :CA - CH = :CH - CL = :CL - CN = :CN - CO = :CO - CR = :CR - CY = :CY - CZ = :CZ - DE = :DE - DK = :DK - EE = :EE - DO = :DO - EC = :EC - EG = :EG - ES = :ES - EU = :EU - FI = :FI - FR = :FR - GB = :GB - GE = :GE - GR = :GR - HK = :HK - HR = :HR - HU = :HU - ID = :ID - IE = :IE - IL = :IL - IN = :IN - IS = :IS - IT = :IT - JP = :JP - KE = :KE - KR = :KR - KZ = :KZ - LI = :LI - LT = :LT - LU = :LU - LV = :LV - MT = :MT - MX = :MX - MY = :MY - NG = :NG - NL = :NL - NO = :NO - NZ = :NZ - OM = :OM - PE = :PE - PH = :PH - PL = :PL - PT = :PT - RO = :RO - RS = :RS - RU = :RU - SA = :SA - SE = :SE - SG = :SG - SI = :SI - SK = :SK - SV = :SV - TH = :TH - TR = :TR - TW = :TW - UA = :UA - US = :US - UY = :UY - VE = :VE - VN = :VN - ZA = :ZA + def self.new(country:, type:, value:) end - class Type < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - AD_NRT = :ad_nrt - AE_TRN = :ae_trn - AR_CUIT = :ar_cuit - EU_VAT = :eu_vat - AU_ABN = :au_abn - AU_ARN = :au_arn - BG_UIC = :bg_uic - BH_VAT = :bh_vat - BO_TIN = :bo_tin - BR_CNPJ = :br_cnpj - BR_CPF = :br_cpf - CA_BN = :ca_bn - CA_GST_HST = :ca_gst_hst - CA_PST_BC = :ca_pst_bc - CA_PST_MB = :ca_pst_mb - CA_PST_SK = :ca_pst_sk - CA_QST = :ca_qst - CH_VAT = :ch_vat - CL_TIN = :cl_tin - CN_TIN = :cn_tin - CO_NIT = :co_nit - CR_TIN = :cr_tin - DO_RCN = :do_rcn - EC_RUC = :ec_ruc - EG_TIN = :eg_tin - ES_CIF = :es_cif - EU_OSS_VAT = :eu_oss_vat - GB_VAT = :gb_vat - GE_VAT = :ge_vat - HK_BR = :hk_br - HU_TIN = :hu_tin - ID_NPWP = :id_npwp - IL_VAT = :il_vat - IN_GST = :in_gst - IS_VAT = :is_vat - JP_CN = :jp_cn - JP_RN = :jp_rn - JP_TRN = :jp_trn - KE_PIN = :ke_pin - KR_BRN = :kr_brn - KZ_BIN = :kz_bin - LI_UID = :li_uid - MX_RFC = :mx_rfc - MY_FRP = :my_frp - MY_ITN = :my_itn - MY_SST = :my_sst - NG_TIN = :ng_tin - NO_VAT = :no_vat - NO_VOEC = :no_voec - NZ_GST = :nz_gst - OM_VAT = :om_vat - PE_RUC = :pe_ruc - PH_TIN = :ph_tin - RO_TIN = :ro_tin - RS_PIB = :rs_pib - RU_INN = :ru_inn - RU_KPP = :ru_kpp - SA_VAT = :sa_vat - SG_GST = :sg_gst - SG_UEN = :sg_uen - SI_TIN = :si_tin - SV_NIT = :sv_nit - TH_VAT = :th_vat - TR_TIN = :tr_tin - TW_VAT = :tw_vat - UA_VAT = :ua_vat - US_EIN = :us_ein - UY_RUC = :uy_ruc - VE_RIF = :ve_rif - VN_TIN = :vn_tin - ZA_VAT = :za_vat + sig do + override + .returns( + { + country: Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol, + type: Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol, + value: String + } + ) + end + def to_hash + end + + module Country + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::CustomerTaxID::Country) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) } + + AD = T.let(:AD, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + AE = T.let(:AE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + AR = T.let(:AR, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + AT = T.let(:AT, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + AU = T.let(:AU, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + BE = T.let(:BE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + BG = T.let(:BG, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + BH = T.let(:BH, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + BO = T.let(:BO, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + BR = T.let(:BR, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + CA = T.let(:CA, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + CH = T.let(:CH, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + CL = T.let(:CL, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + CN = T.let(:CN, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + CO = T.let(:CO, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + CR = T.let(:CR, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + CY = T.let(:CY, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + CZ = T.let(:CZ, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + DE = T.let(:DE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + DK = T.let(:DK, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + EE = T.let(:EE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + DO = T.let(:DO, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + EC = T.let(:EC, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + EG = T.let(:EG, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + ES = T.let(:ES, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + EU = T.let(:EU, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + FI = T.let(:FI, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + FR = T.let(:FR, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + GB = T.let(:GB, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + GE = T.let(:GE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + GR = T.let(:GR, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + HK = T.let(:HK, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + HR = T.let(:HR, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + HU = T.let(:HU, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + ID = T.let(:ID, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + IE = T.let(:IE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + IL = T.let(:IL, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + IN = T.let(:IN, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + IS = T.let(:IS, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + IT = T.let(:IT, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + JP = T.let(:JP, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + KE = T.let(:KE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + KR = T.let(:KR, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + KZ = T.let(:KZ, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + LI = T.let(:LI, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + LT = T.let(:LT, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + LU = T.let(:LU, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + LV = T.let(:LV, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + MT = T.let(:MT, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + MX = T.let(:MX, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + MY = T.let(:MY, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + NG = T.let(:NG, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + NL = T.let(:NL, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + NO = T.let(:NO, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + NZ = T.let(:NZ, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + OM = T.let(:OM, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + PE = T.let(:PE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + PH = T.let(:PH, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + PL = T.let(:PL, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + PT = T.let(:PT, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + RO = T.let(:RO, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + RS = T.let(:RS, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + RU = T.let(:RU, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + SA = T.let(:SA, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + SE = T.let(:SE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + SG = T.let(:SG, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + SI = T.let(:SI, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + SK = T.let(:SK, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + SV = T.let(:SV, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + TH = T.let(:TH, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + TR = T.let(:TR, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + TW = T.let(:TW, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + UA = T.let(:UA, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + US = T.let(:US, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + UY = T.let(:UY, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + VE = T.let(:VE, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + VN = T.let(:VN, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + ZA = T.let(:ZA, Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Invoice::CustomerTaxID::Country::TaggedSymbol]) } + def values + end + end + end + + module Type + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::CustomerTaxID::Type) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) } + + AD_NRT = T.let(:ad_nrt, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + AE_TRN = T.let(:ae_trn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + AR_CUIT = T.let(:ar_cuit, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + EU_VAT = T.let(:eu_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + AU_ABN = T.let(:au_abn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + AU_ARN = T.let(:au_arn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + BG_UIC = T.let(:bg_uic, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + BH_VAT = T.let(:bh_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + BO_TIN = T.let(:bo_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + BR_CNPJ = T.let(:br_cnpj, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + BR_CPF = T.let(:br_cpf, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + CA_BN = T.let(:ca_bn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + CA_GST_HST = T.let(:ca_gst_hst, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + CA_PST_BC = T.let(:ca_pst_bc, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + CA_PST_MB = T.let(:ca_pst_mb, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + CA_PST_SK = T.let(:ca_pst_sk, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + CA_QST = T.let(:ca_qst, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + CH_VAT = T.let(:ch_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + CL_TIN = T.let(:cl_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + CN_TIN = T.let(:cn_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + CO_NIT = T.let(:co_nit, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + CR_TIN = T.let(:cr_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + DO_RCN = T.let(:do_rcn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + EC_RUC = T.let(:ec_ruc, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + EG_TIN = T.let(:eg_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + ES_CIF = T.let(:es_cif, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + EU_OSS_VAT = T.let(:eu_oss_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + GB_VAT = T.let(:gb_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + GE_VAT = T.let(:ge_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + HK_BR = T.let(:hk_br, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + HU_TIN = T.let(:hu_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + ID_NPWP = T.let(:id_npwp, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + IL_VAT = T.let(:il_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + IN_GST = T.let(:in_gst, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + IS_VAT = T.let(:is_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + JP_CN = T.let(:jp_cn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + JP_RN = T.let(:jp_rn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + JP_TRN = T.let(:jp_trn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + KE_PIN = T.let(:ke_pin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + KR_BRN = T.let(:kr_brn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + KZ_BIN = T.let(:kz_bin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + LI_UID = T.let(:li_uid, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + MX_RFC = T.let(:mx_rfc, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + MY_FRP = T.let(:my_frp, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + MY_ITN = T.let(:my_itn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + MY_SST = T.let(:my_sst, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + NG_TIN = T.let(:ng_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + NO_VAT = T.let(:no_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + NO_VOEC = T.let(:no_voec, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + NZ_GST = T.let(:nz_gst, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + OM_VAT = T.let(:om_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + PE_RUC = T.let(:pe_ruc, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + PH_TIN = T.let(:ph_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + RO_TIN = T.let(:ro_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + RS_PIB = T.let(:rs_pib, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + RU_INN = T.let(:ru_inn, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + RU_KPP = T.let(:ru_kpp, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + SA_VAT = T.let(:sa_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + SG_GST = T.let(:sg_gst, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + SG_UEN = T.let(:sg_uen, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + SI_TIN = T.let(:si_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + SV_NIT = T.let(:sv_nit, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + TH_VAT = T.let(:th_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + TR_TIN = T.let(:tr_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + TW_VAT = T.let(:tw_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + UA_VAT = T.let(:ua_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + US_EIN = T.let(:us_ein, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + UY_RUC = T.let(:uy_ruc, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + VE_RIF = T.let(:ve_rif, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + VN_TIN = T.let(:vn_tin, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + ZA_VAT = T.let(:za_vat, Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Invoice::CustomerTaxID::Type::TaggedSymbol]) } + def values + end + end end end - class InvoiceSource < Orb::Enum - abstract! + module InvoiceSource + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::InvoiceSource) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Invoice::InvoiceSource::TaggedSymbol) } - SUBSCRIPTION = :subscription - PARTIAL = :partial - ONE_OFF = :one_off + SUBSCRIPTION = T.let(:subscription, Orb::Models::Invoice::InvoiceSource::TaggedSymbol) + PARTIAL = T.let(:partial, Orb::Models::Invoice::InvoiceSource::TaggedSymbol) + ONE_OFF = T.let(:one_off, Orb::Models::Invoice::InvoiceSource::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Invoice::InvoiceSource::TaggedSymbol]) } + def values + end + end end class LineItem < Orb::BaseModel # A unique ID for this line item. sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The line amount after any adjustments and before overage conversion, credits and # partial invoicing. sig { returns(String) } - def adjusted_subtotal - end - - sig { params(_: String).returns(String) } - def adjusted_subtotal=(_) - end + attr_accessor :adjusted_subtotal # All adjustments applied to the line item in the order they were applied based on # invoice calculations (ie. usage discounts -> amount discounts -> percentage @@ -1487,54 +1180,16 @@ module Orb ] ) end - def adjustments - end - - sig do - params( - _: 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 + attr_accessor :adjustments # The final amount for a line item after all adjustments and pre paid credits have # been applied. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The number of prepaid credits applied. sig { returns(String) } - def credits_applied - end - - sig { params(_: String).returns(String) } - def credits_applied=(_) - end + attr_accessor :credits_applied sig do returns( @@ -1548,122 +1203,51 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount # The end date of the range of time applied for this line item's price. sig { returns(Time) } - def end_date - end - - sig { params(_: Time).returns(Time) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter that was used to calculate the usage for this line item. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # [DEPRECATED] For configured prices that are split by a grouping key, this will # be populated with the key and a value. The `amount` and `subtotal` will be the # values for this particular grouping. sig { returns(T.nilable(String)) } - def grouping - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def grouping=(_) - end + attr_accessor :grouping # This field is deprecated in favor of `adjustments`. sig { returns(T.nilable(Orb::Models::Invoice::LineItem::Maximum)) } - def maximum - end + attr_reader :maximum - sig do - params(_: T.nilable(Orb::Models::Invoice::LineItem::Maximum)) - .returns(T.nilable(Orb::Models::Invoice::LineItem::Maximum)) - end - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Invoice::LineItem::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum # This field is deprecated in favor of `adjustments`. sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # This field is deprecated in favor of `adjustments`. sig { returns(T.nilable(Orb::Models::Invoice::LineItem::Minimum)) } - def minimum - end + attr_reader :minimum - sig do - params(_: T.nilable(Orb::Models::Invoice::LineItem::Minimum)) - .returns(T.nilable(Orb::Models::Invoice::LineItem::Minimum)) - end - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Invoice::LineItem::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum # This field is deprecated in favor of `adjustments`. sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The name of the price associated with this line item. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # Any amount applied from a partial invoice sig { returns(String) } - def partially_invoiced_amount - end - - sig { params(_: String).returns(String) } - def partially_invoiced_amount=(_) - end + attr_accessor :partially_invoiced_amount # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -1711,99 +1295,15 @@ module Orb ) ) end - def price - end - - sig do - params( - _: 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 + attr_accessor :price # Either the fixed fee quantity or the usage during the service period. sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity # The start date of the range of time applied for this line item's price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # For complex pricing structures, the line item can be broken down further in # `sub_line_items`. @@ -1818,62 +1318,20 @@ module Orb ] ) end - def sub_line_items - end - - sig do - params( - _: 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 + attr_accessor :sub_line_items # The line amount before before any adjustments. sig { returns(String) } - def subtotal - end - - sig { params(_: String).returns(String) } - def subtotal=(_) - end + attr_accessor :subtotal # An array of tax rates and their incurred tax amounts. Empty if no tax # integration is configured. sig { returns(T::Array[Orb::Models::Invoice::LineItem::TaxAmount]) } - def tax_amounts - end - - sig do - params(_: T::Array[Orb::Models::Invoice::LineItem::TaxAmount]) - .returns(T::Array[Orb::Models::Invoice::LineItem::TaxAmount]) - end - def tax_amounts=(_) - end + attr_accessor :tax_amounts # A list of customer ids that were used to calculate the usage for this line item. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids sig do params( @@ -1882,6 +1340,7 @@ module Orb adjustments: T::Array[ T.any( Orb::Models::Invoice::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::Invoice::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment, @@ -1893,6 +1352,7 @@ module Orb discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -1901,15 +1361,16 @@ module Orb end_date: Time, filter: T.nilable(String), grouping: T.nilable(String), - maximum: T.nilable(Orb::Models::Invoice::LineItem::Maximum), + maximum: T.nilable(T.any(Orb::Models::Invoice::LineItem::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), - minimum: T.nilable(Orb::Models::Invoice::LineItem::Minimum), + minimum: T.nilable(T.any(Orb::Models::Invoice::LineItem::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, partially_invoiced_amount: String, price: T.nilable( T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -1944,12 +1405,13 @@ module Orb sub_line_items: T::Array[ T.any( Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, + Orb::Util::AnyHash, Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem ) ], subtotal: String, - tax_amounts: T::Array[Orb::Models::Invoice::LineItem::TaxAmount], + tax_amounts: T::Array[T.any(Orb::Models::Invoice::LineItem::TaxAmount, Orb::Util::AnyHash)], usage_customer_ids: T.nilable(T::Array[String]) ) .returns(T.attached_class) @@ -2064,84 +1526,50 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union - Variants = type_template(:out) do - { - fixed: 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 + Variants = + type_template(:out) do + { + fixed: 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 class MonetaryUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -2186,67 +1614,32 @@ module Orb class MonetaryAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -2291,67 +1684,32 @@ module Orb class MonetaryPercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -2396,76 +1754,36 @@ module Orb class MonetaryMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -2513,67 +1831,32 @@ module Orb class MonetaryMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -2615,27 +1898,28 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [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 variants + end + end end class Maximum < Orb::BaseModel # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # This field is deprecated in favor of `adjustments`. sig do @@ -2653,21 +1937,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # This field is deprecated in favor of `adjustments`. sig do @@ -2681,80 +1955,65 @@ module Orb end end - class SubLineItem < Orb::Union - abstract! + module SubLineItem + extend Orb::Union - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, - Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, - Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, + Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, + Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem + ) + } + end class MatrixSubLineItem < Orb::BaseModel # The total amount for this sub line item. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount sig { returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping)) } - def grouping - end + attr_reader :grouping sig do - params(_: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping)) - .returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping)) - end - def grouping=(_) + params( + grouping: T.nilable( + T.any(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :grouping sig { returns(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig) } - def matrix_config - end + attr_reader :matrix_config sig do - params(_: Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig) - .returns(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig) - end - def matrix_config=(_) + params( + matrix_config: T.any(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, Orb::Util::AnyHash) + ) + .void end + attr_writer :matrix_config sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + attr_accessor :type sig do params( amount: String, - grouping: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping), - matrix_config: Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, + grouping: T.nilable( + T.any(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping, Orb::Util::AnyHash) + ), + matrix_config: T.any(Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, Orb::Util::AnyHash), name: String, quantity: Float, type: Symbol @@ -2782,21 +2041,11 @@ module Orb class Grouping < Orb::BaseModel sig { returns(String) } - def key - end - - sig { params(_: String).returns(String) } - def key=(_) - end + attr_accessor :key # No value indicates the default group sig { returns(T.nilable(String)) } - def value - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def value=(_) - end + attr_accessor :value sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } def self.new(key:, value:) @@ -2810,12 +2059,7 @@ module Orb class MatrixConfig < Orb::BaseModel # The ordered dimension values for this line item. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { params(dimension_values: T::Array[T.nilable(String)]).returns(T.attached_class) } def self.new(dimension_values:) @@ -2830,66 +2074,50 @@ module Orb class TierSubLineItem < Orb::BaseModel # The total amount for this sub line item. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount sig { returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping)) } - def grouping - end + attr_reader :grouping sig do - params(_: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping)) - .returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping)) - end - def grouping=(_) + params( + grouping: T.nilable( + T.any(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :grouping sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig) } - def tier_config - end + attr_reader :tier_config sig do - params(_: Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig) - .returns(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig) - end - def tier_config=(_) + params( + tier_config: T.any(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig, Orb::Util::AnyHash) + ) + .void end + attr_writer :tier_config sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + attr_accessor :type sig do params( amount: String, - grouping: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping), + grouping: T.nilable( + T.any(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping, Orb::Util::AnyHash) + ), name: String, quantity: Float, - tier_config: Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig, + tier_config: T.any(Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig, Orb::Util::AnyHash), type: Symbol ) .returns(T.attached_class) @@ -2915,21 +2143,11 @@ module Orb class Grouping < Orb::BaseModel sig { returns(String) } - def key - end - - sig { params(_: String).returns(String) } - def key=(_) - end + attr_accessor :key # No value indicates the default group sig { returns(T.nilable(String)) } - def value - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def value=(_) - end + attr_accessor :value sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } def self.new(key:, value:) @@ -2942,28 +2160,13 @@ module Orb class TierConfig < Orb::BaseModel sig { returns(Float) } - def first_unit - end - - sig { params(_: Float).returns(Float) } - def first_unit=(_) - end + attr_accessor :first_unit sig { returns(T.nilable(Float)) } - def last_unit - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def last_unit=(_) - end + attr_accessor :last_unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -2984,52 +2187,36 @@ module Orb class OtherSubLineItem < Orb::BaseModel # The total amount for this sub line item. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount sig { returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping)) } - def grouping - end + attr_reader :grouping sig do - params(_: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping)) - .returns(T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping)) - end - def grouping=(_) + params( + grouping: T.nilable( + T.any(Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :grouping sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + attr_accessor :type sig do params( amount: String, - grouping: T.nilable(Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping), + grouping: T.nilable( + T.any(Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping, Orb::Util::AnyHash) + ), name: String, quantity: Float, type: Symbol @@ -3056,21 +2243,11 @@ module Orb class Grouping < Orb::BaseModel sig { returns(String) } - def key - end - - sig { params(_: String).returns(String) } - def key=(_) - end + attr_accessor :key # No value indicates the default group sig { returns(T.nilable(String)) } - def value - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def value=(_) - end + attr_accessor :value sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } def self.new(key:, value:) @@ -3081,35 +2258,31 @@ module Orb end end end + + class << self + sig do + override + .returns( + [Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem] + ) + end + def variants + end + end end class TaxAmount < Orb::BaseModel # The amount of additional tax incurred by this tax rate. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The human-readable description of the applied tax rate. sig { returns(String) } - def tax_rate_description - end - - sig { params(_: String).returns(String) } - def tax_rate_description=(_) - end + attr_accessor :tax_rate_description # The tax rate percentage, out of 100. sig { returns(T.nilable(String)) } - def tax_rate_percentage - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def tax_rate_percentage=(_) - end + attr_accessor :tax_rate_percentage sig do params(amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)) @@ -3136,21 +2309,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -3167,21 +2330,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -3197,64 +2350,34 @@ module Orb class PaymentAttempt < Orb::BaseModel # The ID of the payment attempt. sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The amount of the payment attempt. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The time at which the payment attempt was created. sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The payment provider that attempted to collect the payment. - sig { returns(T.nilable(Symbol)) } - def payment_provider - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def payment_provider=(_) - end + sig { returns(T.nilable(Orb::Models::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol)) } + attr_accessor :payment_provider # The ID of the payment attempt in the payment provider. sig { returns(T.nilable(String)) } - def payment_provider_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def payment_provider_id=(_) - end + attr_accessor :payment_provider_id # Whether the payment attempt succeeded. sig { returns(T::Boolean) } - def succeeded - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def succeeded=(_) - end + attr_accessor :succeeded sig do params( id: String, amount: String, created_at: Time, - payment_provider: T.nilable(Symbol), + payment_provider: T.nilable(Orb::Models::Invoice::PaymentAttempt::PaymentProvider::OrSymbol), payment_provider_id: T.nilable(String), succeeded: T::Boolean ) @@ -3270,7 +2393,7 @@ module Orb id: String, amount: String, created_at: Time, - payment_provider: T.nilable(Symbol), + payment_provider: T.nilable(Orb::Models::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol), payment_provider_id: T.nilable(String), succeeded: T::Boolean } @@ -3280,63 +2403,41 @@ module Orb end # The payment provider that attempted to collect the payment. - class PaymentProvider < Orb::Enum - abstract! + module PaymentProvider + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::PaymentAttempt::PaymentProvider) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + STRIPE = T.let(:stripe, Orb::Models::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol) - STRIPE = :stripe + class << self + sig { override.returns(T::Array[Orb::Models::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol]) } + def values + end + end end end class ShippingAddress < Orb::BaseModel sig { returns(T.nilable(String)) } - def city - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def city=(_) - end + attr_accessor :city sig { returns(T.nilable(String)) } - def country - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def country=(_) - end + attr_accessor :country sig { returns(T.nilable(String)) } - def line1 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_) - end + attr_accessor :line1 sig { returns(T.nilable(String)) } - def line2 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_) - end + attr_accessor :line2 sig { returns(T.nilable(String)) } - def postal_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_) - end + attr_accessor :postal_code sig { returns(T.nilable(String)) } - def state - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def state=(_) - end + attr_accessor :state sig do params( @@ -3369,26 +2470,28 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Invoice::Status) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Invoice::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ISSUED = T.let(:issued, Orb::Models::Invoice::Status::TaggedSymbol) + PAID = T.let(:paid, Orb::Models::Invoice::Status::TaggedSymbol) + SYNCED = T.let(:synced, Orb::Models::Invoice::Status::TaggedSymbol) + VOID = T.let(:void, Orb::Models::Invoice::Status::TaggedSymbol) + DRAFT = T.let(:draft, Orb::Models::Invoice::Status::TaggedSymbol) - ISSUED = :issued - PAID = :paid - SYNCED = :synced - VOID = :void - DRAFT = :draft + class << self + sig { override.returns(T::Array[Orb::Models::Invoice::Status::TaggedSymbol]) } + def values + end + end end class Subscription < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) diff --git a/rbi/lib/orb/models/invoice_create_params.rbi b/rbi/lib/orb/models/invoice_create_params.rbi index 31f69e02..d55bde04 100644 --- a/rbi/lib/orb/models/invoice_create_params.rbi +++ b/rbi/lib/orb/models/invoice_create_params.rbi @@ -9,55 +9,27 @@ module Orb # An ISO 4217 currency string. Must be the same as the customer's currency if it # is set. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # Optional invoice date to set. Must be in the past, if not set, `invoice_date` is # set to the current time in the customer's timezone. sig { returns(Time) } - def invoice_date - end - - sig { params(_: Time).returns(Time) } - def invoice_date=(_) - end + attr_accessor :invoice_date sig { returns(T::Array[Orb::Models::InvoiceCreateParams::LineItem]) } - def line_items - end - - sig do - params(_: T::Array[Orb::Models::InvoiceCreateParams::LineItem]) - .returns(T::Array[Orb::Models::InvoiceCreateParams::LineItem]) - end - def line_items=(_) - end + attr_accessor :line_items # Determines the difference between the invoice issue date for subscription # invoices as the date that they are due. A value of '0' here represents that the # invoice is due on issue, whereas a value of 30 represents that the customer has # 30 days to pay the invoice. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # The id of the `Customer` to create this invoice for. One of `customer_id` and # `external_customer_id` are required. sig { returns(T.nilable(String)) } - def customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end + attr_accessor :customer_id # An optional discount to attach to the invoice. sig do @@ -72,87 +44,42 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount # The `external_customer_id` of the `Customer` to create this invoice for. One of # `customer_id` and `external_customer_id` are required. sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id # An optional memo to attach to the invoice. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # When true, this invoice will automatically be issued upon creation. When false, # the resulting invoice will require manual review to issue. Defaulted to false. sig { returns(T.nilable(T::Boolean)) } - def will_auto_issue - end + attr_reader :will_auto_issue - sig { params(_: T::Boolean).returns(T::Boolean) } - def will_auto_issue=(_) - end + sig { params(will_auto_issue: T::Boolean).void } + attr_writer :will_auto_issue sig do params( currency: String, invoice_date: Time, - line_items: T::Array[Orb::Models::InvoiceCreateParams::LineItem], + line_items: T::Array[T.any(Orb::Models::InvoiceCreateParams::LineItem, Orb::Util::AnyHash)], net_terms: Integer, customer_id: T.nilable(String), discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -162,7 +89,7 @@ module Orb memo: T.nilable(String), 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]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -212,76 +139,41 @@ module Orb class LineItem < Orb::BaseModel # A date string to specify the line item's end date in the customer's timezone. sig { returns(Date) } - def end_date - end - - sig { params(_: Date).returns(Date) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(String) } - def item_id - end + attr_accessor :item_id - sig { params(_: String).returns(String) } - def item_id=(_) - end - - sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + sig { returns(Orb::Models::InvoiceCreateParams::LineItem::ModelType::OrSymbol) } + attr_accessor :model_type # The name of the line item. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The number of units on the line item sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity # A date string to specify the line item's start date in the customer's timezone. sig { returns(Date) } - def start_date - end - - sig { params(_: Date).returns(Date) } - def start_date=(_) - end + attr_accessor :start_date sig { returns(Orb::Models::InvoiceCreateParams::LineItem::UnitConfig) } - def unit_config - end + attr_reader :unit_config - sig do - params(_: Orb::Models::InvoiceCreateParams::LineItem::UnitConfig) - .returns(Orb::Models::InvoiceCreateParams::LineItem::UnitConfig) - end - def unit_config=(_) - end + sig { params(unit_config: T.any(Orb::Models::InvoiceCreateParams::LineItem::UnitConfig, Orb::Util::AnyHash)).void } + attr_writer :unit_config sig do params( end_date: Date, item_id: String, - model_type: Symbol, + model_type: Orb::Models::InvoiceCreateParams::LineItem::ModelType::OrSymbol, name: String, quantity: Float, start_date: Date, - unit_config: Orb::Models::InvoiceCreateParams::LineItem::UnitConfig + unit_config: T.any(Orb::Models::InvoiceCreateParams::LineItem::UnitConfig, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -294,7 +186,7 @@ module Orb { end_date: Date, item_id: String, - model_type: Symbol, + model_type: Orb::Models::InvoiceCreateParams::LineItem::ModelType::OrSymbol, name: String, quantity: Float, start_date: Date, @@ -305,23 +197,26 @@ module Orb def to_hash end - class ModelType < Orb::Enum - abstract! + module ModelType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::InvoiceCreateParams::LineItem::ModelType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::InvoiceCreateParams::LineItem::ModelType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + UNIT = T.let(:unit, Orb::Models::InvoiceCreateParams::LineItem::ModelType::TaggedSymbol) - UNIT = :unit + class << self + sig { override.returns(T::Array[Orb::Models::InvoiceCreateParams::LineItem::ModelType::TaggedSymbol]) } + def values + end + end end class UnitConfig < Orb::BaseModel # Rate per unit of usage sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig { params(unit_amount: String).returns(T.attached_class) } def self.new(unit_amount:) diff --git a/rbi/lib/orb/models/invoice_fetch_params.rbi b/rbi/lib/orb/models/invoice_fetch_params.rbi index 0dd5cafe..1fb78b09 100644 --- a/rbi/lib/orb/models/invoice_fetch_params.rbi +++ b/rbi/lib/orb/models/invoice_fetch_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi b/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi index b8ac54fb..4c7acb11 100644 --- a/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi +++ b/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi @@ -7,18 +7,10 @@ module Orb include Orb::RequestParameters sig { returns(String) } - def subscription_id - end - - sig { params(_: String).returns(String) } - def subscription_id=(_) - end + attr_accessor :subscription_id sig do - params( - subscription_id: String, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ) + params(subscription_id: String, request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)) .returns(T.attached_class) end def self.new(subscription_id:, request_options: {}) diff --git a/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi b/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi index 7569ae94..848071dc 100644 --- a/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi +++ b/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi @@ -4,96 +4,55 @@ module Orb module Models class InvoiceFetchUpcomingResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # This is the final amount required to be charged to the customer and reflects the # application of the customer balance to the `total` of the invoice. sig { returns(String) } - def amount_due - end - - sig { params(_: String).returns(String) } - def amount_due=(_) - end + attr_accessor :amount_due sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection) } - def auto_collection - end + attr_reader :auto_collection sig do - params(_: Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection) - .returns(Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection) - end - def auto_collection=(_) + params( + auto_collection: T.any(Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection, Orb::Util::AnyHash) + ) + .void end + attr_writer :auto_collection sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress)) } - def billing_address - end + attr_reader :billing_address sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress)) - .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress)) - end - def billing_address=(_) + params( + billing_address: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billing_address # The creation time of the resource in Orb. sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # A list of credit notes associated with the invoice sig { returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote]) } - def credit_notes - end - - sig do - params(_: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote]) - .returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote]) - end - def credit_notes=(_) - end + attr_accessor :credit_notes # An ISO 4217 currency string or `credits` sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::Customer) } - def customer - end + attr_reader :customer - sig do - params(_: Orb::Models::InvoiceFetchUpcomingResponse::Customer) - .returns(Orb::Models::InvoiceFetchUpcomingResponse::Customer) - end - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::InvoiceFetchUpcomingResponse::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer sig { returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction]) } - def customer_balance_transactions - end - - sig do - params(_: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction]) - .returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction]) - end - def customer_balance_transactions=(_) - end + attr_accessor :customer_balance_transactions # Tax IDs are commonly required to be displayed on customer invoices, which are # added to the headers of invoices. @@ -201,374 +160,229 @@ module Orb # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID)) } - def customer_tax_id - end + attr_reader :customer_tax_id sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID)) - .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID)) - end - def customer_tax_id=(_) + params( + customer_tax_id: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID, Orb::Util::AnyHash)) + ) + .void end + attr_writer :customer_tax_id # This field is deprecated in favor of `discounts`. If a `discounts` list is # provided, the first discount in the list will be returned. If the list is empty, # `None` will be returned. sig { returns(T.anything) } - def discount - end - - sig { params(_: T.anything).returns(T.anything) } - def discount=(_) - end + attr_accessor :discount sig do returns( T::Array[T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)] ) end - def discounts - end - - 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)] - ) - end - def discounts=(_) - end + attr_accessor :discounts # When the invoice payment is due. The due date is null if the invoice is not yet # finalized. sig { returns(T.nilable(Time)) } - def due_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def due_date=(_) - end + attr_accessor :due_date # If the invoice has a status of `draft`, this will be the time that the invoice # will be eligible to be issued, otherwise it will be `null`. If `auto-issue` is # true, the invoice will automatically begin issuing at this time. sig { returns(T.nilable(Time)) } - def eligible_to_issue_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def eligible_to_issue_at=(_) - end + attr_accessor :eligible_to_issue_at # A URL for the customer-facing invoice portal. This URL expires 30 days after the # invoice's due date, or 60 days after being re-generated through the UI. sig { returns(T.nilable(String)) } - def hosted_invoice_url - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def hosted_invoice_url=(_) - end + attr_accessor :hosted_invoice_url # Automatically generated invoice number to help track and reconcile invoices. # Invoice numbers have a prefix such as `RFOBWG`. These can be sequential per # account or customer. sig { returns(String) } - def invoice_number - end - - sig { params(_: String).returns(String) } - def invoice_number=(_) - end + attr_accessor :invoice_number # The link to download the PDF representation of the `Invoice`. sig { returns(T.nilable(String)) } - def invoice_pdf - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_pdf=(_) - end - - sig { returns(Symbol) } - def invoice_source - end + attr_accessor :invoice_pdf - sig { params(_: Symbol).returns(Symbol) } - def invoice_source=(_) - end + sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol) } + attr_accessor :invoice_source # If the invoice failed to issue, this will be the last time it failed to issue # (even if it is now in a different state.) sig { returns(T.nilable(Time)) } - def issue_failed_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def issue_failed_at=(_) - end + attr_accessor :issue_failed_at # If the invoice has been issued, this will be the time it transitioned to # `issued` (even if it is now in a different state.) sig { returns(T.nilable(Time)) } - def issued_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def issued_at=(_) - end + attr_accessor :issued_at # The breakdown of prices in this invoice. sig { returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem]) } - def line_items - end - - sig do - params(_: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem]) - .returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem]) - end - def line_items=(_) - end + attr_accessor :line_items sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Maximum)) - .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Maximum)) - end - def maximum=(_) + params(maximum: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::Maximum, Orb::Util::AnyHash))) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # Free-form text which is available on the invoice PDF and the Orb invoice portal. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Minimum)) - .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Minimum)) - end - def minimum=(_) + params(minimum: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::Minimum, Orb::Util::AnyHash))) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # If the invoice has a status of `paid`, this gives a timestamp when the invoice # was paid. sig { returns(T.nilable(Time)) } - def paid_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def paid_at=(_) - end + attr_accessor :paid_at # A list of payment attempts associated with the invoice sig { returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt]) } - def payment_attempts - end - - sig do - params(_: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt]) - .returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt]) - end - def payment_attempts=(_) - end + attr_accessor :payment_attempts # If payment was attempted on this invoice but failed, this will be the time of # the most recent attempt. sig { returns(T.nilable(Time)) } - def payment_failed_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def payment_failed_at=(_) - end + attr_accessor :payment_failed_at # If payment was attempted on this invoice, this will be the start time of the # most recent attempt. This field is especially useful for delayed-notification # payment mechanisms (like bank transfers), where payment can take 3 days or more. sig { returns(T.nilable(Time)) } - def payment_started_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def payment_started_at=(_) - end + attr_accessor :payment_started_at # If the invoice is in draft, this timestamp will reflect when the invoice is # scheduled to be issued. sig { returns(T.nilable(Time)) } - def scheduled_issue_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def scheduled_issue_at=(_) - end + attr_accessor :scheduled_issue_at sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress)) } - def shipping_address - end + attr_reader :shipping_address sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress)) - .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress)) - end - def shipping_address=(_) - end - - sig { returns(Symbol) } - def status + params( + shipping_address: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress, Orb::Util::AnyHash)) + ) + .void end + attr_writer :shipping_address - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Subscription)) } - def subscription - end + attr_reader :subscription sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Subscription)) - .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Subscription)) - end - def subscription=(_) + params( + subscription: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::Subscription, Orb::Util::AnyHash)) + ) + .void end + attr_writer :subscription # The total before any discounts and minimums are applied. sig { returns(String) } - def subtotal - end - - sig { params(_: String).returns(String) } - def subtotal=(_) - end + attr_accessor :subtotal # If the invoice failed to sync, this will be the last time an external invoicing # provider sync was attempted. This field will always be `null` for invoices using # Orb Invoicing. sig { returns(T.nilable(Time)) } - def sync_failed_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def sync_failed_at=(_) - end + attr_accessor :sync_failed_at # The scheduled date of the invoice sig { returns(Time) } - def target_date - end - - sig { params(_: Time).returns(Time) } - def target_date=(_) - end + attr_accessor :target_date # The total after any minimums and discounts have been applied. sig { returns(String) } - def total - end - - sig { params(_: String).returns(String) } - def total=(_) - end + attr_accessor :total # If the invoice has a status of `void`, this gives a timestamp when the invoice # was voided. sig { returns(T.nilable(Time)) } - def voided_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def voided_at=(_) - end + attr_accessor :voided_at # This is true if the invoice will be automatically issued in the future, and # false otherwise. sig { returns(T::Boolean) } - def will_auto_issue - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def will_auto_issue=(_) - end + attr_accessor :will_auto_issue sig do params( id: String, amount_due: String, - auto_collection: Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection, - billing_address: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress), + auto_collection: T.any(Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection, Orb::Util::AnyHash), + billing_address: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress, Orb::Util::AnyHash)), created_at: Time, - credit_notes: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote], + credit_notes: T::Array[T.any(Orb::Models::InvoiceFetchUpcomingResponse::CreditNote, Orb::Util::AnyHash)], 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), + customer: T.any(Orb::Models::InvoiceFetchUpcomingResponse::Customer, Orb::Util::AnyHash), + customer_balance_transactions: T::Array[T.any(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction, Orb::Util::AnyHash)], + customer_tax_id: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID, Orb::Util::AnyHash)), 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::Util::AnyHash, + 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, + invoice_source: Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::OrSymbol, 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), + line_items: T::Array[T.any(Orb::Models::InvoiceFetchUpcomingResponse::LineItem, Orb::Util::AnyHash)], + maximum: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), memo: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Minimum), + minimum: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), paid_at: T.nilable(Time), - payment_attempts: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt], + payment_attempts: T::Array[T.any(Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt, Orb::Util::AnyHash)], 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), + shipping_address: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress, Orb::Util::AnyHash)), + status: Orb::Models::InvoiceFetchUpcomingResponse::Status::OrSymbol, + subscription: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::Subscription, Orb::Util::AnyHash)), subtotal: String, sync_failed_at: T.nilable(Time), target_date: Time, @@ -644,7 +458,7 @@ module Orb hosted_invoice_url: T.nilable(String), invoice_number: String, invoice_pdf: T.nilable(String), - invoice_source: Symbol, + invoice_source: Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol, issue_failed_at: T.nilable(Time), issued_at: T.nilable(Time), line_items: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem], @@ -660,7 +474,7 @@ module Orb payment_started_at: T.nilable(Time), scheduled_issue_at: T.nilable(Time), shipping_address: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress), - status: Symbol, + status: Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol, subscription: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Subscription), subtotal: String, sync_failed_at: T.nilable(Time), @@ -677,32 +491,17 @@ module Orb class AutoCollection < Orb::BaseModel # True only if auto-collection is enabled for this invoice. sig { returns(T.nilable(T::Boolean)) } - def enabled - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def enabled=(_) - end + attr_accessor :enabled # If the invoice is scheduled for auto-collection, this field will reflect when # the next attempt will occur. If dunning has been exhausted, or auto-collection # is not enabled for this invoice, this field will be `null`. sig { returns(T.nilable(Time)) } - def next_attempt_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def next_attempt_at=(_) - end + attr_accessor :next_attempt_at # Number of auto-collection payment attempts. sig { returns(T.nilable(Integer)) } - def num_attempts - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def num_attempts=(_) - end + attr_accessor :num_attempts # If Orb has ever attempted payment auto-collection for this invoice, this field # will reflect when that attempt occurred. In conjunction with `next_attempt_at`, @@ -711,12 +510,7 @@ module Orb # if dunning has been exhausted (`previously_attempted_at` is non-null, but # `next_attempt_time` is null). sig { returns(T.nilable(Time)) } - def previously_attempted_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def previously_attempted_at=(_) - end + attr_accessor :previously_attempted_at sig do params( @@ -747,52 +541,22 @@ module Orb class BillingAddress < Orb::BaseModel sig { returns(T.nilable(String)) } - def city - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def city=(_) - end + attr_accessor :city sig { returns(T.nilable(String)) } - def country - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def country=(_) - end + attr_accessor :country sig { returns(T.nilable(String)) } - def line1 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_) - end + attr_accessor :line1 sig { returns(T.nilable(String)) } - def line2 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_) - end + attr_accessor :line2 sig { returns(T.nilable(String)) } - def postal_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_) - end + attr_accessor :postal_code sig { returns(T.nilable(String)) } - def state - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def state=(_) - end + attr_accessor :state sig do params( @@ -827,63 +591,28 @@ module Orb class CreditNote < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def credit_note_number - end - - sig { params(_: String).returns(String) } - def credit_note_number=(_) - end + attr_accessor :credit_note_number # An optional memo supplied on the credit note. sig { returns(T.nilable(String)) } - def memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def memo=(_) - end + attr_accessor :memo sig { returns(String) } - def reason - end - - sig { params(_: String).returns(String) } - def reason=(_) - end + attr_accessor :reason sig { returns(String) } - def total - end - - sig { params(_: String).returns(String) } - def total=(_) - end + attr_accessor :total sig { returns(String) } - def type - end - - sig { params(_: String).returns(String) } - def type=(_) - end + attr_accessor :type # If the credit note has a status of `void`, this gives a timestamp when the # credit note was voided. sig { returns(T.nilable(Time)) } - def voided_at - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def voided_at=(_) - end + attr_accessor :voided_at sig do params( @@ -920,20 +649,10 @@ module Orb class Customer < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { params(id: String, external_customer_id: T.nilable(String)).returns(T.attached_class) } def self.new(id:, external_customer_id:) @@ -947,110 +666,84 @@ module Orb class CustomerBalanceTransaction < Orb::BaseModel # A unique id for this transaction. sig { returns(String) } - def id - end + attr_accessor :id - sig { params(_: String).returns(String) } - def id=(_) - end - - sig { returns(Symbol) } - def action - end - - sig { params(_: Symbol).returns(Symbol) } - def action=(_) - end + sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol) } + attr_accessor :action # The value of the amount changed in the transaction. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The creation time of this transaction. sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote)) } - def credit_note - end + attr_reader :credit_note sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote)) - .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote)) - end - def credit_note=(_) + params( + credit_note: T.nilable( + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :credit_note # An optional description provided for manual customer balance adjustments. sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description # The new value of the customer's balance prior to the transaction, in the # customer's currency. sig { returns(String) } - def ending_balance - end - - sig { params(_: String).returns(String) } - def ending_balance=(_) - end + attr_accessor :ending_balance sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice)) } - def invoice - end + attr_reader :invoice sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice)) - .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice)) - end - def invoice=(_) + params( + invoice: T.nilable( + T.any(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoice # The original value of the customer's balance prior to the transaction, in the # customer's currency. sig { returns(String) } - def starting_balance - end - - sig { params(_: String).returns(String) } - def starting_balance=(_) - end + attr_accessor :starting_balance - sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::TaggedSymbol) } + attr_accessor :type sig do params( id: String, - action: Symbol, + action: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::OrSymbol, amount: String, created_at: Time, - credit_note: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote), + credit_note: T.nilable( + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote, + Orb::Util::AnyHash + ) + ), description: T.nilable(String), ending_balance: String, - invoice: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice), + invoice: T.nilable( + T.any(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice, Orb::Util::AnyHash) + ), starting_balance: String, - type: Symbol + type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::OrSymbol ) .returns(T.attached_class) end @@ -1073,7 +766,7 @@ module Orb .returns( { id: String, - action: Symbol, + action: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol, amount: String, created_at: Time, credit_note: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote), @@ -1081,38 +774,83 @@ module Orb ending_balance: String, invoice: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice), starting_balance: String, - type: Symbol + type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::TaggedSymbol } ) end def to_hash end - class Action < Orb::Enum - abstract! + module Action + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol) } - APPLIED_TO_INVOICE = :applied_to_invoice - MANUAL_ADJUSTMENT = :manual_adjustment - PRORATED_REFUND = :prorated_refund - REVERT_PRORATED_REFUND = :revert_prorated_refund - RETURN_FROM_VOIDING = :return_from_voiding - CREDIT_NOTE_APPLIED = :credit_note_applied - CREDIT_NOTE_VOIDED = :credit_note_voided - OVERPAYMENT_REFUND = :overpayment_refund - EXTERNAL_PAYMENT = :external_payment - end - - class CreditNote < Orb::BaseModel - # The id of the Credit note - sig { returns(String) } - def id - end + APPLIED_TO_INVOICE = + T.let( + :applied_to_invoice, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol + ) + MANUAL_ADJUSTMENT = + T.let( + :manual_adjustment, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol + ) + PRORATED_REFUND = + T.let( + :prorated_refund, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol + ) + REVERT_PRORATED_REFUND = + T.let( + :revert_prorated_refund, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol + ) + RETURN_FROM_VOIDING = + T.let( + :return_from_voiding, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol + ) + CREDIT_NOTE_APPLIED = + T.let( + :credit_note_applied, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol + ) + CREDIT_NOTE_VOIDED = + T.let( + :credit_note_voided, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol + ) + OVERPAYMENT_REFUND = + T.let( + :overpayment_refund, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol + ) + EXTERNAL_PAYMENT = + T.let( + :external_payment, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol + ) - sig { params(_: String).returns(String) } - def id=(_) - end + class << self + sig do + override + .returns( + T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol] + ) + end + def values + end + end + end + + class CreditNote < Orb::BaseModel + # The id of the Credit note + sig { returns(String) } + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -1126,12 +864,7 @@ module Orb class Invoice < Orb::BaseModel # The Invoice id sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -1142,40 +875,47 @@ module Orb end end - class Type < Orb::Enum - abstract! + module Type + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::TaggedSymbol) } - INCREMENT = :increment - DECREMENT = :decrement + INCREMENT = + T.let( + :increment, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::TaggedSymbol + ) + DECREMENT = + T.let( + :decrement, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::TaggedSymbol] + ) + end + def values + end + end end end class CustomerTaxID < Orb::BaseModel - sig { returns(Symbol) } - def country - end + sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) } + attr_accessor :country - sig { params(_: Symbol).returns(Symbol) } - def country=(_) - end - - sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) } + attr_accessor :type sig { returns(String) } - def value - end - - sig { params(_: String).returns(String) } - def value=(_) - end + attr_accessor :value # Tax IDs are commonly required to be displayed on customer invoices, which are # added to the headers of invoices. @@ -1282,207 +1022,247 @@ module Orb # | Uruguay | `uy_ruc` | Uruguayan RUC Number | # | Venezuela | `ve_rif` | Venezuelan RIF Number | # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | - sig { params(country: Symbol, type: Symbol, value: String).returns(T.attached_class) } + sig do + params( + country: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::OrSymbol, + type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::OrSymbol, + value: String + ) + .returns(T.attached_class) + end def self.new(country:, type:, value:) end - sig { override.returns({country: Symbol, type: Symbol, value: String}) } + sig do + override + .returns( + { + country: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol, + type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol, + value: String + } + ) + end def to_hash end - class Country < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - AD = :AD - AE = :AE - AR = :AR - AT = :AT - AU = :AU - BE = :BE - BG = :BG - BH = :BH - BO = :BO - BR = :BR - CA = :CA - CH = :CH - CL = :CL - CN = :CN - CO = :CO - CR = :CR - CY = :CY - CZ = :CZ - DE = :DE - DK = :DK - EE = :EE - DO = :DO - EC = :EC - EG = :EG - ES = :ES - EU = :EU - FI = :FI - FR = :FR - GB = :GB - GE = :GE - GR = :GR - HK = :HK - HR = :HR - HU = :HU - ID = :ID - IE = :IE - IL = :IL - IN = :IN - IS = :IS - IT = :IT - JP = :JP - KE = :KE - KR = :KR - KZ = :KZ - LI = :LI - LT = :LT - LU = :LU - LV = :LV - MT = :MT - MX = :MX - MY = :MY - NG = :NG - NL = :NL - NO = :NO - NZ = :NZ - OM = :OM - PE = :PE - PH = :PH - PL = :PL - PT = :PT - RO = :RO - RS = :RS - RU = :RU - SA = :SA - SE = :SE - SG = :SG - SI = :SI - SK = :SK - SV = :SV - TH = :TH - TR = :TR - TW = :TW - UA = :UA - US = :US - UY = :UY - VE = :VE - VN = :VN - ZA = :ZA - end - - class Type < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - AD_NRT = :ad_nrt - AE_TRN = :ae_trn - AR_CUIT = :ar_cuit - EU_VAT = :eu_vat - AU_ABN = :au_abn - AU_ARN = :au_arn - BG_UIC = :bg_uic - BH_VAT = :bh_vat - BO_TIN = :bo_tin - BR_CNPJ = :br_cnpj - BR_CPF = :br_cpf - CA_BN = :ca_bn - CA_GST_HST = :ca_gst_hst - CA_PST_BC = :ca_pst_bc - CA_PST_MB = :ca_pst_mb - CA_PST_SK = :ca_pst_sk - CA_QST = :ca_qst - CH_VAT = :ch_vat - CL_TIN = :cl_tin - CN_TIN = :cn_tin - CO_NIT = :co_nit - CR_TIN = :cr_tin - DO_RCN = :do_rcn - EC_RUC = :ec_ruc - EG_TIN = :eg_tin - ES_CIF = :es_cif - EU_OSS_VAT = :eu_oss_vat - GB_VAT = :gb_vat - GE_VAT = :ge_vat - HK_BR = :hk_br - HU_TIN = :hu_tin - ID_NPWP = :id_npwp - IL_VAT = :il_vat - IN_GST = :in_gst - IS_VAT = :is_vat - JP_CN = :jp_cn - JP_RN = :jp_rn - JP_TRN = :jp_trn - KE_PIN = :ke_pin - KR_BRN = :kr_brn - KZ_BIN = :kz_bin - LI_UID = :li_uid - MX_RFC = :mx_rfc - MY_FRP = :my_frp - MY_ITN = :my_itn - MY_SST = :my_sst - NG_TIN = :ng_tin - NO_VAT = :no_vat - NO_VOEC = :no_voec - NZ_GST = :nz_gst - OM_VAT = :om_vat - PE_RUC = :pe_ruc - PH_TIN = :ph_tin - RO_TIN = :ro_tin - RS_PIB = :rs_pib - RU_INN = :ru_inn - RU_KPP = :ru_kpp - SA_VAT = :sa_vat - SG_GST = :sg_gst - SG_UEN = :sg_uen - SI_TIN = :si_tin - SV_NIT = :sv_nit - TH_VAT = :th_vat - TR_TIN = :tr_tin - TW_VAT = :tw_vat - UA_VAT = :ua_vat - US_EIN = :us_ein - UY_RUC = :uy_ruc - VE_RIF = :ve_rif - VN_TIN = :vn_tin - ZA_VAT = :za_vat + module Country + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) } + + AD = T.let(:AD, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + AE = T.let(:AE, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + AR = T.let(:AR, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + AT = T.let(:AT, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + AU = T.let(:AU, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + BE = T.let(:BE, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + BG = T.let(:BG, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + BH = T.let(:BH, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + BO = T.let(:BO, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + BR = T.let(:BR, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + CA = T.let(:CA, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + CH = T.let(:CH, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + CL = T.let(:CL, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + CN = T.let(:CN, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + CO = T.let(:CO, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + CR = T.let(:CR, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + CY = T.let(:CY, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + CZ = T.let(:CZ, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + DE = T.let(:DE, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + DK = T.let(:DK, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + EE = T.let(:EE, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + DO = T.let(:DO, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + EC = T.let(:EC, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + EG = T.let(:EG, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + ES = T.let(:ES, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + EU = T.let(:EU, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + FI = T.let(:FI, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + FR = T.let(:FR, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + GB = T.let(:GB, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + GE = T.let(:GE, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + GR = T.let(:GR, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + HK = T.let(:HK, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + HR = T.let(:HR, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + HU = T.let(:HU, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + ID = T.let(:ID, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + IE = T.let(:IE, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + IL = T.let(:IL, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + IN = T.let(:IN, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + IS = T.let(:IS, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + IT = T.let(:IT, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + JP = T.let(:JP, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + KE = T.let(:KE, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + KR = T.let(:KR, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + KZ = T.let(:KZ, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + LI = T.let(:LI, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + LT = T.let(:LT, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + LU = T.let(:LU, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + LV = T.let(:LV, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + MT = T.let(:MT, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + MX = T.let(:MX, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + MY = T.let(:MY, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + NG = T.let(:NG, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + NL = T.let(:NL, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + NO = T.let(:NO, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + NZ = T.let(:NZ, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + OM = T.let(:OM, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + PE = T.let(:PE, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + PH = T.let(:PH, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + PL = T.let(:PL, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + PT = T.let(:PT, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + RO = T.let(:RO, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + RS = T.let(:RS, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + RU = T.let(:RU, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + SA = T.let(:SA, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + SE = T.let(:SE, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + SG = T.let(:SG, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + SI = T.let(:SI, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + SK = T.let(:SK, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + SV = T.let(:SV, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + TH = T.let(:TH, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + TR = T.let(:TR, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + TW = T.let(:TW, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + UA = T.let(:UA, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + US = T.let(:US, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + UY = T.let(:UY, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + VE = T.let(:VE, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + VN = T.let(:VN, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + ZA = T.let(:ZA, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol) + + class << self + sig do + override.returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol]) + end + def values + end + end + end + + module Type + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) } + + AD_NRT = T.let(:ad_nrt, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + AE_TRN = T.let(:ae_trn, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + AR_CUIT = T.let(:ar_cuit, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + EU_VAT = T.let(:eu_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + AU_ABN = T.let(:au_abn, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + AU_ARN = T.let(:au_arn, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + BG_UIC = T.let(:bg_uic, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + BH_VAT = T.let(:bh_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + BO_TIN = T.let(:bo_tin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + BR_CNPJ = T.let(:br_cnpj, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + BR_CPF = T.let(:br_cpf, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + CA_BN = T.let(:ca_bn, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + CA_GST_HST = + T.let(:ca_gst_hst, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + CA_PST_BC = + T.let(:ca_pst_bc, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + CA_PST_MB = + T.let(:ca_pst_mb, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + CA_PST_SK = + T.let(:ca_pst_sk, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + CA_QST = T.let(:ca_qst, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + CH_VAT = T.let(:ch_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + CL_TIN = T.let(:cl_tin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + CN_TIN = T.let(:cn_tin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + CO_NIT = T.let(:co_nit, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + CR_TIN = T.let(:cr_tin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + DO_RCN = T.let(:do_rcn, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + EC_RUC = T.let(:ec_ruc, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + EG_TIN = T.let(:eg_tin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + ES_CIF = T.let(:es_cif, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + EU_OSS_VAT = + T.let(:eu_oss_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + GB_VAT = T.let(:gb_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + GE_VAT = T.let(:ge_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + HK_BR = T.let(:hk_br, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + HU_TIN = T.let(:hu_tin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + ID_NPWP = T.let(:id_npwp, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + IL_VAT = T.let(:il_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + IN_GST = T.let(:in_gst, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + IS_VAT = T.let(:is_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + JP_CN = T.let(:jp_cn, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + JP_RN = T.let(:jp_rn, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + JP_TRN = T.let(:jp_trn, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + KE_PIN = T.let(:ke_pin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + KR_BRN = T.let(:kr_brn, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + KZ_BIN = T.let(:kz_bin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + LI_UID = T.let(:li_uid, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + MX_RFC = T.let(:mx_rfc, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + MY_FRP = T.let(:my_frp, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + MY_ITN = T.let(:my_itn, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + MY_SST = T.let(:my_sst, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + NG_TIN = T.let(:ng_tin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + NO_VAT = T.let(:no_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + NO_VOEC = T.let(:no_voec, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + NZ_GST = T.let(:nz_gst, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + OM_VAT = T.let(:om_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + PE_RUC = T.let(:pe_ruc, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + PH_TIN = T.let(:ph_tin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + RO_TIN = T.let(:ro_tin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + RS_PIB = T.let(:rs_pib, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + RU_INN = T.let(:ru_inn, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + RU_KPP = T.let(:ru_kpp, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + SA_VAT = T.let(:sa_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + SG_GST = T.let(:sg_gst, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + SG_UEN = T.let(:sg_uen, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + SI_TIN = T.let(:si_tin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + SV_NIT = T.let(:sv_nit, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + TH_VAT = T.let(:th_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + TR_TIN = T.let(:tr_tin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + TW_VAT = T.let(:tw_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + UA_VAT = T.let(:ua_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + US_EIN = T.let(:us_ein, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + UY_RUC = T.let(:uy_ruc, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + VE_RIF = T.let(:ve_rif, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + VN_TIN = T.let(:vn_tin, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + ZA_VAT = T.let(:za_vat, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol]) } + def values + end + end end end - class InvoiceSource < Orb::Enum - abstract! + module InvoiceSource + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + SUBSCRIPTION = + T.let(:subscription, Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol) + PARTIAL = T.let(:partial, Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol) + ONE_OFF = T.let(:one_off, Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol) - SUBSCRIPTION = :subscription - PARTIAL = :partial - ONE_OFF = :one_off + class << self + sig { override.returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol]) } + def values + end + end end class LineItem < Orb::BaseModel # A unique ID for this line item. sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The line amount after any adjustments and before overage conversion, credits and # partial invoicing. sig { returns(String) } - def adjusted_subtotal - end - - sig { params(_: String).returns(String) } - def adjusted_subtotal=(_) - end + attr_accessor :adjusted_subtotal # All adjustments applied to the line item in the order they were applied based on # invoice calculations (ie. usage discounts -> amount discounts -> percentage @@ -1500,54 +1280,16 @@ module Orb ] ) end - def adjustments - end - - 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 - ) - ] - ) - end - def adjustments=(_) - end + attr_accessor :adjustments # The final amount for a line item after all adjustments and pre paid credits have # been applied. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The number of prepaid credits applied. sig { returns(String) } - def credits_applied - end - - sig { params(_: String).returns(String) } - def credits_applied=(_) - end + attr_accessor :credits_applied sig do returns( @@ -1561,122 +1303,61 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount # The end date of the range of time applied for this line item's price. sig { returns(Time) } - def end_date - end - - sig { params(_: Time).returns(Time) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter that was used to calculate the usage for this line item. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # [DEPRECATED] For configured prices that are split by a grouping key, this will # be populated with the key and a value. The `amount` and `subtotal` will be the # values for this particular grouping. sig { returns(T.nilable(String)) } - def grouping - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def grouping=(_) - end + attr_accessor :grouping # This field is deprecated in favor of `adjustments`. sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum)) - .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum # This field is deprecated in favor of `adjustments`. sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # This field is deprecated in favor of `adjustments`. sig { returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum)) - .returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum # This field is deprecated in favor of `adjustments`. sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The name of the price associated with this line item. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # Any amount applied from a partial invoice sig { returns(String) } - def partially_invoiced_amount - end - - sig { params(_: String).returns(String) } - def partially_invoiced_amount=(_) - end + attr_accessor :partially_invoiced_amount # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -1724,99 +1405,15 @@ module Orb ) ) end - def price - end - - sig do - params( - _: 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 + attr_accessor :price # Either the fixed fee quantity or the usage during the service period. sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity # The start date of the range of time applied for this line item's price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # For complex pricing structures, the line item can be broken down further in # `sub_line_items`. @@ -1831,62 +1428,20 @@ module Orb ] ) end - def sub_line_items - end - - 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 - ) - ] - ) - end - def sub_line_items=(_) - end + attr_accessor :sub_line_items # The line amount before before any adjustments. sig { returns(String) } - def subtotal - end - - sig { params(_: String).returns(String) } - def subtotal=(_) - end + attr_accessor :subtotal # An array of tax rates and their incurred tax amounts. Empty if no tax # integration is configured. sig { returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount]) } - def tax_amounts - end - - sig do - params(_: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount]) - .returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount]) - end - def tax_amounts=(_) - end + attr_accessor :tax_amounts # A list of customer ids that were used to calculate the usage for this line item. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids sig do params( @@ -1895,6 +1450,7 @@ module Orb adjustments: T::Array[ T.any( Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment, @@ -1906,6 +1462,7 @@ module Orb discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -1914,15 +1471,16 @@ module Orb end_date: Time, filter: T.nilable(String), grouping: T.nilable(String), - maximum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum), + maximum: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), - minimum: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum), + minimum: T.nilable(T.any(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, partially_invoiced_amount: String, price: T.nilable( T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -1957,12 +1515,13 @@ module Orb sub_line_items: T::Array[ T.any( Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, + Orb::Util::AnyHash, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem ) ], subtotal: String, - tax_amounts: T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount], + tax_amounts: T::Array[T.any(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount, Orb::Util::AnyHash)], usage_customer_ids: T.nilable(T::Array[String]) ) .returns(T.attached_class) @@ -2077,84 +1636,50 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union - Variants = type_template(:out) do - { - fixed: 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 + Variants = + type_template(:out) do + { + fixed: 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 class MonetaryUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -2199,67 +1724,32 @@ module Orb class MonetaryAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -2304,67 +1794,32 @@ module Orb class MonetaryPercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -2409,76 +1864,36 @@ module Orb class MonetaryMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end + attr_accessor :adjustment_type - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end - - # The value applied by an adjustment. - sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + # The value applied by an adjustment. + sig { returns(String) } + attr_accessor :amount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -2526,67 +1941,32 @@ module Orb class MonetaryMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -2628,27 +2008,28 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [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 variants + end + end end class Maximum < Orb::BaseModel # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # This field is deprecated in favor of `adjustments`. sig do @@ -2666,21 +2047,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # This field is deprecated in favor of `adjustments`. sig do @@ -2694,90 +2065,81 @@ module Orb end end - class SubLineItem < Orb::Union - abstract! + module SubLineItem + extend Orb::Union - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, - Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem + ) + } + end class MatrixSubLineItem < Orb::BaseModel # The total amount for this sub line item. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount sig do returns( T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping) ) end - def grouping - end + attr_reader :grouping sig do params( - _: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping) - ) - .returns( - T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping) + grouping: T.nilable( + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping, + Orb::Util::AnyHash + ) ) + ) + .void end - def grouping=(_) - end + attr_writer :grouping sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig) } - def matrix_config - end + attr_reader :matrix_config sig do params( - _: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig + matrix_config: T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, + Orb::Util::AnyHash + ) ) - .returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig) - end - def matrix_config=(_) + .void end + attr_writer :matrix_config sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + attr_accessor :type sig do params( amount: String, - grouping: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping), - matrix_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, + grouping: T.nilable( + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping, + Orb::Util::AnyHash + ) + ), + matrix_config: T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, + Orb::Util::AnyHash + ), name: String, quantity: Float, type: Symbol @@ -2805,21 +2167,11 @@ module Orb class Grouping < Orb::BaseModel sig { returns(String) } - def key - end - - sig { params(_: String).returns(String) } - def key=(_) - end + attr_accessor :key # No value indicates the default group sig { returns(T.nilable(String)) } - def value - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def value=(_) - end + attr_accessor :value sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } def self.new(key:, value:) @@ -2833,12 +2185,7 @@ module Orb class MatrixConfig < Orb::BaseModel # The ordered dimension values for this line item. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { params(dimension_values: T::Array[T.nilable(String)]).returns(T.attached_class) } def self.new(dimension_values:) @@ -2853,74 +2200,66 @@ module Orb class TierSubLineItem < Orb::BaseModel # The total amount for this sub line item. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount sig do returns( T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping) ) end - def grouping - end + attr_reader :grouping sig do params( - _: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping) - ) - .returns( - T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping) + grouping: T.nilable( + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping, + Orb::Util::AnyHash + ) ) + ) + .void end - def grouping=(_) - end + attr_writer :grouping sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig) } - def tier_config - end + attr_reader :tier_config sig do - params(_: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig) - .returns(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig) - end - def tier_config=(_) + params( + tier_config: T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :tier_config sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + attr_accessor :type sig do params( amount: String, - grouping: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping), + grouping: T.nilable( + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping, + Orb::Util::AnyHash + ) + ), name: String, quantity: Float, - tier_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig, + tier_config: T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig, + Orb::Util::AnyHash + ), type: Symbol ) .returns(T.attached_class) @@ -2946,21 +2285,11 @@ module Orb class Grouping < Orb::BaseModel sig { returns(String) } - def key - end - - sig { params(_: String).returns(String) } - def key=(_) - end + attr_accessor :key # No value indicates the default group sig { returns(T.nilable(String)) } - def value - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def value=(_) - end + attr_accessor :value sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } def self.new(key:, value:) @@ -2973,28 +2302,13 @@ module Orb class TierConfig < Orb::BaseModel sig { returns(Float) } - def first_unit - end - - sig { params(_: Float).returns(Float) } - def first_unit=(_) - end + attr_accessor :first_unit sig { returns(T.nilable(Float)) } - def last_unit - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def last_unit=(_) - end + attr_accessor :last_unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -3015,60 +2329,46 @@ module Orb class OtherSubLineItem < Orb::BaseModel # The total amount for this sub line item. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount sig do returns( T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping) ) end - def grouping - end + attr_reader :grouping sig do params( - _: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping) - ) - .returns( - T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping) + grouping: T.nilable( + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping, + Orb::Util::AnyHash + ) ) + ) + .void end - def grouping=(_) - end + attr_writer :grouping sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + attr_accessor :type sig do params( amount: String, - grouping: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping), + grouping: T.nilable( + T.any( + Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping, + Orb::Util::AnyHash + ) + ), name: String, quantity: Float, type: Symbol @@ -3095,21 +2395,11 @@ module Orb class Grouping < Orb::BaseModel sig { returns(String) } - def key - end - - sig { params(_: String).returns(String) } - def key=(_) - end + attr_accessor :key # No value indicates the default group sig { returns(T.nilable(String)) } - def value - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def value=(_) - end + attr_accessor :value sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } def self.new(key:, value:) @@ -3120,35 +2410,31 @@ module Orb end end end + + class << self + sig do + override + .returns( + [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem] + ) + end + def variants + end + end end class TaxAmount < Orb::BaseModel # The amount of additional tax incurred by this tax rate. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The human-readable description of the applied tax rate. sig { returns(String) } - def tax_rate_description - end - - sig { params(_: String).returns(String) } - def tax_rate_description=(_) - end + attr_accessor :tax_rate_description # The tax rate percentage, out of 100. sig { returns(T.nilable(String)) } - def tax_rate_percentage - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def tax_rate_percentage=(_) - end + attr_accessor :tax_rate_percentage sig do params(amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)) @@ -3175,21 +2461,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -3206,21 +2482,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -3236,64 +2502,38 @@ module Orb class PaymentAttempt < Orb::BaseModel # The ID of the payment attempt. sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The amount of the payment attempt. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The time at which the payment attempt was created. sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The payment provider that attempted to collect the payment. - sig { returns(T.nilable(Symbol)) } - def payment_provider - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def payment_provider=(_) + sig do + returns( + T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::TaggedSymbol) + ) end + attr_accessor :payment_provider # The ID of the payment attempt in the payment provider. sig { returns(T.nilable(String)) } - def payment_provider_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def payment_provider_id=(_) - end + attr_accessor :payment_provider_id # Whether the payment attempt succeeded. sig { returns(T::Boolean) } - def succeeded - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def succeeded=(_) - end + attr_accessor :succeeded sig do params( id: String, amount: String, created_at: Time, - payment_provider: T.nilable(Symbol), + payment_provider: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::OrSymbol), payment_provider_id: T.nilable(String), succeeded: T::Boolean ) @@ -3309,7 +2549,7 @@ module Orb id: String, amount: String, created_at: Time, - payment_provider: T.nilable(Symbol), + payment_provider: T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::TaggedSymbol), payment_provider_id: T.nilable(String), succeeded: T::Boolean } @@ -3319,63 +2559,48 @@ module Orb end # The payment provider that attempted to collect the payment. - class PaymentProvider < Orb::Enum - abstract! + module PaymentProvider + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::TaggedSymbol) } - STRIPE = :stripe + STRIPE = + T.let(:stripe, Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::TaggedSymbol) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::TaggedSymbol] + ) + end + def values + end + end end end class ShippingAddress < Orb::BaseModel sig { returns(T.nilable(String)) } - def city - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def city=(_) - end + attr_accessor :city sig { returns(T.nilable(String)) } - def country - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def country=(_) - end + attr_accessor :country sig { returns(T.nilable(String)) } - def line1 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line1=(_) - end + attr_accessor :line1 sig { returns(T.nilable(String)) } - def line2 - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def line2=(_) - end + attr_accessor :line2 sig { returns(T.nilable(String)) } - def postal_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def postal_code=(_) - end + attr_accessor :postal_code sig { returns(T.nilable(String)) } - def state - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def state=(_) - end + attr_accessor :state sig do params( @@ -3408,26 +2633,29 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol) } - ISSUED = :issued - PAID = :paid - SYNCED = :synced - VOID = :void - DRAFT = :draft + ISSUED = T.let(:issued, Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol) + PAID = T.let(:paid, Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol) + SYNCED = T.let(:synced, Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol) + VOID = T.let(:void, Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol) + DRAFT = T.let(:draft, Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol]) } + def values + end + end end class Subscription < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) diff --git a/rbi/lib/orb/models/invoice_issue_params.rbi b/rbi/lib/orb/models/invoice_issue_params.rbi index a5e5956c..7cd93c57 100644 --- a/rbi/lib/orb/models/invoice_issue_params.rbi +++ b/rbi/lib/orb/models/invoice_issue_params.rbi @@ -12,18 +12,13 @@ module Orb # provider, a successful response from this endpoint guarantees the invoice is # present in the provider. sig { returns(T.nilable(T::Boolean)) } - def synchronous - end + attr_reader :synchronous - sig { params(_: T::Boolean).returns(T::Boolean) } - def synchronous=(_) - end + sig { params(synchronous: T::Boolean).void } + attr_writer :synchronous sig do - params( - synchronous: T::Boolean, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) - ) + params(synchronous: T::Boolean, request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)) .returns(T.attached_class) end def self.new(synchronous: nil, request_options: {}) diff --git a/rbi/lib/orb/models/invoice_level_discount.rbi b/rbi/lib/orb/models/invoice_level_discount.rbi index f7bdaa4c..1581dab5 100644 --- a/rbi/lib/orb/models/invoice_level_discount.rbi +++ b/rbi/lib/orb/models/invoice_level_discount.rbi @@ -2,10 +2,20 @@ module Orb module Models - class InvoiceLevelDiscount < Orb::Union - abstract! + module InvoiceLevelDiscount + extend Orb::Union - Variants = type_template(:out) { {fixed: T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)} } + Variants = + type_template(:out) { {fixed: T.any(Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount)} } + + class << self + sig do + override + .returns([Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount]) + end + def variants + end + end end end 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 3863d653..f3c9bd60 100644 --- a/rbi/lib/orb/models/invoice_line_item_create_params.rbi +++ b/rbi/lib/orb/models/invoice_line_item_create_params.rbi @@ -8,58 +8,28 @@ module Orb # The total amount in the invoice's currency to add to the line item. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # A date string to specify the line item's end date in the customer's timezone. sig { returns(Date) } - def end_date - end - - sig { params(_: Date).returns(Date) } - def end_date=(_) - end + attr_accessor :end_date # The id of the Invoice to add this line item. sig { returns(String) } - def invoice_id - end - - sig { params(_: String).returns(String) } - def invoice_id=(_) - end + attr_accessor :invoice_id # The item name associated with this line item. If an item with the same name # exists in Orb, that item will be associated with the line item. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The number of units on the line item sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity # A date string to specify the line item's start date in the customer's timezone. sig { returns(Date) } - def start_date - end - - sig { params(_: Date).returns(Date) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -69,7 +39,7 @@ module Orb name: String, quantity: Float, start_date: Date, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) 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 9c237a98..adf94f49 100644 --- a/rbi/lib/orb/models/invoice_line_item_create_response.rbi +++ b/rbi/lib/orb/models/invoice_line_item_create_response.rbi @@ -5,22 +5,12 @@ module Orb class InvoiceLineItemCreateResponse < Orb::BaseModel # A unique ID for this line item. sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The line amount after any adjustments and before overage conversion, credits and # partial invoicing. sig { returns(String) } - def adjusted_subtotal - end - - sig { params(_: String).returns(String) } - def adjusted_subtotal=(_) - end + attr_accessor :adjusted_subtotal # All adjustments applied to the line item in the order they were applied based on # invoice calculations (ie. usage discounts -> amount discounts -> percentage @@ -38,54 +28,16 @@ module Orb ] ) end - def adjustments - end - - 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 - ) - ] - ) - end - def adjustments=(_) - end + attr_accessor :adjustments # The final amount for a line item after all adjustments and pre paid credits have # been applied. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The number of prepaid credits applied. sig { returns(String) } - def credits_applied - end - - sig { params(_: String).returns(String) } - def credits_applied=(_) - end + attr_accessor :credits_applied sig do returns( @@ -99,122 +51,57 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount # The end date of the range of time applied for this line item's price. sig { returns(Time) } - def end_date - end - - sig { params(_: Time).returns(Time) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter that was used to calculate the usage for this line item. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # [DEPRECATED] For configured prices that are split by a grouping key, this will # be populated with the key and a value. The `amount` and `subtotal` will be the # values for this particular grouping. sig { returns(T.nilable(String)) } - def grouping - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def grouping=(_) - end + attr_accessor :grouping # This field is deprecated in favor of `adjustments`. sig { returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Maximum)) - .returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Maximum)) - end - def maximum=(_) + params(maximum: T.nilable(T.any(Orb::Models::InvoiceLineItemCreateResponse::Maximum, Orb::Util::AnyHash))) + .void end + attr_writer :maximum # This field is deprecated in favor of `adjustments`. sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # This field is deprecated in favor of `adjustments`. sig { returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Minimum)) - .returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Minimum)) - end - def minimum=(_) + params(minimum: T.nilable(T.any(Orb::Models::InvoiceLineItemCreateResponse::Minimum, Orb::Util::AnyHash))) + .void end + attr_writer :minimum # This field is deprecated in favor of `adjustments`. sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The name of the price associated with this line item. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # Any amount applied from a partial invoice sig { returns(String) } - def partially_invoiced_amount - end - - sig { params(_: String).returns(String) } - def partially_invoiced_amount=(_) - end + attr_accessor :partially_invoiced_amount # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -262,99 +149,15 @@ module Orb ) ) end - def price - end - - sig do - params( - _: 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 + attr_accessor :price # Either the fixed fee quantity or the usage during the service period. sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity # The start date of the range of time applied for this line item's price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # For complex pricing structures, the line item can be broken down further in # `sub_line_items`. @@ -369,62 +172,20 @@ module Orb ] ) end - def sub_line_items - end - - sig do - params( - _: 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 + attr_accessor :sub_line_items # The line amount before before any adjustments. sig { returns(String) } - def subtotal - end - - sig { params(_: String).returns(String) } - def subtotal=(_) - end + attr_accessor :subtotal # An array of tax rates and their incurred tax amounts. Empty if no tax # integration is configured. sig { returns(T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount]) } - def tax_amounts - end - - sig do - params(_: T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount]) - .returns(T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount]) - end - def tax_amounts=(_) - end + attr_accessor :tax_amounts # A list of customer ids that were used to calculate the usage for this line item. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids sig do params( @@ -433,6 +194,7 @@ module Orb adjustments: T::Array[ T.any( Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment, @@ -444,6 +206,7 @@ module Orb discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -452,15 +215,16 @@ module Orb end_date: Time, filter: T.nilable(String), grouping: T.nilable(String), - maximum: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Maximum), + maximum: T.nilable(T.any(Orb::Models::InvoiceLineItemCreateResponse::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), - minimum: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::Minimum), + minimum: T.nilable(T.any(Orb::Models::InvoiceLineItemCreateResponse::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, partially_invoiced_amount: String, price: T.nilable( T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -495,12 +259,13 @@ module Orb sub_line_items: T::Array[ T.any( Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, + Orb::Util::AnyHash, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem ) ], subtotal: String, - tax_amounts: T::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount], + tax_amounts: T::Array[T.any(Orb::Models::InvoiceLineItemCreateResponse::TaxAmount, Orb::Util::AnyHash)], usage_customer_ids: T.nilable(T::Array[String]) ) .returns(T.attached_class) @@ -615,84 +380,50 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! - - Variants = type_template(:out) do - { - fixed: 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 + module Adjustment + extend Orb::Union - class MonetaryUsageDiscountAdjustment < Orb::BaseModel - sig { returns(String) } - def id + Variants = + type_template(:out) do + { + fixed: 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 - sig { params(_: String).returns(String) } - def id=(_) - end + class MonetaryUsageDiscountAdjustment < Orb::BaseModel + sig { returns(String) } + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -737,67 +468,32 @@ module Orb class MonetaryAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -842,67 +538,32 @@ module Orb class MonetaryPercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -947,76 +608,36 @@ module Orb class MonetaryMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1064,67 +685,32 @@ module Orb class MonetaryMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The value applied by an adjustment. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1166,27 +752,28 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [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 variants + end + end end class Maximum < Orb::BaseModel # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # This field is deprecated in favor of `adjustments`. sig do @@ -1204,21 +791,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # This field is deprecated in favor of `adjustments`. sig do @@ -1232,80 +809,77 @@ module Orb end end - class SubLineItem < Orb::Union - abstract! + module SubLineItem + extend Orb::Union - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, - Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem + ) + } + end class MatrixSubLineItem < Orb::BaseModel # The total amount for this sub line item. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount sig { returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping)) } - def grouping - end + attr_reader :grouping sig do - params(_: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping)) - .returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping)) - end - def grouping=(_) + params( + grouping: T.nilable( + T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :grouping sig { returns(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig) } - def matrix_config - end + attr_reader :matrix_config sig do - params(_: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig) - .returns(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig) - end - def matrix_config=(_) + params( + matrix_config: T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :matrix_config sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + attr_accessor :type sig do params( amount: String, - grouping: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping), - matrix_config: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig, + grouping: T.nilable( + T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping, + Orb::Util::AnyHash + ) + ), + matrix_config: T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig, + Orb::Util::AnyHash + ), name: String, quantity: Float, type: Symbol @@ -1333,21 +907,11 @@ module Orb class Grouping < Orb::BaseModel sig { returns(String) } - def key - end - - sig { params(_: String).returns(String) } - def key=(_) - end + attr_accessor :key # No value indicates the default group sig { returns(T.nilable(String)) } - def value - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def value=(_) - end + attr_accessor :value sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } def self.new(key:, value:) @@ -1361,12 +925,7 @@ module Orb class MatrixConfig < Orb::BaseModel # The ordered dimension values for this line item. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { params(dimension_values: T::Array[T.nilable(String)]).returns(T.attached_class) } def self.new(dimension_values:) @@ -1381,66 +940,62 @@ module Orb class TierSubLineItem < Orb::BaseModel # The total amount for this sub line item. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount sig { returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping)) } - def grouping - end + attr_reader :grouping sig do - params(_: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping)) - .returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping)) - end - def grouping=(_) + params( + grouping: T.nilable( + T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :grouping sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig) } - def tier_config - end + attr_reader :tier_config sig do - params(_: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig) - .returns(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig) - end - def tier_config=(_) + params( + tier_config: T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :tier_config sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + attr_accessor :type sig do params( amount: String, - grouping: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping), + grouping: T.nilable( + T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping, + Orb::Util::AnyHash + ) + ), name: String, quantity: Float, - tier_config: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig, + tier_config: T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig, + Orb::Util::AnyHash + ), type: Symbol ) .returns(T.attached_class) @@ -1466,21 +1021,11 @@ module Orb class Grouping < Orb::BaseModel sig { returns(String) } - def key - end - - sig { params(_: String).returns(String) } - def key=(_) - end + attr_accessor :key # No value indicates the default group sig { returns(T.nilable(String)) } - def value - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def value=(_) - end + attr_accessor :value sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } def self.new(key:, value:) @@ -1493,28 +1038,13 @@ module Orb class TierConfig < Orb::BaseModel sig { returns(Float) } - def first_unit - end - - sig { params(_: Float).returns(Float) } - def first_unit=(_) - end + attr_accessor :first_unit sig { returns(T.nilable(Float)) } - def last_unit - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def last_unit=(_) - end + attr_accessor :last_unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -1535,52 +1065,42 @@ module Orb class OtherSubLineItem < Orb::BaseModel # The total amount for this sub line item. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount sig { returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping)) } - def grouping - end + attr_reader :grouping sig do - params(_: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping)) - .returns(T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping)) - end - def grouping=(_) + params( + grouping: T.nilable( + T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :grouping sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Symbol) } - def type - end - - sig { params(_: Symbol).returns(Symbol) } - def type=(_) - end + attr_accessor :type sig do params( amount: String, - grouping: T.nilable(Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping), + grouping: T.nilable( + T.any( + Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping, + Orb::Util::AnyHash + ) + ), name: String, quantity: Float, type: Symbol @@ -1607,21 +1127,11 @@ module Orb class Grouping < Orb::BaseModel sig { returns(String) } - def key - end - - sig { params(_: String).returns(String) } - def key=(_) - end + attr_accessor :key # No value indicates the default group sig { returns(T.nilable(String)) } - def value - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def value=(_) - end + attr_accessor :value sig { params(key: String, value: T.nilable(String)).returns(T.attached_class) } def self.new(key:, value:) @@ -1632,35 +1142,31 @@ module Orb end end end + + class << self + sig do + override + .returns( + [Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem] + ) + end + def variants + end + end end class TaxAmount < Orb::BaseModel # The amount of additional tax incurred by this tax rate. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The human-readable description of the applied tax rate. sig { returns(String) } - def tax_rate_description - end - - sig { params(_: String).returns(String) } - def tax_rate_description=(_) - end + attr_accessor :tax_rate_description # The tax rate percentage, out of 100. sig { returns(T.nilable(String)) } - def tax_rate_percentage - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def tax_rate_percentage=(_) - end + attr_accessor :tax_rate_percentage sig do params(amount: String, tax_rate_description: String, tax_rate_percentage: T.nilable(String)) diff --git a/rbi/lib/orb/models/invoice_list_params.rbi b/rbi/lib/orb/models/invoice_list_params.rbi index aad5ae63..13408036 100644 --- a/rbi/lib/orb/models/invoice_list_params.rbi +++ b/rbi/lib/orb/models/invoice_list_params.rbi @@ -7,163 +7,71 @@ module Orb include Orb::RequestParameters sig { returns(T.nilable(String)) } - def amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def amount=(_) - end + attr_accessor :amount sig { returns(T.nilable(String)) } - def amount_gt - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def amount_gt=(_) - end + attr_accessor :amount_gt sig { returns(T.nilable(String)) } - def amount_lt - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def amount_lt=(_) - end + attr_accessor :amount_lt # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor sig { returns(T.nilable(String)) } - def customer_id - end + attr_accessor :customer_id - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end - - sig { returns(T.nilable(Symbol)) } - def date_type - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def date_type=(_) - end + sig { returns(T.nilable(Orb::Models::InvoiceListParams::DateType::OrSymbol)) } + attr_accessor :date_type sig { returns(T.nilable(Date)) } - def due_date - end - - sig { params(_: T.nilable(Date)).returns(T.nilable(Date)) } - def due_date=(_) - end + attr_accessor :due_date # Filters invoices by their due dates within a specific time range in the past. # Specify the range as a number followed by 'd' (days) or 'm' (months). For # example, '7d' filters invoices due in the last 7 days, and '2m' filters those # due in the last 2 months. sig { returns(T.nilable(String)) } - def due_date_window - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def due_date_window=(_) - end + attr_accessor :due_date_window sig { returns(T.nilable(Date)) } - def due_date_gt - end - - sig { params(_: T.nilable(Date)).returns(T.nilable(Date)) } - def due_date_gt=(_) - end + attr_accessor :due_date_gt sig { returns(T.nilable(Date)) } - def due_date_lt - end - - sig { params(_: T.nilable(Date)).returns(T.nilable(Date)) } - def due_date_lt=(_) - end + attr_accessor :due_date_lt sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id sig { returns(T.nilable(Time)) } - def invoice_date_gt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def invoice_date_gt=(_) - end + attr_accessor :invoice_date_gt sig { returns(T.nilable(Time)) } - def invoice_date_gte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def invoice_date_gte=(_) - end + attr_accessor :invoice_date_gte sig { returns(T.nilable(Time)) } - def invoice_date_lt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def invoice_date_lt=(_) - end + attr_accessor :invoice_date_lt sig { returns(T.nilable(Time)) } - def invoice_date_lte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def invoice_date_lte=(_) - end + attr_accessor :invoice_date_lte sig { returns(T.nilable(T::Boolean)) } - def is_recurring - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def is_recurring=(_) - end + attr_accessor :is_recurring # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end - - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + attr_reader :limit - sig { returns(T.nilable(T::Array[Symbol])) } - def status - end + sig { params(limit: Integer).void } + attr_writer :limit - sig { params(_: T.nilable(T::Array[Symbol])).returns(T.nilable(T::Array[Symbol])) } - def status=(_) - end + sig { returns(T.nilable(T::Array[Orb::Models::InvoiceListParams::Status::OrSymbol])) } + attr_accessor :status sig { returns(T.nilable(String)) } - def subscription_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def subscription_id=(_) - end + attr_accessor :subscription_id sig do params( @@ -172,7 +80,7 @@ module Orb amount_lt: T.nilable(String), cursor: T.nilable(String), customer_id: T.nilable(String), - date_type: T.nilable(Symbol), + date_type: T.nilable(Orb::Models::InvoiceListParams::DateType::OrSymbol), due_date: T.nilable(Date), due_date_window: T.nilable(String), due_date_gt: T.nilable(Date), @@ -184,9 +92,9 @@ module Orb invoice_date_lte: T.nilable(Time), is_recurring: T.nilable(T::Boolean), limit: Integer, - status: T.nilable(T::Array[Symbol]), + status: T.nilable(T::Array[Orb::Models::InvoiceListParams::Status::OrSymbol]), subscription_id: T.nilable(String), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -223,7 +131,7 @@ module Orb amount_lt: T.nilable(String), cursor: T.nilable(String), customer_id: T.nilable(String), - date_type: T.nilable(Symbol), + date_type: T.nilable(Orb::Models::InvoiceListParams::DateType::OrSymbol), due_date: T.nilable(Date), due_date_window: T.nilable(String), due_date_gt: T.nilable(Date), @@ -235,7 +143,7 @@ module Orb invoice_date_lte: T.nilable(Time), is_recurring: T.nilable(T::Boolean), limit: Integer, - status: T.nilable(T::Array[Symbol]), + status: T.nilable(T::Array[Orb::Models::InvoiceListParams::Status::OrSymbol]), subscription_id: T.nilable(String), request_options: Orb::RequestOptions } @@ -244,25 +152,39 @@ module Orb def to_hash end - class DateType < Orb::Enum - abstract! + module DateType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::InvoiceListParams::DateType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::InvoiceListParams::DateType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + DUE_DATE = T.let(:due_date, Orb::Models::InvoiceListParams::DateType::TaggedSymbol) + INVOICE_DATE = T.let(:invoice_date, Orb::Models::InvoiceListParams::DateType::TaggedSymbol) - DUE_DATE = :due_date - INVOICE_DATE = :invoice_date + class << self + sig { override.returns(T::Array[Orb::Models::InvoiceListParams::DateType::TaggedSymbol]) } + def values + end + end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::InvoiceListParams::Status) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::InvoiceListParams::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + DRAFT = T.let(:draft, Orb::Models::InvoiceListParams::Status::TaggedSymbol) + ISSUED = T.let(:issued, Orb::Models::InvoiceListParams::Status::TaggedSymbol) + PAID = T.let(:paid, Orb::Models::InvoiceListParams::Status::TaggedSymbol) + SYNCED = T.let(:synced, Orb::Models::InvoiceListParams::Status::TaggedSymbol) + VOID = T.let(:void, Orb::Models::InvoiceListParams::Status::TaggedSymbol) - DRAFT = :draft - ISSUED = :issued - PAID = :paid - SYNCED = :synced - VOID = :void + class << self + sig { override.returns(T::Array[Orb::Models::InvoiceListParams::Status::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/invoice_mark_paid_params.rbi b/rbi/lib/orb/models/invoice_mark_paid_params.rbi index 1624f20c..3dfc5d5f 100644 --- a/rbi/lib/orb/models/invoice_mark_paid_params.rbi +++ b/rbi/lib/orb/models/invoice_mark_paid_params.rbi @@ -8,37 +8,22 @@ module Orb # A date string to specify the date of the payment. sig { returns(Date) } - def payment_received_date - end - - sig { params(_: Date).returns(Date) } - def payment_received_date=(_) - end + attr_accessor :payment_received_date # An optional external ID to associate with the payment. sig { returns(T.nilable(String)) } - def external_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_id=(_) - end + attr_accessor :external_id # An optional note to associate with the payment. sig { returns(T.nilable(String)) } - def notes - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def notes=(_) - end + attr_accessor :notes sig do params( payment_received_date: Date, external_id: T.nilable(String), notes: T.nilable(String), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/invoice_pay_params.rbi b/rbi/lib/orb/models/invoice_pay_params.rbi index eab4a145..8a805ec3 100644 --- a/rbi/lib/orb/models/invoice_pay_params.rbi +++ b/rbi/lib/orb/models/invoice_pay_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/invoice_update_params.rbi b/rbi/lib/orb/models/invoice_update_params.rbi index 247b5f42..0ab6f912 100644 --- a/rbi/lib/orb/models/invoice_update_params.rbi +++ b/rbi/lib/orb/models/invoice_update_params.rbi @@ -10,20 +10,12 @@ module Orb # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/invoice_void_params.rbi b/rbi/lib/orb/models/invoice_void_params.rbi index 0fd67d33..783773e0 100644 --- a/rbi/lib/orb/models/invoice_void_params.rbi +++ b/rbi/lib/orb/models/invoice_void_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/item.rbi b/rbi/lib/orb/models/item.rbi index 1c715741..856e1b90 100644 --- a/rbi/lib/orb/models/item.rbi +++ b/rbi/lib/orb/models/item.rbi @@ -4,39 +4,16 @@ module Orb module Models class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T::Array[Orb::Models::Item::ExternalConnection]) } - def external_connections - end - - sig do - params(_: T::Array[Orb::Models::Item::ExternalConnection]) - .returns(T::Array[Orb::Models::Item::ExternalConnection]) - end - def external_connections=(_) - end + attr_accessor :external_connections sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The Item resource represents a sellable product or good. Items are associated # with all line items, billable metrics, and prices and are used for defining @@ -45,7 +22,7 @@ module Orb params( id: String, created_at: Time, - external_connections: T::Array[Orb::Models::Item::ExternalConnection], + external_connections: T::Array[T.any(Orb::Models::Item::ExternalConnection, Orb::Util::AnyHash)], name: String ) .returns(T.attached_class) @@ -68,42 +45,57 @@ module Orb end class ExternalConnection < Orb::BaseModel - sig { returns(Symbol) } - def external_connection_name - end - - sig { params(_: Symbol).returns(Symbol) } - def external_connection_name=(_) - end + sig { returns(Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol) } + attr_accessor :external_connection_name sig { returns(String) } - def external_entity_id - end + attr_accessor :external_entity_id - sig { params(_: String).returns(String) } - def external_entity_id=(_) + sig do + params( + external_connection_name: Orb::Models::Item::ExternalConnection::ExternalConnectionName::OrSymbol, + external_entity_id: String + ) + .returns(T.attached_class) end - - sig { params(external_connection_name: Symbol, external_entity_id: String).returns(T.attached_class) } def self.new(external_connection_name:, external_entity_id:) end - sig { override.returns({external_connection_name: Symbol, external_entity_id: String}) } + sig do + override + .returns( + { + external_connection_name: Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol, + external_entity_id: String + } + ) + end def to_hash end - class ExternalConnectionName < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - STRIPE = :stripe - QUICKBOOKS = :quickbooks - BILL_COM = :"bill.com" - NETSUITE = :netsuite - TAXJAR = :taxjar - AVALARA = :avalara - ANROK = :anrok + module ExternalConnectionName + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Item::ExternalConnection::ExternalConnectionName) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol) } + + STRIPE = T.let(:stripe, Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol) + QUICKBOOKS = + T.let(:quickbooks, Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol) + BILL_COM = + T.let(:"bill.com", Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol) + NETSUITE = T.let(:netsuite, Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol) + TAXJAR = T.let(:taxjar, Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol) + AVALARA = T.let(:avalara, Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol) + ANROK = T.let(:anrok, Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/item_create_params.rbi b/rbi/lib/orb/models/item_create_params.rbi index 62300cd4..0a615783 100644 --- a/rbi/lib/orb/models/item_create_params.rbi +++ b/rbi/lib/orb/models/item_create_params.rbi @@ -8,15 +8,10 @@ module Orb # The name of the item. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do - params(name: String, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + params(name: String, request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)) .returns(T.attached_class) end def self.new(name:, request_options: {}) diff --git a/rbi/lib/orb/models/item_fetch_params.rbi b/rbi/lib/orb/models/item_fetch_params.rbi index c3eb8e63..2358a672 100644 --- a/rbi/lib/orb/models/item_fetch_params.rbi +++ b/rbi/lib/orb/models/item_fetch_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/item_list_params.rbi b/rbi/lib/orb/models/item_list_params.rbi index 0d2c03cc..1b0776a4 100644 --- a/rbi/lib/orb/models/item_list_params.rbi +++ b/rbi/lib/orb/models/item_list_params.rbi @@ -9,27 +9,20 @@ module Orb # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig do params( cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/item_update_params.rbi b/rbi/lib/orb/models/item_update_params.rbi index c8f705d9..a3d4d8bd 100644 --- a/rbi/lib/orb/models/item_update_params.rbi +++ b/rbi/lib/orb/models/item_update_params.rbi @@ -7,29 +7,16 @@ module Orb include Orb::RequestParameters sig { returns(T.nilable(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection])) } - def external_connections - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection])) - .returns(T.nilable(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection])) - end - def external_connections=(_) - end + attr_accessor :external_connections sig { returns(T.nilable(String)) } - def name - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def name=(_) - end + attr_accessor :name sig do params( - external_connections: T.nilable(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection]), + external_connections: T.nilable(T::Array[T.any(Orb::Models::ItemUpdateParams::ExternalConnection, Orb::Util::AnyHash)]), name: T.nilable(String), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -50,42 +37,71 @@ module Orb end class ExternalConnection < Orb::BaseModel - sig { returns(Symbol) } - def external_connection_name - end - - sig { params(_: Symbol).returns(Symbol) } - def external_connection_name=(_) - end + sig { returns(Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::OrSymbol) } + attr_accessor :external_connection_name sig { returns(String) } - def external_entity_id - end + attr_accessor :external_entity_id - sig { params(_: String).returns(String) } - def external_entity_id=(_) + sig do + params( + external_connection_name: Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::OrSymbol, + external_entity_id: String + ) + .returns(T.attached_class) end - - sig { params(external_connection_name: Symbol, external_entity_id: String).returns(T.attached_class) } def self.new(external_connection_name:, external_entity_id:) end - sig { override.returns({external_connection_name: Symbol, external_entity_id: String}) } + sig do + override + .returns( + { + external_connection_name: Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::OrSymbol, + external_entity_id: String + } + ) + end def to_hash end - class ExternalConnectionName < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - STRIPE = :stripe - QUICKBOOKS = :quickbooks - BILL_COM = :"bill.com" - NETSUITE = :netsuite - TAXJAR = :taxjar - AVALARA = :avalara - ANROK = :anrok + module ExternalConnectionName + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol) } + + STRIPE = + T.let(:stripe, Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol) + QUICKBOOKS = + T.let( + :quickbooks, + Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol + ) + BILL_COM = + T.let( + :"bill.com", + Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol + ) + NETSUITE = + T.let(:netsuite, Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol) + TAXJAR = + T.let(:taxjar, Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol) + AVALARA = + T.let(:avalara, Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol) + ANROK = + T.let(:anrok, Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol]) + end + def values + end + end end end end diff --git a/rbi/lib/orb/models/metric_create_params.rbi b/rbi/lib/orb/models/metric_create_params.rbi index 895582a7..78ea6196 100644 --- a/rbi/lib/orb/models/metric_create_params.rbi +++ b/rbi/lib/orb/models/metric_create_params.rbi @@ -8,53 +8,25 @@ module Orb # A description of the metric. sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description # The id of the item sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The name of the metric. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # A sql string defining the metric. sig { returns(String) } - def sql - end - - sig { params(_: String).returns(String) } - def sql=(_) - end + attr_accessor :sql # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( @@ -63,7 +35,7 @@ module Orb name: String, sql: String, metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/metric_fetch_params.rbi b/rbi/lib/orb/models/metric_fetch_params.rbi index be0db24c..bdfce19b 100644 --- a/rbi/lib/orb/models/metric_fetch_params.rbi +++ b/rbi/lib/orb/models/metric_fetch_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/metric_list_params.rbi b/rbi/lib/orb/models/metric_list_params.rbi index 41d32688..8ef13166 100644 --- a/rbi/lib/orb/models/metric_list_params.rbi +++ b/rbi/lib/orb/models/metric_list_params.rbi @@ -7,55 +7,28 @@ module Orb include Orb::RequestParameters sig { returns(T.nilable(Time)) } - def created_at_gt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gt=(_) - end + attr_accessor :created_at_gt sig { returns(T.nilable(Time)) } - def created_at_gte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gte=(_) - end + attr_accessor :created_at_gte sig { returns(T.nilable(Time)) } - def created_at_lt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lt=(_) - end + attr_accessor :created_at_lt sig { returns(T.nilable(Time)) } - def created_at_lte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lte=(_) - end + attr_accessor :created_at_lte # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig do params( @@ -65,7 +38,7 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/metric_update_params.rbi b/rbi/lib/orb/models/metric_update_params.rbi index aa84573b..9ddd2d2a 100644 --- a/rbi/lib/orb/models/metric_update_params.rbi +++ b/rbi/lib/orb/models/metric_update_params.rbi @@ -10,20 +10,12 @@ module Orb # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/pagination_metadata.rbi b/rbi/lib/orb/models/pagination_metadata.rbi index ae361feb..aa16df1c 100644 --- a/rbi/lib/orb/models/pagination_metadata.rbi +++ b/rbi/lib/orb/models/pagination_metadata.rbi @@ -4,20 +4,10 @@ module Orb module Models class PaginationMetadata < Orb::BaseModel sig { returns(T::Boolean) } - def has_more - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def has_more=(_) - end + attr_accessor :has_more sig { returns(T.nilable(String)) } - def next_cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def next_cursor=(_) - end + attr_accessor :next_cursor sig { params(has_more: T::Boolean, next_cursor: T.nilable(String)).returns(T.attached_class) } def self.new(has_more:, next_cursor:) diff --git a/rbi/lib/orb/models/percentage_discount.rbi b/rbi/lib/orb/models/percentage_discount.rbi index e9686a3e..b9eca6c1 100644 --- a/rbi/lib/orb/models/percentage_discount.rbi +++ b/rbi/lib/orb/models/percentage_discount.rbi @@ -6,43 +6,23 @@ module Orb # List of price_ids that this discount applies to. For plan/plan phase discounts, # this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids - sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + sig { returns(Orb::Models::PercentageDiscount::DiscountType::OrSymbol) } + attr_accessor :discount_type # Only available if discount_type is `percentage`. This is a number between 0 # and 1. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( applies_to_price_ids: T::Array[String], - discount_type: Symbol, + discount_type: Orb::Models::PercentageDiscount::DiscountType::OrSymbol, percentage_discount: Float, reason: T.nilable(String) ) @@ -56,7 +36,7 @@ module Orb .returns( { applies_to_price_ids: T::Array[String], - discount_type: Symbol, + discount_type: Orb::Models::PercentageDiscount::DiscountType::OrSymbol, percentage_discount: Float, reason: T.nilable(String) } @@ -65,12 +45,19 @@ module Orb def to_hash end - class DiscountType < Orb::Enum - abstract! + module DiscountType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::PercentageDiscount::DiscountType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::PercentageDiscount::DiscountType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + PERCENTAGE = T.let(:percentage, Orb::Models::PercentageDiscount::DiscountType::TaggedSymbol) - PERCENTAGE = :percentage + class << self + sig { override.returns(T::Array[Orb::Models::PercentageDiscount::DiscountType::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/plan.rbi b/rbi/lib/orb/models/plan.rbi index 9043a035..a0f62555 100644 --- a/rbi/lib/orb/models/plan.rbi +++ b/rbi/lib/orb/models/plan.rbi @@ -4,12 +4,7 @@ module Orb module Models class Plan < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # Adjustments for this plan. If the plan has phases, this includes adjustments # across all phases of the plan. @@ -26,89 +21,34 @@ module Orb ] ) end - def adjustments - end - - sig do - params( - _: 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 + attr_accessor :adjustments sig { returns(T.nilable(Orb::Models::Plan::BasePlan)) } - def base_plan - end + attr_reader :base_plan - sig { params(_: T.nilable(Orb::Models::Plan::BasePlan)).returns(T.nilable(Orb::Models::Plan::BasePlan)) } - def base_plan=(_) - end + sig { params(base_plan: T.nilable(T.any(Orb::Models::Plan::BasePlan, Orb::Util::AnyHash))).void } + attr_writer :base_plan # The parent plan id if the given plan was created by overriding one or more of # the parent's prices sig { returns(T.nilable(String)) } - def base_plan_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def base_plan_id=(_) - end + attr_accessor :base_plan_id sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # An ISO 4217 currency string or custom pricing unit (`credits`) for this plan's # prices. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The default memo text on the invoices corresponding to subscriptions on this # plan. Note that each subscription may configure its own memo. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo sig { returns(String) } - def description - end - - sig { params(_: String).returns(String) } - def description=(_) - end + attr_accessor :description sig do returns( @@ -122,106 +62,46 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount # An optional user-defined ID for this plan resource, used throughout the system # as an alias for this Plan. Use this field to identify a plan by an existing # identifier in your system. sig { returns(T.nilable(String)) } - def external_plan_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_plan_id=(_) - end + attr_accessor :external_plan_id # An ISO 4217 currency string for which this plan is billed in. Matches `currency` # unless `currency` is a custom pricing unit. sig { returns(String) } - def invoicing_currency - end - - sig { params(_: String).returns(String) } - def invoicing_currency=(_) - end + attr_accessor :invoicing_currency sig { returns(T.nilable(Orb::Models::Plan::Maximum)) } - def maximum - end + attr_reader :maximum - sig { params(_: T.nilable(Orb::Models::Plan::Maximum)).returns(T.nilable(Orb::Models::Plan::Maximum)) } - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Plan::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Plan::Minimum)) } - def minimum - end + attr_reader :minimum - sig { params(_: T.nilable(Orb::Models::Plan::Minimum)).returns(T.nilable(Orb::Models::Plan::Minimum)) } - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Plan::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # Determines the difference between the invoice issue date and the due date. A # value of "0" here signifies that invoices are due on issue, whereas a value of @@ -229,23 +109,10 @@ module Orb # Note that individual subscriptions or invoices may set a different net terms # configuration. sig { returns(T.nilable(Integer)) } - def net_terms - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def net_terms=(_) - end + attr_accessor :net_terms sig { returns(T.nilable(T::Array[Orb::Models::Plan::PlanPhase])) } - def plan_phases - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::Plan::PlanPhase])) - .returns(T.nilable(T::Array[Orb::Models::Plan::PlanPhase])) - end - def plan_phases=(_) - end + attr_accessor :plan_phases # Prices for this plan. If the plan has phases, this includes prices across all # phases of the plan. @@ -285,113 +152,25 @@ module Orb ] ) end - def prices - end - - sig do - params( - _: 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 + attr_accessor :prices sig { returns(Orb::Models::Plan::Product) } - def product - end + attr_reader :product - sig { params(_: Orb::Models::Plan::Product).returns(Orb::Models::Plan::Product) } - def product=(_) - end - - sig { returns(Symbol) } - def status - end + sig { params(product: T.any(Orb::Models::Plan::Product, Orb::Util::AnyHash)).void } + attr_writer :product - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::Plan::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Orb::Models::Plan::TrialConfig) } - def trial_config - end + attr_reader :trial_config - sig { params(_: Orb::Models::Plan::TrialConfig).returns(Orb::Models::Plan::TrialConfig) } - def trial_config=(_) - end + sig { params(trial_config: T.any(Orb::Models::Plan::TrialConfig, Orb::Util::AnyHash)).void } + attr_writer :trial_config sig { returns(Integer) } - def version - end - - sig { params(_: Integer).returns(Integer) } - def version=(_) - end + attr_accessor :version # The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # subscribed to by a customer. Plans define the billing behavior of the @@ -403,13 +182,14 @@ module Orb adjustments: T::Array[ T.any( Orb::Models::Plan::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Util::AnyHash, 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: T.nilable(T.any(Orb::Models::Plan::BasePlan, Orb::Util::AnyHash)), base_plan_id: T.nilable(String), created_at: Time, currency: String, @@ -418,6 +198,7 @@ module Orb discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -425,17 +206,18 @@ module Orb ), external_plan_id: T.nilable(String), invoicing_currency: String, - maximum: T.nilable(Orb::Models::Plan::Maximum), + maximum: T.nilable(T.any(Orb::Models::Plan::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Plan::Minimum), + minimum: T.nilable(T.any(Orb::Models::Plan::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, net_terms: T.nilable(Integer), - plan_phases: T.nilable(T::Array[Orb::Models::Plan::PlanPhase]), + plan_phases: T.nilable(T::Array[T.any(Orb::Models::Plan::PlanPhase, Orb::Util::AnyHash)]), prices: T::Array[ T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -465,9 +247,9 @@ module Orb Orb::Models::Price::CumulativeGroupedBulkPrice ) ], - product: Orb::Models::Plan::Product, - status: Symbol, - trial_config: Orb::Models::Plan::TrialConfig, + product: T.any(Orb::Models::Plan::Product, Orb::Util::AnyHash), + status: Orb::Models::Plan::Status::OrSymbol, + trial_config: T.any(Orb::Models::Plan::TrialConfig, Orb::Util::AnyHash), version: Integer ) .returns(T.attached_class) @@ -571,7 +353,7 @@ module Orb ) ], product: Orb::Models::Plan::Product, - status: Symbol, + status: Orb::Models::Plan::Status::TaggedSymbol, trial_config: Orb::Models::Plan::TrialConfig, version: Integer } @@ -580,84 +362,50 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! - - Variants = type_template(:out) do - { - fixed: 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 + module Adjustment + extend Orb::Union - class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel - sig { returns(String) } - def id + Variants = + type_template(:out) do + { + fixed: 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 - sig { params(_: String).returns(String) } - def id=(_) - end + class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel + sig { returns(String) } + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -702,67 +450,32 @@ module Orb class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -807,67 +520,32 @@ module Orb class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -912,76 +590,36 @@ module Orb class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1029,67 +667,32 @@ module Orb class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1131,35 +734,31 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [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 variants + end + end end class BasePlan < Orb::BaseModel sig { returns(T.nilable(String)) } - def id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def id=(_) - end + attr_accessor :id # An optional user-defined ID for this plan resource, used throughout the system # as an alias for this Plan. Use this field to identify a plan by an existing # identifier in your system. sig { returns(T.nilable(String)) } - def external_plan_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_plan_id=(_) - end + attr_accessor :external_plan_id sig { returns(T.nilable(String)) } - def name - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def name=(_) - end + attr_accessor :name sig do params(id: T.nilable(String), external_plan_id: T.nilable(String), name: T.nilable(String)) @@ -1185,21 +784,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -1216,21 +805,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -1245,20 +824,10 @@ module Orb class PlanPhase < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(String)) } - def description - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def description=(_) - end + attr_accessor :description sig do returns( @@ -1272,106 +841,40 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount # How many terms of length `duration_unit` this phase is active for. If null, this # phase is evergreen and active indefinitely sig { returns(T.nilable(Integer)) } - def duration - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def duration=(_) - end + attr_accessor :duration - sig { returns(T.nilable(Symbol)) } - def duration_unit - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def duration_unit=(_) - end + sig { returns(T.nilable(Orb::Models::Plan::PlanPhase::DurationUnit::TaggedSymbol)) } + attr_accessor :duration_unit sig { returns(T.nilable(Orb::Models::Plan::PlanPhase::Maximum)) } - def maximum - end + attr_reader :maximum - sig do - params(_: T.nilable(Orb::Models::Plan::PlanPhase::Maximum)) - .returns(T.nilable(Orb::Models::Plan::PlanPhase::Maximum)) - end - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Plan::PlanPhase::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig { returns(T.nilable(Orb::Models::Plan::PlanPhase::Minimum)) } - def minimum - end + attr_reader :minimum - sig do - params(_: T.nilable(Orb::Models::Plan::PlanPhase::Minimum)) - .returns(T.nilable(Orb::Models::Plan::PlanPhase::Minimum)) - end - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Plan::PlanPhase::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # Determines the ordering of the phase in a plan's lifecycle. 1 = first phase. sig { returns(Integer) } - def order - end - - sig { params(_: Integer).returns(Integer) } - def order=(_) - end + attr_accessor :order sig do params( @@ -1380,16 +883,17 @@ module Orb discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount ) ), duration: T.nilable(Integer), - duration_unit: T.nilable(Symbol), - maximum: T.nilable(Orb::Models::Plan::PlanPhase::Maximum), + duration_unit: T.nilable(Orb::Models::Plan::PlanPhase::DurationUnit::OrSymbol), + maximum: T.nilable(T.any(Orb::Models::Plan::PlanPhase::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), - minimum: T.nilable(Orb::Models::Plan::PlanPhase::Minimum), + minimum: T.nilable(T.any(Orb::Models::Plan::PlanPhase::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, order: Integer @@ -1426,7 +930,7 @@ module Orb ) ), duration: T.nilable(Integer), - duration_unit: T.nilable(Symbol), + duration_unit: T.nilable(Orb::Models::Plan::PlanPhase::DurationUnit::TaggedSymbol), maximum: T.nilable(Orb::Models::Plan::PlanPhase::Maximum), maximum_amount: T.nilable(String), minimum: T.nilable(Orb::Models::Plan::PlanPhase::Minimum), @@ -1439,37 +943,34 @@ module Orb def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Plan::PlanPhase::DurationUnit) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Plan::PlanPhase::DurationUnit::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + DAILY = T.let(:daily, Orb::Models::Plan::PlanPhase::DurationUnit::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Plan::PlanPhase::DurationUnit::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Plan::PlanPhase::DurationUnit::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Plan::PlanPhase::DurationUnit::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Plan::PlanPhase::DurationUnit::TaggedSymbol) - DAILY = :daily - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual + class << self + sig { override.returns(T::Array[Orb::Models::Plan::PlanPhase::DurationUnit::TaggedSymbol]) } + def values + end + end end class Maximum < Orb::BaseModel # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -1486,21 +987,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -1516,28 +1007,13 @@ module Orb class Product < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, created_at: Time, name: String).returns(T.attached_class) } def self.new(id:, created_at:, name:) @@ -1548,47 +1024,65 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Plan::Status) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Plan::Status::TaggedSymbol) } - ACTIVE = :active - ARCHIVED = :archived - DRAFT = :draft + ACTIVE = T.let(:active, Orb::Models::Plan::Status::TaggedSymbol) + ARCHIVED = T.let(:archived, Orb::Models::Plan::Status::TaggedSymbol) + DRAFT = T.let(:draft, Orb::Models::Plan::Status::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Plan::Status::TaggedSymbol]) } + def values + end + end end class TrialConfig < Orb::BaseModel sig { returns(T.nilable(Integer)) } - def trial_period - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def trial_period=(_) - end + attr_accessor :trial_period - sig { returns(Symbol) } - def trial_period_unit - end + sig { returns(Orb::Models::Plan::TrialConfig::TrialPeriodUnit::TaggedSymbol) } + attr_accessor :trial_period_unit - sig { params(_: Symbol).returns(Symbol) } - def trial_period_unit=(_) + sig do + params( + trial_period: T.nilable(Integer), + trial_period_unit: Orb::Models::Plan::TrialConfig::TrialPeriodUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(trial_period: T.nilable(Integer), trial_period_unit: Symbol).returns(T.attached_class) } def self.new(trial_period:, trial_period_unit:) end - sig { override.returns({trial_period: T.nilable(Integer), trial_period_unit: Symbol}) } + sig do + override + .returns( + { + trial_period: T.nilable(Integer), + trial_period_unit: Orb::Models::Plan::TrialConfig::TrialPeriodUnit::TaggedSymbol + } + ) + end def to_hash end - class TrialPeriodUnit < Orb::Enum - abstract! + module TrialPeriodUnit + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Plan::TrialConfig::TrialPeriodUnit) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Plan::TrialConfig::TrialPeriodUnit::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + DAYS = T.let(:days, Orb::Models::Plan::TrialConfig::TrialPeriodUnit::TaggedSymbol) - DAYS = :days + class << self + sig { override.returns(T::Array[Orb::Models::Plan::TrialConfig::TrialPeriodUnit::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/plan_create_params.rbi b/rbi/lib/orb/models/plan_create_params.rbi index 2a8e0bff..23f0ac8b 100644 --- a/rbi/lib/orb/models/plan_create_params.rbi +++ b/rbi/lib/orb/models/plan_create_params.rbi @@ -9,20 +9,10 @@ module Orb # An ISO 4217 currency string for invoices generated by subscriptions on this # plan. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # Prices for this plan. If the plan has phases, this includes prices across all # phases of the plan. @@ -59,127 +49,34 @@ module Orb ] ) end - def prices - end - - sig do - params( - _: 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 + attr_accessor :prices # Free-form text which is available on the invoice PDF and the Orb invoice portal. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo sig { returns(T.nilable(String)) } - def external_plan_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_plan_id=(_) - end + attr_accessor :external_plan_id # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # The net terms determines the difference between the invoice date and the issue # date for the invoice. If you intend the invoice to be due on issue, set this # to 0. sig { returns(T.nilable(Integer)) } - def net_terms - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def net_terms=(_) - end + attr_accessor :net_terms # The status of the plan to create (either active or draft). If not specified, # this defaults to active. - sig { returns(T.nilable(Symbol)) } - def status - end + sig { returns(T.nilable(Orb::Models::PlanCreateParams::Status::OrSymbol)) } + attr_reader :status - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { params(status: Orb::Models::PlanCreateParams::Status::OrSymbol).void } + attr_writer :status sig do params( @@ -188,6 +85,7 @@ module Orb prices: T::Array[ T.any( Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice, + Orb::Util::AnyHash, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice, @@ -218,8 +116,8 @@ module Orb 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]) + status: Orb::Models::PlanCreateParams::Status::OrSymbol, + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -275,7 +173,7 @@ module Orb external_plan_id: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), net_terms: T.nilable(Integer), - status: Symbol, + status: Orb::Models::PlanCreateParams::Status::OrSymbol, request_options: Orb::RequestOptions } ) @@ -283,210 +181,168 @@ module Orb def to_hash end - class Price < Orb::Union - abstract! - - Variants = type_template(:out) do - { - fixed: 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 + module Price + extend Orb::Union - class NewPlanUnitPrice < Orb::BaseModel - # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence + Variants = + type_template(:out) do + { + fixed: 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 - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + class NewPlanUnitPrice < Orb::BaseModel + # The cadence to bill for this price on. + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig) } - def unit_config - end + attr_reader :unit_config sig do - params(_: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig) - .returns(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig) - end - def unit_config=(_) + params( + unit_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig, Orb::Util::AnyHash) + ) + .void end + attr_writer :unit_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration)) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration)) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration)) - end - def billing_cycle_configuration=(_) + params( + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence::OrSymbol, item_id: String, name: String, - unit_config: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig, + unit_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig, Orb::Util::AnyHash), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_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), + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) @@ -515,7 +371,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -537,28 +393,35 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence::TaggedSymbol) } + + ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence::TaggedSymbol) + ONE_TIME = + T.let(:one_time, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::Cadence::TaggedSymbol]) } + def values + end + end end class UnitConfig < Orb::BaseModel # Rate per unit of usage sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig { params(unit_amount: String).returns(T.attached_class) } def self.new(unit_amount:) @@ -572,255 +435,288 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig) } - def package_config - end + attr_reader :package_config sig do - params(_: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig) - .returns(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig) - end - def package_config=(_) + params( + package_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig, Orb::Util::AnyHash) + ) + .void end + attr_writer :package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration)) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration)) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration)) - end - def billing_cycle_configuration=(_) + params( + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration) - ) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence::OrSymbol, item_id: String, name: String, - package_config: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig, + package_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig, Orb::Util::AnyHash), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_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), + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) @@ -849,7 +745,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -871,38 +767,44 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence::TaggedSymbol) } + + ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence::TaggedSymbol) + MONTHLY = + T.let(:monthly, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence::TaggedSymbol) + ONE_TIME = + T.let(:one_time, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::Cadence::TaggedSymbol]) + end + def values + end + end end class PackageConfig < Orb::BaseModel # A currency amount to rate usage by sig { returns(String) } - def package_amount - end - - sig { params(_: String).returns(String) } - def package_amount=(_) - end + attr_accessor :package_amount # An integer amount to represent package size. For example, 1000 here would divide # usage by 1000 before multiplying by package_amount in rating sig { returns(Integer) } - def package_size - end - - sig { params(_: Integer).returns(Integer) } - def package_size=(_) - end + attr_accessor :package_size sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } def self.new(package_amount:, package_size:) @@ -916,255 +818,288 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanMatrixPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig) } - def matrix_config - end + attr_reader :matrix_config sig do - params(_: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig) - .returns(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig) - end - def matrix_config=(_) + params( + matrix_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig, Orb::Util::AnyHash) + ) + .void end + attr_writer :matrix_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration)) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration)) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration)) - end - def billing_cycle_configuration=(_) + params( + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration) + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ) ) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + .void end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence::OrSymbol, item_id: String, - matrix_config: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig, + matrix_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig, Orb::Util::AnyHash), 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), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_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), + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) @@ -1193,7 +1128,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence::OrSymbol, item_id: String, matrix_config: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig, model_type: Symbol, @@ -1215,55 +1150,57 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence::TaggedSymbol) } + + ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence::TaggedSymbol) + MONTHLY = + T.let(:monthly, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence::TaggedSymbol) + ONE_TIME = + T.let(:one_time, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence::TaggedSymbol) + + class << self + sig do + override.returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::Cadence::TaggedSymbol]) + end + def values + end + end end class MatrixConfig < Orb::BaseModel # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } - def default_unit_amount - end - - sig { params(_: String).returns(String) } - def default_unit_amount=(_) - end + attr_accessor :default_unit_amount # One or two event property values to evaluate matrix groups by sig { returns(T::Array[T.nilable(String)]) } - def dimensions - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimensions=(_) - end + attr_accessor :dimensions # Matrix values for specified matrix grouping keys 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]) - end - def matrix_values=(_) - end + attr_accessor :matrix_values sig do params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue] + matrix_values: T::Array[ + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue, + Orb::Util::AnyHash + ) + ] ) .returns(T.attached_class) end @@ -1288,21 +1225,11 @@ module Orb # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values # Unit price for the specified dimension_values sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -1322,255 +1249,288 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanTieredPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig) } - def tiered_config - end + attr_reader :tiered_config sig do - params(_: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig) - .returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig) - end - def tiered_config=(_) + params( + tiered_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig, Orb::Util::AnyHash) + ) + .void end + attr_writer :tiered_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration)) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration)) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration)) - end - def billing_cycle_configuration=(_) + params( + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration) + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ) ) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + .void end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence::OrSymbol, item_id: String, name: String, - tiered_config: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig, + tiered_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig, Orb::Util::AnyHash), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_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), + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) @@ -1599,7 +1559,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -1621,34 +1581,43 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence::TaggedSymbol) } + + ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence::TaggedSymbol) + MONTHLY = + T.let(:monthly, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence::TaggedSymbol) + ONE_TIME = + T.let(:one_time, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence::TaggedSymbol) + + class << self + sig do + override.returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::Cadence::TaggedSymbol]) + end + def values + end + end end class TieredConfig < Orb::BaseModel # Tiers for rating based on total usage quantities into the specified tier 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]) - end - def tiers=(_) - end + attr_accessor :tiers sig do - params(tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier]) + params( + tiers: T::Array[T.any(Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier, Orb::Util::AnyHash)] + ) .returns(T.attached_class) end def self.new(tiers:) @@ -1664,30 +1633,15 @@ module Orb class Tier < Orb::BaseModel # Inclusive tier starting value sig { returns(Float) } - def first_unit - end - - sig { params(_: Float).returns(Float) } - def first_unit=(_) - end + attr_accessor :first_unit # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Exclusive tier ending value. If null, this is treated as the last tier sig { returns(T.nilable(Float)) } - def last_unit - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def last_unit=(_) - end + attr_accessor :last_unit sig do params( @@ -1708,212 +1662,238 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanTieredBpsPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig) } - def tiered_bps_config - end + attr_reader :tiered_bps_config sig do - params(_: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig) - .returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig) - end - def tiered_bps_config=(_) + params( + tiered_bps_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig, Orb::Util::AnyHash) + ) + .void end + attr_writer :tiered_bps_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration)) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration) + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ) ) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration)) - end - def billing_cycle_configuration=(_) + .void end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -1922,49 +1902,52 @@ module Orb T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration) - ) - .returns( - T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration) + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence::OrSymbol, item_id: String, name: String, - tiered_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig, + tiered_bps_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig, Orb::Util::AnyHash), billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_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), + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) @@ -1993,7 +1976,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -2015,36 +1998,51 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence::TaggedSymbol) } + + ANNUAL = + T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence::TaggedSymbol) + MONTHLY = + T.let(:monthly, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence::TaggedSymbol) + ONE_TIME = + T.let(:one_time, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence::TaggedSymbol) + CUSTOM = + T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::Cadence::TaggedSymbol]) + end + def values + end + end end class TieredBpsConfig < Orb::BaseModel # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers 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]) - end - def tiers=(_) - end + attr_accessor :tiers sig do params( - tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier] + tiers: T::Array[ + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier, + Orb::Util::AnyHash + ) + ] ) .returns(T.attached_class) end @@ -2063,39 +2061,19 @@ module Orb class Tier < Orb::BaseModel # Per-event basis point rate sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Inclusive tier starting value sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # Exclusive tier ending value sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # Per unit maximum to charge sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params( @@ -2128,253 +2106,288 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanBpsPrice < Orb::BaseModel sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig) } - def bps_config - end + attr_reader :bps_config sig do - params(_: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig) - .returns(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig) - end - def bps_config=(_) + params( + bps_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig, Orb::Util::AnyHash) + ) + .void end + attr_writer :bps_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration)) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration)) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration)) - end - def billing_cycle_configuration=(_) + params( + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig, - cadence: Symbol, + bps_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig, Orb::Util::AnyHash), + cadence: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence::OrSymbol, item_id: String, 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), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_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), + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) @@ -2404,7 +2417,7 @@ module Orb .returns( { bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig, - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -2427,21 +2440,11 @@ module Orb class BpsConfig < Orb::BaseModel # Basis point take rate per event sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Optional currency amount maximum to cap spend per event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } def self.new(bps:, per_unit_maximum: nil) @@ -2453,271 +2456,315 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence::TaggedSymbol) } + + ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence::TaggedSymbol) + ONE_TIME = T.let(:one_time, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::Cadence::TaggedSymbol]) } + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanBulkBpsPrice < Orb::BaseModel sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig) } - def bulk_bps_config - end + attr_reader :bulk_bps_config sig do - params(_: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig) - .returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig) - end - def bulk_bps_config=(_) + params( + bulk_bps_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig, Orb::Util::AnyHash) + ) + .void end + attr_writer :bulk_bps_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration)) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration)) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration)) - end - def billing_cycle_configuration=(_) + params( + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration) + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ) ) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + .void end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - bulk_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, + bulk_bps_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig, Orb::Util::AnyHash), + cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence::OrSymbol, item_id: String, 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), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_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), + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) @@ -2747,7 +2794,7 @@ module Orb .returns( { bulk_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -2771,18 +2818,12 @@ module Orb # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume 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]) - end - def tiers=(_) - end + attr_accessor :tiers sig do - params(tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier]) + params( + tiers: T::Array[T.any(Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier, Orb::Util::AnyHash)] + ) .returns(T.attached_class) end def self.new(tiers:) @@ -2798,30 +2839,15 @@ module Orb class Tier < Orb::BaseModel # Basis points to rate on sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Upper bound for tier sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The maximum amount to charge for any one event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) @@ -2845,269 +2871,320 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence::TaggedSymbol) } + + ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence::TaggedSymbol) + MONTHLY = + T.let(:monthly, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence::TaggedSymbol) + ONE_TIME = + T.let(:one_time, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::Cadence::TaggedSymbol]) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanBulkPrice < Orb::BaseModel sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig) } - def bulk_config - end + attr_reader :bulk_config sig do - params(_: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig) - .returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig) - end - def bulk_config=(_) + params( + bulk_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig, Orb::Util::AnyHash) + ) + .void end + attr_writer :bulk_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration)) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration)) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration)) - end - def billing_cycle_configuration=(_) + params( + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. sig { returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - bulk_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig, - cadence: Symbol, + bulk_config: T.any(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig, Orb::Util::AnyHash), + cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence::OrSymbol, item_id: String, 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), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_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), + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) @@ -3137,7 +3214,7 @@ module Orb .returns( { bulk_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig, - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -3160,18 +3237,12 @@ module Orb class BulkConfig < Orb::BaseModel # Bulk tiers for rating based on total usage volume 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]) - end - def tiers=(_) - end + attr_accessor :tiers sig do - params(tiers: T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier]) + params( + tiers: T::Array[T.any(Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier, Orb::Util::AnyHash)] + ) .returns(T.attached_class) end def self.new(tiers:) @@ -3187,21 +3258,11 @@ module Orb class Tier < Orb::BaseModel # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Upper bound for this tier sig { returns(T.nilable(Float)) } - def maximum_units - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def maximum_units=(_) - end + attr_accessor :maximum_units sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } def self.new(unit_amount:, maximum_units: nil) @@ -3214,163 +3275,218 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence::TaggedSymbol) } + + ANNUAL = T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence::TaggedSymbol) + ONE_TIME = + T.let(:one_time, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::Cadence::TaggedSymbol]) } + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanThresholdTotalAmountPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config=(_) - end + attr_accessor :threshold_total_amount_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -3381,70 +3497,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -3455,48 +3543,40 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -3504,7 +3584,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -3534,7 +3617,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -3560,163 +3643,249 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config=(_) - end + attr_accessor :tiered_package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -3725,66 +3894,42 @@ module Orb T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration) - ) - .returns( - T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration) + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -3793,50 +3938,53 @@ module Orb T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration) - ) - .returns( - T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration) + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence::OrSymbol, item_id: String, 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), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_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)]), + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) .returns(T.attached_class) @@ -3864,7 +4012,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -3886,163 +4034,227 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence::TaggedSymbol) } + + ANNUAL = + T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let(:monthly, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence::TaggedSymbol) + ONE_TIME = + T.let(:one_time, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence::TaggedSymbol) + CUSTOM = + T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::Cadence::TaggedSymbol]) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanTieredWithMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config=(_) - end + attr_accessor :tiered_with_minimum_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -4051,66 +4263,42 @@ module Orb T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration) - ) - .returns( - T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration) + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -4121,54 +4309,51 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence::OrSymbol, item_id: String, 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), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_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 + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -4198,7 +4383,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -4222,163 +4407,238 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence::TaggedSymbol) } + + ANNUAL = + T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence::TaggedSymbol) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanUnitWithPercentPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config=(_) - end + attr_accessor :unit_with_percent_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -4387,66 +4647,42 @@ module Orb T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration) - ) - .returns( - T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration) + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -4455,49 +4691,52 @@ module Orb T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration) - ) - .returns( - T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration) + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence::OrSymbol, item_id: String, 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), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_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), + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol ) @@ -4526,7 +4765,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -4548,163 +4787,232 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence::TaggedSymbol) } + + ANNUAL = + T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let(:monthly, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence::TaggedSymbol) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let(:one_time, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence::TaggedSymbol) + CUSTOM = + T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence::TaggedSymbol) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanPackageWithAllocationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config=(_) - end + attr_accessor :package_with_allocation_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -4715,70 +5023,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -4789,48 +5069,40 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -4838,7 +5110,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -4868,7 +5143,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -4894,163 +5169,249 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanTierWithProrationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config=(_) - end + attr_accessor :tiered_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -5059,66 +5420,42 @@ module Orb T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration) - ) - .returns( - T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration) + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -5129,54 +5466,51 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence::OrSymbol, item_id: String, 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), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_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 + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -5206,7 +5540,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -5230,163 +5564,238 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol) } + + ANNUAL = + T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanUnitWithProrationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config=(_) - end + attr_accessor :unit_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -5395,66 +5804,42 @@ module Orb T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration) - ) - .returns( - T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration) + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -5465,54 +5850,51 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence::OrSymbol, item_id: String, 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), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_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 + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -5542,7 +5924,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -5566,163 +5948,238 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence::TaggedSymbol) } + + ANNUAL = + T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence::TaggedSymbol) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanGroupedAllocationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence::OrSymbol) } + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config=(_) - end + attr_accessor :grouped_allocation_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -5731,66 +6188,42 @@ module Orb T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration) - ) - .returns( - T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration) + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -5801,54 +6234,51 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence::OrSymbol, grouped_allocation_config: T::Hash[Symbol, T.anything], item_id: String, 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), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_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 + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -5878,7 +6308,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence::OrSymbol, grouped_allocation_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -5902,163 +6332,238 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence::TaggedSymbol) } + + ANNUAL = + T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence::TaggedSymbol) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanGroupedWithProratedMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence::OrSymbol) } + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config=(_) - end + attr_accessor :grouped_with_prorated_minimum_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -6069,70 +6574,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -6143,48 +6620,40 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence::OrSymbol, grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], item_id: String, 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 + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -6192,7 +6661,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -6222,7 +6694,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence::OrSymbol, grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -6248,163 +6720,249 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanGroupedWithMeteredMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence::OrSymbol) } + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config=(_) - end + attr_accessor :grouped_with_metered_minimum_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -6415,70 +6973,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -6489,48 +7019,40 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence::OrSymbol, grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], item_id: String, 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 + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -6538,7 +7060,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -6568,7 +7093,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence::OrSymbol, grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -6594,163 +7119,249 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanMatrixWithDisplayNamePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config=(_) - end + attr_accessor :matrix_with_display_name_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -6761,70 +7372,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -6835,48 +7418,40 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence::OrSymbol, item_id: String, matrix_with_display_name_config: T::Hash[Symbol, T.anything], 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 + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -6884,7 +7459,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -6914,7 +7492,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence::OrSymbol, item_id: String, matrix_with_display_name_config: T::Hash[Symbol, T.anything], model_type: Symbol, @@ -6940,163 +7518,249 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanBulkWithProrationPrice < Orb::BaseModel sig { returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config=(_) - end + attr_accessor :bulk_with_proration_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -7105,66 +7769,42 @@ module Orb T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration) - ) - .returns( - T.nilable(Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration) + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -7175,54 +7815,51 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence::OrSymbol, item_id: String, 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), + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ), conversion_rate: T.nilable(Float), currency: T.nilable(String), external_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 + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -7253,7 +7890,7 @@ module Orb .returns( { bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -7276,163 +7913,238 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence::TaggedSymbol) } + + ANNUAL = + T.let(:annual, Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let(:custom, Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence::TaggedSymbol) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanGroupedTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence::OrSymbol) } + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config=(_) - end + attr_accessor :grouped_tiered_package_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -7443,70 +8155,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -7517,48 +8201,40 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence::OrSymbol, grouped_tiered_package_config: T::Hash[Symbol, T.anything], item_id: String, 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 + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -7566,7 +8242,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -7596,7 +8275,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence::OrSymbol, grouped_tiered_package_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -7622,163 +8301,249 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanMaxGroupTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence::OrSymbol) } + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config=(_) - end + attr_accessor :max_group_tiered_package_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -7789,70 +8554,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -7863,48 +8600,40 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence::OrSymbol, item_id: String, max_group_tiered_package_config: T::Hash[Symbol, T.anything], 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 + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -7912,7 +8641,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -7942,7 +8674,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence::OrSymbol, item_id: String, max_group_tiered_package_config: T::Hash[Symbol, T.anything], model_type: Symbol, @@ -7968,163 +8700,253 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanScalableMatrixWithUnitPricingPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_unit_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -8135,70 +8957,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -8209,48 +9003,40 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -8258,7 +9044,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -8288,7 +9077,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -8314,163 +9103,253 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanScalableMatrixWithTieredPricingPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_tiered_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -8481,70 +9360,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -8555,48 +9406,40 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -8604,7 +9447,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -8634,7 +9480,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -8660,163 +9506,249 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewPlanCumulativeGroupedBulkPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence::OrSymbol) } + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config=(_) - end + attr_accessor :cumulative_grouped_bulk_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -8827,70 +9759,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -8901,48 +9805,40 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence::OrSymbol, cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], item_id: String, 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 + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -8950,7 +9846,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -8980,7 +9879,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence::OrSymbol, cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -9006,110 +9905,249 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end + + class << self + sig do + override + .returns( + [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 variants + end + end end # The status of the plan to create (either active or draft). If not specified, # this defaults to active. - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::PlanCreateParams::Status) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::PlanCreateParams::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ACTIVE = T.let(:active, Orb::Models::PlanCreateParams::Status::TaggedSymbol) + DRAFT = T.let(:draft, Orb::Models::PlanCreateParams::Status::TaggedSymbol) - ACTIVE = :active - DRAFT = :draft + class << self + sig { override.returns(T::Array[Orb::Models::PlanCreateParams::Status::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/plan_fetch_params.rbi b/rbi/lib/orb/models/plan_fetch_params.rbi index f9355eb0..4879303c 100644 --- a/rbi/lib/orb/models/plan_fetch_params.rbi +++ b/rbi/lib/orb/models/plan_fetch_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/plan_list_params.rbi b/rbi/lib/orb/models/plan_list_params.rbi index 235ebcee..d014033e 100644 --- a/rbi/lib/orb/models/plan_list_params.rbi +++ b/rbi/lib/orb/models/plan_list_params.rbi @@ -7,64 +7,35 @@ module Orb include Orb::RequestParameters sig { returns(T.nilable(Time)) } - def created_at_gt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gt=(_) - end + attr_accessor :created_at_gt sig { returns(T.nilable(Time)) } - def created_at_gte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gte=(_) - end + attr_accessor :created_at_gte sig { returns(T.nilable(Time)) } - def created_at_lt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lt=(_) - end + attr_accessor :created_at_lt sig { returns(T.nilable(Time)) } - def created_at_lte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lte=(_) - end + attr_accessor :created_at_lte # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit # The plan status to filter to ('active', 'archived', or 'draft'). - sig { returns(T.nilable(Symbol)) } - def status - end + sig { returns(T.nilable(Orb::Models::PlanListParams::Status::OrSymbol)) } + attr_reader :status - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { params(status: Orb::Models::PlanListParams::Status::OrSymbol).void } + attr_writer :status sig do params( @@ -74,8 +45,8 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - status: Symbol, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + status: Orb::Models::PlanListParams::Status::OrSymbol, + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -101,7 +72,7 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - status: Symbol, + status: Orb::Models::PlanListParams::Status::OrSymbol, request_options: Orb::RequestOptions } ) @@ -110,14 +81,21 @@ module Orb end # The plan status to filter to ('active', 'archived', or 'draft'). - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::PlanListParams::Status) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::PlanListParams::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ACTIVE = T.let(:active, Orb::Models::PlanListParams::Status::TaggedSymbol) + ARCHIVED = T.let(:archived, Orb::Models::PlanListParams::Status::TaggedSymbol) + DRAFT = T.let(:draft, Orb::Models::PlanListParams::Status::TaggedSymbol) - ACTIVE = :active - ARCHIVED = :archived - DRAFT = :draft + class << self + sig { override.returns(T::Array[Orb::Models::PlanListParams::Status::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/plan_update_params.rbi b/rbi/lib/orb/models/plan_update_params.rbi index 92488438..6688fc00 100644 --- a/rbi/lib/orb/models/plan_update_params.rbi +++ b/rbi/lib/orb/models/plan_update_params.rbi @@ -10,32 +10,19 @@ module Orb # as an alias for this Plan. Use this field to identify a plan by an existing # identifier in your system. sig { returns(T.nilable(String)) } - def external_plan_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_plan_id=(_) - end + attr_accessor :external_plan_id # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( 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]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/plans/external_plan_id_fetch_params.rbi b/rbi/lib/orb/models/plans/external_plan_id_fetch_params.rbi index 0e2002c1..3a4c765d 100644 --- a/rbi/lib/orb/models/plans/external_plan_id_fetch_params.rbi +++ b/rbi/lib/orb/models/plans/external_plan_id_fetch_params.rbi @@ -8,12 +8,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) 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 6423f027..21003036 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 @@ -11,32 +11,19 @@ module Orb # as an alias for this Plan. Use this field to identify a plan by an existing # identifier in your system. sig { returns(T.nilable(String)) } - def external_plan_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_plan_id=(_) - end + attr_accessor :external_plan_id # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( 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]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/price.rbi b/rbi/lib/orb/models/price.rbi index ffc6bbc9..37bb6c34 100644 --- a/rbi/lib/orb/models/price.rbi +++ b/rbi/lib/orb/models/price.rbi @@ -12,117 +12,93 @@ module Orb # # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) - class Price < Orb::Union - abstract! - - Variants = type_template(:out) do - { - fixed: 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 + module Price + extend Orb::Union + + Variants = + type_template(:out) do + { + fixed: 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 class UnitPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::UnitPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::UnitPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::UnitPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::UnitPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::UnitPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::UnitPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::UnitPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::UnitPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::UnitPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::UnitPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::UnitPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::UnitPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::UnitPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -136,183 +112,99 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::UnitPrice::Item) } - def item - end + attr_reader :item - sig { params(_: Orb::Models::Price::UnitPrice::Item).returns(Orb::Models::Price::UnitPrice::Item) } - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::UnitPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::UnitPrice::Maximum)) } - def maximum - end + attr_reader :maximum - sig do - params(_: T.nilable(Orb::Models::Price::UnitPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::UnitPrice::Maximum)) - end - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Price::UnitPrice::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::UnitPrice::Minimum)) } - def minimum - end + attr_reader :minimum - sig do - params(_: T.nilable(Orb::Models::Price::UnitPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::UnitPrice::Minimum)) - end - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Price::UnitPrice::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::UnitPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(Orb::Models::Price::UnitPrice::UnitConfig) } - def unit_config - end + attr_reader :unit_config - sig { params(_: Orb::Models::Price::UnitPrice::UnitConfig).returns(Orb::Models::Price::UnitPrice::UnitConfig) } - def unit_config=(_) - end + sig { params(unit_config: T.any(Orb::Models::Price::UnitPrice::UnitConfig, Orb::Util::AnyHash)).void } + attr_writer :unit_config sig { returns(T.nilable(Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::UnitPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::UnitPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::UnitPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::UnitPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::UnitPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::UnitPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::UnitPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -320,18 +212,18 @@ module Orb ), 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), + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)), + item: T.any(Orb::Models::Price::UnitPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::UnitPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::UnitPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::UnitPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), 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), + price_type: Orb::Models::Price::UnitPrice::PriceType::OrSymbol, + unit_config: T.any(Orb::Models::Price::UnitPrice::UnitConfig, Orb::Util::AnyHash), + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)), model_type: Symbol ) .returns(T.attached_class) @@ -371,7 +263,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::UnitPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::UnitPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::UnitPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::UnitPrice::CreditAllocation), @@ -396,7 +288,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::UnitPrice::PriceType::TaggedSymbol, unit_config: Orb::Models::Price::UnitPrice::UnitConfig, dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration) } @@ -407,12 +299,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -425,68 +312,82 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::UnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::UnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::UnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::UnitPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::UnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } - DAY = :day - MONTH = :month + DAY = T.let(:day, Orb::Models::Price::UnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::UnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::Price::UnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::UnitPrice::Cadence) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::UnitPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::UnitPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::UnitPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::UnitPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::UnitPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::UnitPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::UnitPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::UnitPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -499,55 +400,62 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + DAY = T.let(:day, Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns(T::Array[Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -562,21 +470,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -593,21 +491,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -620,24 +508,26 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::UnitPrice::PriceType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::UnitPrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::UnitPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::UnitPrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::UnitPrice::PriceType::TaggedSymbol]) } + def values + end + end end class UnitConfig < Orb::BaseModel # Rate per unit of usage sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig { params(unit_amount: String).returns(T.attached_class) } def self.new(unit_amount:) @@ -650,20 +540,10 @@ module Orb class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -682,77 +562,52 @@ module Orb class PackagePrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::PackagePrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::PackagePrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::PackagePrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::PackagePrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::PackagePrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::PackagePrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::PackagePrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::PackagePrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::PackagePrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::PackagePrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::PackagePrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::PackagePrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::PackagePrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -766,186 +621,99 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::PackagePrice::Item) } - def item - end + attr_reader :item - sig { params(_: Orb::Models::Price::PackagePrice::Item).returns(Orb::Models::Price::PackagePrice::Item) } - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::PackagePrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::PackagePrice::Maximum)) } - def maximum - end + attr_reader :maximum - sig do - params(_: T.nilable(Orb::Models::Price::PackagePrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::PackagePrice::Maximum)) - end - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Price::PackagePrice::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::PackagePrice::Minimum)) } - def minimum - end + attr_reader :minimum - sig do - params(_: T.nilable(Orb::Models::Price::PackagePrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::PackagePrice::Minimum)) - end - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Price::PackagePrice::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Orb::Models::Price::PackagePrice::PackageConfig) } - def package_config - end + attr_reader :package_config - sig do - params(_: Orb::Models::Price::PackagePrice::PackageConfig) - .returns(Orb::Models::Price::PackagePrice::PackageConfig) - end - def package_config=(_) - end + sig { params(package_config: T.any(Orb::Models::Price::PackagePrice::PackageConfig, Orb::Util::AnyHash)).void } + attr_writer :package_config sig { returns(T.nilable(Integer)) } - def plan_phase_order - end + attr_accessor :plan_phase_order - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end - - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::PackagePrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::PackagePrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::PackagePrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::PackagePrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::PackagePrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::PackagePrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::PackagePrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::PackagePrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -953,18 +721,18 @@ module Orb ), 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), + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)), + item: T.any(Orb::Models::Price::PackagePrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::PackagePrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::PackagePrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::PackagePrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, - package_config: Orb::Models::Price::PackagePrice::PackageConfig, + package_config: T.any(Orb::Models::Price::PackagePrice::PackageConfig, Orb::Util::AnyHash), plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::PackagePrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)), model_type: Symbol ) .returns(T.attached_class) @@ -1004,7 +772,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::PackagePrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::PackagePrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::PackagePrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::PackagePrice::CreditAllocation), @@ -1030,7 +798,7 @@ module Orb name: String, package_config: Orb::Models::Price::PackagePrice::PackageConfig, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::PackagePrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration) } ) @@ -1040,12 +808,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -1058,68 +821,83 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::PackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::PackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::PackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::PackagePrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::PackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let(:day, Orb::Models::Price::PackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::PackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns(T::Array[Orb::Models::Price::PackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::PackagePrice::Cadence) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::PackagePrice::Cadence::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ONE_TIME = T.let(:one_time, Orb::Models::Price::PackagePrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::PackagePrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::PackagePrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::PackagePrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::PackagePrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::PackagePrice::Cadence::TaggedSymbol) - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + class << self + sig { override.returns(T::Array[Orb::Models::Price::PackagePrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -1132,55 +910,65 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } - DAY = :day - MONTH = :month + DAY = + T.let(:day, Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -1195,21 +983,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -1226,21 +1004,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -1256,22 +1024,12 @@ module Orb class PackageConfig < Orb::BaseModel # A currency amount to rate usage by sig { returns(String) } - def package_amount - end - - sig { params(_: String).returns(String) } - def package_amount=(_) - end + attr_accessor :package_amount # An integer amount to represent package size. For example, 1000 here would divide # usage by 1000 before multiplying by package_amount in rating sig { returns(Integer) } - def package_size - end - - sig { params(_: Integer).returns(Integer) } - def package_size=(_) - end + attr_accessor :package_size sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } def self.new(package_amount:, package_size:) @@ -1282,31 +1040,28 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::PackagePrice::PriceType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::PackagePrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::PackagePrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::PackagePrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::PackagePrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -1325,77 +1080,52 @@ module Orb class MatrixPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::MatrixPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::MatrixPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::MatrixPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::MatrixPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::MatrixPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::MatrixPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::MatrixPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::MatrixPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::MatrixPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::MatrixPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::MatrixPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::MatrixPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -1409,186 +1139,99 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::MatrixPrice::Item) } - def item - end + attr_reader :item - sig { params(_: Orb::Models::Price::MatrixPrice::Item).returns(Orb::Models::Price::MatrixPrice::Item) } - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::MatrixPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(Orb::Models::Price::MatrixPrice::MatrixConfig) } - def matrix_config - end + attr_reader :matrix_config - sig do - params(_: Orb::Models::Price::MatrixPrice::MatrixConfig) - .returns(Orb::Models::Price::MatrixPrice::MatrixConfig) - end - def matrix_config=(_) - end + sig { params(matrix_config: T.any(Orb::Models::Price::MatrixPrice::MatrixConfig, Orb::Util::AnyHash)).void } + attr_writer :matrix_config sig { returns(T.nilable(Orb::Models::Price::MatrixPrice::Maximum)) } - def maximum - end + attr_reader :maximum - sig do - params(_: T.nilable(Orb::Models::Price::MatrixPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::MatrixPrice::Maximum)) - end - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Price::MatrixPrice::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::MatrixPrice::Minimum)) } - def minimum - end + attr_reader :minimum - sig do - params(_: T.nilable(Orb::Models::Price::MatrixPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::MatrixPrice::Minimum)) - end - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Price::MatrixPrice::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::MatrixPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::MatrixPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::MatrixPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::MatrixPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::MatrixPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::MatrixPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::MatrixPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -1596,18 +1239,18 @@ module Orb ), 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), + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)), + item: T.any(Orb::Models::Price::MatrixPrice::Item, Orb::Util::AnyHash), + matrix_config: T.any(Orb::Models::Price::MatrixPrice::MatrixConfig, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::MatrixPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::MatrixPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::MatrixPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::MatrixPrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)), model_type: Symbol ) .returns(T.attached_class) @@ -1647,7 +1290,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::MatrixPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::MatrixPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::MatrixPrice::CreditAllocation), @@ -1673,7 +1316,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::MatrixPrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration) } ) @@ -1683,12 +1326,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -1701,68 +1339,82 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } - DAY = :day - MONTH = :month + DAY = T.let(:day, Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixPrice::Cadence) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::MatrixPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::MatrixPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::MatrixPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::MatrixPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::MatrixPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::MatrixPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::MatrixPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::MatrixPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -1775,55 +1427,65 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let(:day, Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -1837,39 +1499,21 @@ module Orb class MatrixConfig < Orb::BaseModel # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } - def default_unit_amount - end - - sig { params(_: String).returns(String) } - def default_unit_amount=(_) - end + attr_accessor :default_unit_amount # One or two event property values to evaluate matrix groups by sig { returns(T::Array[T.nilable(String)]) } - def dimensions - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimensions=(_) - end + attr_accessor :dimensions # Matrix values for specified matrix grouping keys sig { returns(T::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue]) } - def matrix_values - end - - sig do - params(_: T::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue]) - .returns(T::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue]) - end - def matrix_values=(_) - end + attr_accessor :matrix_values sig do params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue] + matrix_values: T::Array[T.any(Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue, Orb::Util::AnyHash)] ) .returns(T.attached_class) end @@ -1894,21 +1538,11 @@ module Orb # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values # Unit price for the specified dimension_values sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -1929,21 +1563,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -1960,21 +1584,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -1987,31 +1601,28 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixPrice::PriceType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::MatrixPrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::MatrixPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::MatrixPrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::MatrixPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -2030,77 +1641,52 @@ module Orb class TieredPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::TieredPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::TieredPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::TieredPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::TieredPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::TieredPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::TieredPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::TieredPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::TieredPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::TieredPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::TieredPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::TieredPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::TieredPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -2114,186 +1700,99 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::TieredPrice::Item) } - def item - end + attr_reader :item - sig { params(_: Orb::Models::Price::TieredPrice::Item).returns(Orb::Models::Price::TieredPrice::Item) } - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::TieredPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::TieredPrice::Maximum)) } - def maximum - end + attr_reader :maximum - sig do - params(_: T.nilable(Orb::Models::Price::TieredPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::TieredPrice::Maximum)) - end - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Price::TieredPrice::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::TieredPrice::Minimum)) } - def minimum - end + attr_reader :minimum - sig do - params(_: T.nilable(Orb::Models::Price::TieredPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::TieredPrice::Minimum)) - end - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Price::TieredPrice::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::TieredPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(Orb::Models::Price::TieredPrice::TieredConfig) } - def tiered_config - end + attr_reader :tiered_config - sig do - params(_: Orb::Models::Price::TieredPrice::TieredConfig) - .returns(Orb::Models::Price::TieredPrice::TieredConfig) - end - def tiered_config=(_) - end + sig { params(tiered_config: T.any(Orb::Models::Price::TieredPrice::TieredConfig, Orb::Util::AnyHash)).void } + attr_writer :tiered_config sig { returns(T.nilable(Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::TieredPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::TieredPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::TieredPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -2301,18 +1800,18 @@ module Orb ), 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), + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)), + item: T.any(Orb::Models::Price::TieredPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::TieredPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::TieredPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), 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), + price_type: Orb::Models::Price::TieredPrice::PriceType::OrSymbol, + tiered_config: T.any(Orb::Models::Price::TieredPrice::TieredConfig, Orb::Util::AnyHash), + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)), model_type: Symbol ) .returns(T.attached_class) @@ -2352,7 +1851,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::TieredPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::TieredPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::TieredPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::TieredPrice::CreditAllocation), @@ -2377,7 +1876,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::TieredPrice::PriceType::TaggedSymbol, tiered_config: Orb::Models::Price::TieredPrice::TieredConfig, dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration) } @@ -2388,12 +1887,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -2406,68 +1900,82 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::TieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::TieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::TieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::TieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } - DAY = :day - MONTH = :month + DAY = T.let(:day, Orb::Models::Price::TieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::TieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::Price::TieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPrice::Cadence) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::TieredPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::TieredPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::TieredPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::TieredPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::TieredPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::TieredPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::TieredPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::TieredPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -2480,55 +1988,65 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let(:day, Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -2543,21 +2061,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -2574,21 +2082,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -2601,29 +2099,31 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPrice::PriceType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::TieredPrice::PriceType::TaggedSymbol) } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::TieredPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::TieredPrice::PriceType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::TieredPrice::PriceType::TaggedSymbol]) } + def values + end + end end class TieredConfig < Orb::BaseModel # Tiers for rating based on total usage quantities into the specified tier sig { returns(T::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier]) } - def tiers - end + attr_accessor :tiers sig do - params(_: T::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier]) - .returns(T::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier]) - end - def tiers=(_) + params(tiers: T::Array[T.any(Orb::Models::Price::TieredPrice::TieredConfig::Tier, Orb::Util::AnyHash)]) + .returns(T.attached_class) end - - sig { params(tiers: T::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier]).returns(T.attached_class) } def self.new(tiers:) end @@ -2634,30 +2134,15 @@ module Orb class Tier < Orb::BaseModel # Inclusive tier starting value sig { returns(Float) } - def first_unit - end - - sig { params(_: Float).returns(Float) } - def first_unit=(_) - end + attr_accessor :first_unit # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Exclusive tier ending value. If null, this is treated as the last tier sig { returns(T.nilable(Float)) } - def last_unit - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def last_unit=(_) - end + attr_accessor :last_unit sig do params( @@ -2677,20 +2162,10 @@ module Orb class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -2709,77 +2184,52 @@ module Orb class TieredBpsPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::TieredBpsPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::TieredBpsPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::TieredBpsPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::TieredBpsPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::TieredBpsPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::TieredBpsPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::TieredBpsPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::TieredBpsPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredBpsPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -2793,186 +2243,102 @@ module Orb ) ) end - def discount - end + attr_accessor :discount + + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + sig { returns(T.nilable(Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)) ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end - - sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end - - sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end - - sig { returns(T.nilable(Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end - - sig do - params(_: T.nilable(Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::TieredBpsPrice::Item) } - def item - end + attr_reader :item - sig { params(_: Orb::Models::Price::TieredBpsPrice::Item).returns(Orb::Models::Price::TieredBpsPrice::Item) } - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::TieredBpsPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::TieredBpsPrice::Maximum)) } - def maximum - end + attr_reader :maximum - sig do - params(_: T.nilable(Orb::Models::Price::TieredBpsPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::TieredBpsPrice::Maximum)) - end - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Price::TieredBpsPrice::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::TieredBpsPrice::Minimum)) } - def minimum - end + attr_reader :minimum - sig do - params(_: T.nilable(Orb::Models::Price::TieredBpsPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::TieredBpsPrice::Minimum)) - end - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Price::TieredBpsPrice::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::TieredBpsPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(Orb::Models::Price::TieredBpsPrice::TieredBpsConfig) } - def tiered_bps_config - end + attr_reader :tiered_bps_config sig do - params(_: Orb::Models::Price::TieredBpsPrice::TieredBpsConfig) - .returns(Orb::Models::Price::TieredBpsPrice::TieredBpsConfig) - end - def tiered_bps_config=(_) + params(tiered_bps_config: T.any(Orb::Models::Price::TieredBpsPrice::TieredBpsConfig, Orb::Util::AnyHash)) + .void end + attr_writer :tiered_bps_config sig { returns(T.nilable(Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredBpsPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::TieredBpsPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::TieredBpsPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredBpsPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredBpsPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -2980,18 +2346,18 @@ module Orb ), 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), + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)), + item: T.any(Orb::Models::Price::TieredBpsPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::TieredBpsPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredBpsPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::TieredBpsPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), 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), + price_type: Orb::Models::Price::TieredBpsPrice::PriceType::OrSymbol, + tiered_bps_config: T.any(Orb::Models::Price::TieredBpsPrice::TieredBpsConfig, Orb::Util::AnyHash), + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)), model_type: Symbol ) .returns(T.attached_class) @@ -3031,7 +2397,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::TieredBpsPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::TieredBpsPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::TieredBpsPrice::CreditAllocation), @@ -3056,7 +2422,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::TieredBpsPrice::PriceType::TaggedSymbol, tiered_bps_config: Orb::Models::Price::TieredBpsPrice::TieredBpsConfig, dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration) } @@ -3067,12 +2433,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -3085,68 +2446,85 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } - DAY = :day - MONTH = :month + DAY = + T.let(:day, Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredBpsPrice::Cadence) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::TieredBpsPrice::Cadence::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ONE_TIME = T.let(:one_time, Orb::Models::Price::TieredBpsPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::TieredBpsPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::TieredBpsPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::TieredBpsPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::TieredBpsPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::TieredBpsPrice::Cadence::TaggedSymbol) - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + class << self + sig { override.returns(T::Array[Orb::Models::Price::TieredBpsPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -3159,55 +2537,65 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } - DAY = :day - MONTH = :month + DAY = + T.let(:day, Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -3222,21 +2610,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -3253,21 +2631,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -3280,31 +2648,32 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredBpsPrice::PriceType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::TieredBpsPrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::TieredBpsPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::TieredBpsPrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::TieredBpsPrice::PriceType::TaggedSymbol]) } + def values + end + end end class TieredBpsConfig < Orb::BaseModel # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers sig { returns(T::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier]) } - def tiers - end - - sig do - params(_: T::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier]) - .returns(T::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier]) - end - def tiers=(_) - end + attr_accessor :tiers sig do - params(tiers: T::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier]) + params( + tiers: T::Array[T.any(Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier, Orb::Util::AnyHash)] + ) .returns(T.attached_class) end def self.new(tiers:) @@ -3317,39 +2686,19 @@ module Orb class Tier < Orb::BaseModel # Per-event basis point rate sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Inclusive tier starting value sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # Exclusive tier ending value sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # Per unit maximum to charge sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params( @@ -3381,20 +2730,10 @@ module Orb class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -3413,85 +2752,58 @@ module Orb class BpsPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::BpsPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::BpsPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::BpsPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::BpsPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::BpsPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::BpsPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::BpsPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) + params( + billing_cycle_configuration: T.any(Orb::Models::Price::BpsPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration sig { returns(Orb::Models::Price::BpsPrice::BpsConfig) } - def bps_config - end - - sig { params(_: Orb::Models::Price::BpsPrice::BpsConfig).returns(Orb::Models::Price::BpsPrice::BpsConfig) } - def bps_config=(_) - end + attr_reader :bps_config - sig { returns(Symbol) } - def cadence - end + sig { params(bps_config: T.any(Orb::Models::Price::BpsPrice::BpsConfig, Orb::Util::AnyHash)).void } + attr_writer :bps_config - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::BpsPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::BpsPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::BpsPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::BpsPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::BpsPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -3505,176 +2817,94 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::BpsPrice::Item) } - def item - end + attr_reader :item - sig { params(_: Orb::Models::Price::BpsPrice::Item).returns(Orb::Models::Price::BpsPrice::Item) } - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::BpsPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::BpsPrice::Maximum)) } - def maximum - end + attr_reader :maximum - sig do - params(_: T.nilable(Orb::Models::Price::BpsPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::BpsPrice::Maximum)) - end - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Price::BpsPrice::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::BpsPrice::Minimum)) } - def minimum - end + attr_reader :minimum - sig do - params(_: T.nilable(Orb::Models::Price::BpsPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::BpsPrice::Minimum)) - end - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Price::BpsPrice::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end + attr_accessor :plan_phase_order - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end - - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::BpsPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( 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, + billable_metric: T.nilable(T.any(Orb::Models::Price::BpsPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::BpsPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + bps_config: T.any(Orb::Models::Price::BpsPrice::BpsConfig, Orb::Util::AnyHash), + cadence: Orb::Models::Price::BpsPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::BpsPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::BpsPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -3682,17 +2912,17 @@ module Orb ), 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), + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)), + item: T.any(Orb::Models::Price::BpsPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::BpsPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::BpsPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::BpsPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::BpsPrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)), model_type: Symbol ) .returns(T.attached_class) @@ -3733,7 +2963,7 @@ module Orb 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, + cadence: Orb::Models::Price::BpsPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::BpsPrice::CreditAllocation), @@ -3758,7 +2988,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::BpsPrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration) } ) @@ -3768,12 +2998,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -3786,57 +3011,64 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::BpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::BpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::BpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::BpsPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::BpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + DAY = T.let(:day, Orb::Models::Price::BpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::BpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns(T::Array[Orb::Models::Price::BpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def values + end + end end end class BpsConfig < Orb::BaseModel # Basis point take rate per event sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Optional currency amount maximum to cap spend per event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } def self.new(bps:, per_unit_maximum: nil) @@ -3847,35 +3079,32 @@ module Orb end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::BpsPrice::Cadence) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::BpsPrice::Cadence::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ONE_TIME = T.let(:one_time, Orb::Models::Price::BpsPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::BpsPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::BpsPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::BpsPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::BpsPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::BpsPrice::Cadence::TaggedSymbol) - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + class << self + sig { override.returns(T::Array[Orb::Models::Price::BpsPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -3888,55 +3117,62 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } - DAY = :day - MONTH = :month + DAY = T.let(:day, Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -3951,21 +3187,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -3982,21 +3208,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -4009,31 +3225,28 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::BpsPrice::PriceType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::BpsPrice::PriceType::TaggedSymbol) } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::BpsPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::BpsPrice::PriceType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::BpsPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -4052,88 +3265,58 @@ module Orb class BulkBpsPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::BulkBpsPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::BulkBpsPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::BulkBpsPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::BulkBpsPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) + params( + billing_cycle_configuration: T.any(Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration sig { returns(Orb::Models::Price::BulkBpsPrice::BulkBpsConfig) } - def bulk_bps_config - end - - sig do - params(_: Orb::Models::Price::BulkBpsPrice::BulkBpsConfig) - .returns(Orb::Models::Price::BulkBpsPrice::BulkBpsConfig) - end - def bulk_bps_config=(_) - end + attr_reader :bulk_bps_config - sig { returns(Symbol) } - def cadence - end + sig { params(bulk_bps_config: T.any(Orb::Models::Price::BulkBpsPrice::BulkBpsConfig, Orb::Util::AnyHash)).void } + attr_writer :bulk_bps_config - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::BulkBpsPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::BulkBpsPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::BulkBpsPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::BulkBpsPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::BulkBpsPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -4147,176 +3330,94 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::BulkBpsPrice::Item) } - def item - end + attr_reader :item - sig { params(_: Orb::Models::Price::BulkBpsPrice::Item).returns(Orb::Models::Price::BulkBpsPrice::Item) } - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::BulkBpsPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::BulkBpsPrice::Maximum)) } - def maximum - end + attr_reader :maximum - sig do - params(_: T.nilable(Orb::Models::Price::BulkBpsPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::BulkBpsPrice::Maximum)) - end - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Price::BulkBpsPrice::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::BulkBpsPrice::Minimum)) } - def minimum - end + attr_reader :minimum - sig do - params(_: T.nilable(Orb::Models::Price::BulkBpsPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::BulkBpsPrice::Minimum)) - end - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Price::BulkBpsPrice::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order - sig { returns(Symbol) } - def price_type - end - - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::BulkBpsPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( 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, + billable_metric: T.nilable(T.any(Orb::Models::Price::BulkBpsPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + bulk_bps_config: T.any(Orb::Models::Price::BulkBpsPrice::BulkBpsConfig, Orb::Util::AnyHash), + cadence: Orb::Models::Price::BulkBpsPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::BulkBpsPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::BulkBpsPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -4324,17 +3425,17 @@ module Orb ), 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), + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)), + item: T.any(Orb::Models::Price::BulkBpsPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::BulkBpsPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::BulkBpsPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::BulkBpsPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::BulkBpsPrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)), model_type: Symbol ) .returns(T.attached_class) @@ -4375,7 +3476,7 @@ module Orb 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, + cadence: Orb::Models::Price::BulkBpsPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::BulkBpsPrice::CreditAllocation), @@ -4400,7 +3501,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::BulkBpsPrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration) } ) @@ -4410,12 +3511,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -4428,36 +3524,54 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let(:day, Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns(T::Array[Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def values + end + end end end @@ -4465,17 +3579,12 @@ module Orb # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume sig { returns(T::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier]) } - def tiers - end + attr_accessor :tiers sig do - params(_: T::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier]) - .returns(T::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier]) - end - def tiers=(_) + params(tiers: T::Array[T.any(Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier, Orb::Util::AnyHash)]) + .returns(T.attached_class) end - - sig { params(tiers: T::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier]).returns(T.attached_class) } def self.new(tiers:) end @@ -4486,30 +3595,15 @@ module Orb class Tier < Orb::BaseModel # Basis points to rate on sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Upper bound for tier sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The maximum amount to charge for any one event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) @@ -4532,35 +3626,32 @@ module Orb end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::BulkBpsPrice::Cadence) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::BulkBpsPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::BulkBpsPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::BulkBpsPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::BulkBpsPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::BulkBpsPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::BulkBpsPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::BulkBpsPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::BulkBpsPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -4573,55 +3664,65 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let(:day, Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -4636,21 +3737,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -4667,21 +3758,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -4694,31 +3775,28 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::BulkBpsPrice::PriceType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::BulkBpsPrice::PriceType::TaggedSymbol) } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::BulkBpsPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::BulkBpsPrice::PriceType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::BulkBpsPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -4737,85 +3815,58 @@ module Orb class BulkPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::BulkPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::BulkPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::BulkPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::BulkPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::BulkPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::BulkPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::BulkPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) + params( + billing_cycle_configuration: T.any(Orb::Models::Price::BulkPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration sig { returns(Orb::Models::Price::BulkPrice::BulkConfig) } - def bulk_config - end - - sig { params(_: Orb::Models::Price::BulkPrice::BulkConfig).returns(Orb::Models::Price::BulkPrice::BulkConfig) } - def bulk_config=(_) - end + attr_reader :bulk_config - sig { returns(Symbol) } - def cadence - end + sig { params(bulk_config: T.any(Orb::Models::Price::BulkPrice::BulkConfig, Orb::Util::AnyHash)).void } + attr_writer :bulk_config - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::BulkPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::BulkPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::BulkPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::BulkPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::BulkPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -4829,176 +3880,94 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::BulkPrice::Item) } - def item - end + attr_reader :item - sig { params(_: Orb::Models::Price::BulkPrice::Item).returns(Orb::Models::Price::BulkPrice::Item) } - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::BulkPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::BulkPrice::Maximum)) } - def maximum - end + attr_reader :maximum - sig do - params(_: T.nilable(Orb::Models::Price::BulkPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::BulkPrice::Maximum)) - end - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Price::BulkPrice::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::BulkPrice::Minimum)) } - def minimum - end + attr_reader :minimum - sig do - params(_: T.nilable(Orb::Models::Price::BulkPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::BulkPrice::Minimum)) - end - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Price::BulkPrice::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order - sig { returns(Symbol) } - def price_type - end - - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::BulkPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( 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, + billable_metric: T.nilable(T.any(Orb::Models::Price::BulkPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::BulkPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + bulk_config: T.any(Orb::Models::Price::BulkPrice::BulkConfig, Orb::Util::AnyHash), + cadence: Orb::Models::Price::BulkPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::BulkPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::BulkPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -5006,17 +3975,17 @@ module Orb ), 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), + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)), + item: T.any(Orb::Models::Price::BulkPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::BulkPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::BulkPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::BulkPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::BulkPrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable(T.any(Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash)), model_type: Symbol ) .returns(T.attached_class) @@ -5057,7 +4026,7 @@ module Orb 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, + cadence: Orb::Models::Price::BulkPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::BulkPrice::CreditAllocation), @@ -5082,7 +4051,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::BulkPrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration) } ) @@ -5092,12 +4061,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -5110,53 +4074,65 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::BulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::BulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::BulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::BulkPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::BulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + DAY = T.let(:day, Orb::Models::Price::BulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::BulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns(T::Array[Orb::Models::Price::BulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def values + end + end end end class BulkConfig < Orb::BaseModel # Bulk tiers for rating based on total usage volume sig { returns(T::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier]) } - def tiers - end + attr_accessor :tiers sig do - params(_: T::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier]) - .returns(T::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier]) - end - def tiers=(_) + params(tiers: T::Array[T.any(Orb::Models::Price::BulkPrice::BulkConfig::Tier, Orb::Util::AnyHash)]) + .returns(T.attached_class) end - - sig { params(tiers: T::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier]).returns(T.attached_class) } def self.new(tiers:) end @@ -5167,21 +4143,11 @@ module Orb class Tier < Orb::BaseModel # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Upper bound for this tier sig { returns(T.nilable(Float)) } - def maximum_units - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def maximum_units=(_) - end + attr_accessor :maximum_units sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } def self.new(unit_amount:, maximum_units: nil) @@ -5193,35 +4159,32 @@ module Orb end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::BulkPrice::Cadence) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::BulkPrice::Cadence::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ONE_TIME = T.let(:one_time, Orb::Models::Price::BulkPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::BulkPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::BulkPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::BulkPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::BulkPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::BulkPrice::Cadence::TaggedSymbol) - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + class << self + sig { override.returns(T::Array[Orb::Models::Price::BulkPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -5234,55 +4197,62 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } - DAY = :day - MONTH = :month + DAY = T.let(:day, Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -5297,21 +4267,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -5328,21 +4288,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -5355,31 +4305,28 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::BulkPrice::PriceType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::BulkPrice::PriceType::TaggedSymbol) } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::BulkPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::BulkPrice::PriceType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::BulkPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -5398,77 +4345,52 @@ module Orb class ThresholdTotalAmountPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::ThresholdTotalAmountPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -5482,186 +4404,110 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::ThresholdTotalAmountPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::ThresholdTotalAmountPrice::Item) - .returns(Orb::Models::Price::ThresholdTotalAmountPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::ThresholdTotalAmountPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::Price::ThresholdTotalAmountPrice::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::Price::ThresholdTotalAmountPrice::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::ThresholdTotalAmountPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config=(_) - end + attr_accessor :threshold_total_amount_config sig { returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::ThresholdTotalAmountPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -5669,18 +4515,22 @@ module Orb ), 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), + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::ThresholdTotalAmountPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::ThresholdTotalAmountPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::ThresholdTotalAmountPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::ThresholdTotalAmountPrice::PriceType::OrSymbol, threshold_total_amount_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration), + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -5720,7 +4570,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::ThresholdTotalAmountPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation), @@ -5745,7 +4595,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::ThresholdTotalAmountPrice::PriceType::TaggedSymbol, threshold_total_amount_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration) } @@ -5756,12 +4606,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -5774,68 +4619,101 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::ThresholdTotalAmountPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::ThresholdTotalAmountPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::ThresholdTotalAmountPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::ThresholdTotalAmountPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::ThresholdTotalAmountPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::ThresholdTotalAmountPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::ThresholdTotalAmountPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::ThresholdTotalAmountPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::ThresholdTotalAmountPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -5848,55 +4726,80 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end + + DAY = + T.let( + :day, + Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -5911,21 +4814,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -5942,21 +4835,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -5969,31 +4852,29 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::ThresholdTotalAmountPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::ThresholdTotalAmountPrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::ThresholdTotalAmountPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::ThresholdTotalAmountPrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::ThresholdTotalAmountPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -6012,77 +4893,52 @@ module Orb class TieredPackagePrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::TieredPackagePrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::TieredPackagePrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::TieredPackagePrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::TieredPackagePrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::TieredPackagePrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::TieredPackagePrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::TieredPackagePrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::TieredPackagePrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredPackagePrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -6096,186 +4952,98 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::TieredPackagePrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::TieredPackagePrice::Item) - .returns(Orb::Models::Price::TieredPackagePrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::TieredPackagePrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::TieredPackagePrice::Maximum)) } - def maximum - end + attr_reader :maximum - sig do - params(_: T.nilable(Orb::Models::Price::TieredPackagePrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::TieredPackagePrice::Maximum)) - end - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Price::TieredPackagePrice::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::TieredPackagePrice::Minimum)) } - def minimum - end + attr_reader :minimum - sig do - params(_: T.nilable(Orb::Models::Price::TieredPackagePrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::TieredPackagePrice::Minimum)) - end - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Price::TieredPackagePrice::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::TieredPackagePrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config=(_) - end + attr_accessor :tiered_package_config sig { returns(T.nilable(Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredPackagePrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::TieredPackagePrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::TieredPackagePrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredPackagePrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredPackagePrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -6283,18 +5051,20 @@ module Orb ), 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), + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)), + item: T.any(Orb::Models::Price::TieredPackagePrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::TieredPackagePrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredPackagePrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::TieredPackagePrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::TieredPackagePrice::PriceType::OrSymbol, tiered_package_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration), + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -6334,7 +5104,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::TieredPackagePrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::TieredPackagePrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::TieredPackagePrice::CreditAllocation), @@ -6359,7 +5129,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::TieredPackagePrice::PriceType::TaggedSymbol, tiered_package_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration) } @@ -6370,12 +5140,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -6388,68 +5153,93 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end + + DAY = + T.let(:day, Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let( + :month, + Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPackagePrice::Cadence) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::TieredPackagePrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::TieredPackagePrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::TieredPackagePrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::TieredPackagePrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::TieredPackagePrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::TieredPackagePrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::TieredPackagePrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::TieredPackagePrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -6462,55 +5252,76 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -6525,21 +5336,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -6556,21 +5357,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -6583,31 +5374,29 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPackagePrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::TieredPackagePrice::PriceType::TaggedSymbol) } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::TieredPackagePrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::TieredPackagePrice::PriceType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::TieredPackagePrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -6626,77 +5415,52 @@ module Orb class GroupedTieredPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedTieredPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::GroupedTieredPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::GroupedTieredPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -6710,186 +5474,98 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_config=(_) - end + attr_accessor :grouped_tiered_config sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::GroupedTieredPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::GroupedTieredPrice::Item) - .returns(Orb::Models::Price::GroupedTieredPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::GroupedTieredPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::Maximum)) } - def maximum - end + attr_reader :maximum - sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::Maximum)) - end - def maximum=(_) - end + sig { params(maximum: T.nilable(T.any(Orb::Models::Price::GroupedTieredPrice::Maximum, Orb::Util::AnyHash))).void } + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::Minimum)) } - def minimum - end + attr_reader :minimum - sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::Minimum)) - end - def minimum=(_) - end + sig { params(minimum: T.nilable(T.any(Orb::Models::Price::GroupedTieredPrice::Minimum, Orb::Util::AnyHash))).void } + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::GroupedTieredPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::GroupedTieredPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedTieredPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::GroupedTieredPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::GroupedTieredPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::GroupedTieredPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -6898,17 +5574,19 @@ module Orb 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), + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash)), + item: T.any(Orb::Models::Price::GroupedTieredPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::GroupedTieredPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::GroupedTieredPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::GroupedTieredPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::GroupedTieredPrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -6948,7 +5626,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::GroupedTieredPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::GroupedTieredPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::GroupedTieredPrice::CreditAllocation), @@ -6974,7 +5652,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::GroupedTieredPrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration) } ) @@ -6984,12 +5662,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -7002,68 +5675,93 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end + + DAY = + T.let(:day, Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let( + :month, + Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedTieredPrice::Cadence) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Price::GroupedTieredPrice::Cadence::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ONE_TIME = T.let(:one_time, Orb::Models::Price::GroupedTieredPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::GroupedTieredPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::GroupedTieredPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::GroupedTieredPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::GroupedTieredPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::GroupedTieredPrice::Cadence::TaggedSymbol) - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + class << self + sig { override.returns(T::Array[Orb::Models::Price::GroupedTieredPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -7076,55 +5774,76 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -7139,21 +5858,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -7170,21 +5879,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -7197,31 +5896,29 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedTieredPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::GroupedTieredPrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::GroupedTieredPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::GroupedTieredPrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::GroupedTieredPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -7240,77 +5937,52 @@ module Orb class TieredWithMinimumPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::TieredWithMinimumPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::TieredWithMinimumPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -7324,186 +5996,106 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::TieredWithMinimumPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::TieredWithMinimumPrice::Item) - .returns(Orb::Models::Price::TieredWithMinimumPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::TieredWithMinimumPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Maximum)) - end - def maximum=(_) + params(maximum: T.nilable(T.any(Orb::Models::Price::TieredWithMinimumPrice::Maximum, Orb::Util::AnyHash))) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Minimum)) - end - def minimum=(_) + params(minimum: T.nilable(T.any(Orb::Models::Price::TieredWithMinimumPrice::Minimum, Orb::Util::AnyHash))) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order - sig { returns(Symbol) } - def price_type - end - - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::TieredWithMinimumPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config=(_) - end + attr_accessor :tiered_with_minimum_config sig { returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::TieredWithMinimumPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::TieredWithMinimumPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -7511,18 +6103,22 @@ module Orb ), 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), + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::TieredWithMinimumPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::TieredWithMinimumPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::TieredWithMinimumPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::TieredWithMinimumPrice::PriceType::OrSymbol, tiered_with_minimum_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration), + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -7562,7 +6158,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::TieredWithMinimumPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation), @@ -7587,7 +6183,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::TieredWithMinimumPrice::PriceType::TaggedSymbol, tiered_with_minimum_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration) } @@ -7598,12 +6194,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -7616,68 +6207,97 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredWithMinimumPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::TieredWithMinimumPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::TieredWithMinimumPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::TieredWithMinimumPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::TieredWithMinimumPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::TieredWithMinimumPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::TieredWithMinimumPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::TieredWithMinimumPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::TieredWithMinimumPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -7690,55 +6310,80 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -7753,21 +6398,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -7784,21 +6419,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -7811,31 +6436,29 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredWithMinimumPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::TieredWithMinimumPrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::TieredWithMinimumPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::TieredWithMinimumPrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::TieredWithMinimumPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -7854,77 +6477,52 @@ module Orb class TieredPackageWithMinimumPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -7938,186 +6536,113 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::TieredPackageWithMinimumPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::TieredPackageWithMinimumPrice::Item) - .returns(Orb::Models::Price::TieredPackageWithMinimumPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end + attr_accessor :plan_phase_order - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + sig { returns(Orb::Models::Price::TieredPackageWithMinimumPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type - sig { returns(Symbol) } - def price_type - end + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :tiered_package_with_minimum_config - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end - - sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_package_with_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_package_with_minimum_config=(_) - end - - sig { returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + sig { returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any( + Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -8125,18 +6650,25 @@ module Orb ), 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), + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::TieredPackageWithMinimumPrice::PriceType::OrSymbol, tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration), + dimensional_price_configuration: T.nilable( + T.any( + Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration, + Orb::Util::AnyHash + ) + ), model_type: Symbol ) .returns(T.attached_class) @@ -8176,7 +6708,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation), @@ -8201,7 +6733,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::TieredPackageWithMinimumPrice::PriceType::TaggedSymbol, tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration) } @@ -8212,12 +6744,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -8230,68 +6757,102 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ONE_TIME = T.let(:one_time, Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence::TaggedSymbol) - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + class << self + sig { override.returns(T::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -8304,55 +6865,82 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -8367,21 +6955,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -8398,21 +6976,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -8425,31 +6993,32 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::TieredPackageWithMinimumPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::TieredPackageWithMinimumPrice::PriceType::TaggedSymbol) } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + USAGE_PRICE = + T.let(:usage_price, Orb::Models::Price::TieredPackageWithMinimumPrice::PriceType::TaggedSymbol) + FIXED_PRICE = + T.let(:fixed_price, Orb::Models::Price::TieredPackageWithMinimumPrice::PriceType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -8468,77 +7037,52 @@ module Orb class PackageWithAllocationPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::PackageWithAllocationPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::PackageWithAllocationPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -8552,186 +7096,110 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::PackageWithAllocationPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::PackageWithAllocationPrice::Item) - .returns(Orb::Models::Price::PackageWithAllocationPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::PackageWithAllocationPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::Price::PackageWithAllocationPrice::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::Price::PackageWithAllocationPrice::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config=(_) - end + attr_accessor :package_with_allocation_config sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order - sig { returns(Symbol) } - def price_type - end - - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::PackageWithAllocationPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::PackageWithAllocationPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::PackageWithAllocationPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -8739,18 +7207,22 @@ module Orb ), 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), + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::PackageWithAllocationPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::PackageWithAllocationPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::PackageWithAllocationPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), 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), + price_type: Orb::Models::Price::PackageWithAllocationPrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -8790,7 +7262,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::PackageWithAllocationPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation), @@ -8816,7 +7288,7 @@ module Orb name: String, package_with_allocation_config: T::Hash[Symbol, T.anything], plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::PackageWithAllocationPrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration) } ) @@ -8826,12 +7298,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -8844,68 +7311,101 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::PackageWithAllocationPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::PackageWithAllocationPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::PackageWithAllocationPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::PackageWithAllocationPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::PackageWithAllocationPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::PackageWithAllocationPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::PackageWithAllocationPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::PackageWithAllocationPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::PackageWithAllocationPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -8918,55 +7418,80 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } - def to_hash - end - - class DurationUnit < Orb::Enum - abstract! + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end + def to_hash + end + + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -8981,21 +7506,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -9012,21 +7527,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -9039,31 +7544,31 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::PackageWithAllocationPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::PackageWithAllocationPrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = + T.let(:usage_price, Orb::Models::Price::PackageWithAllocationPrice::PriceType::TaggedSymbol) + FIXED_PRICE = + T.let(:fixed_price, Orb::Models::Price::PackageWithAllocationPrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::PackageWithAllocationPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -9082,77 +7587,52 @@ module Orb class UnitWithPercentPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::UnitWithPercentPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::UnitWithPercentPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::UnitWithPercentPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::UnitWithPercentPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::UnitWithPercentPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -9166,186 +7646,106 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::UnitWithPercentPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::UnitWithPercentPrice::Item) - .returns(Orb::Models::Price::UnitWithPercentPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::UnitWithPercentPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::UnitWithPercentPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::Maximum)) - end - def maximum=(_) + params(maximum: T.nilable(T.any(Orb::Models::Price::UnitWithPercentPrice::Maximum, Orb::Util::AnyHash))) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::UnitWithPercentPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::Minimum)) - end - def minimum=(_) + params(minimum: T.nilable(T.any(Orb::Models::Price::UnitWithPercentPrice::Minimum, Orb::Util::AnyHash))) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order - sig { returns(Symbol) } - def price_type - end - - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::UnitWithPercentPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config=(_) - end + attr_accessor :unit_with_percent_config sig { returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::UnitWithPercentPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::UnitWithPercentPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::UnitWithPercentPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::UnitWithPercentPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::UnitWithPercentPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -9353,18 +7753,22 @@ module Orb ), 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), + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::UnitWithPercentPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::UnitWithPercentPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::UnitWithPercentPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::UnitWithPercentPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::UnitWithPercentPrice::PriceType::OrSymbol, unit_with_percent_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration), + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -9404,7 +7808,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::UnitWithPercentPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::UnitWithPercentPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::UnitWithPercentPrice::CreditAllocation), @@ -9429,7 +7833,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::UnitWithPercentPrice::PriceType::TaggedSymbol, unit_with_percent_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration) } @@ -9440,12 +7844,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -9458,68 +7857,97 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::UnitWithPercentPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::UnitWithPercentPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::UnitWithPercentPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::UnitWithPercentPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::UnitWithPercentPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::UnitWithPercentPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::UnitWithPercentPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::UnitWithPercentPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::UnitWithPercentPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -9532,55 +7960,76 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -9595,21 +8044,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -9626,21 +8065,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -9653,31 +8082,29 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::UnitWithPercentPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::UnitWithPercentPrice::PriceType::TaggedSymbol) } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::UnitWithPercentPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::UnitWithPercentPrice::PriceType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::UnitWithPercentPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -9696,77 +8123,52 @@ module Orb class MatrixWithAllocationPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::MatrixWithAllocationPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -9780,189 +8182,118 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::MatrixWithAllocationPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::MatrixWithAllocationPrice::Item) - .returns(Orb::Models::Price::MatrixWithAllocationPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::MatrixWithAllocationPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig) } - def matrix_with_allocation_config - end + attr_reader :matrix_with_allocation_config sig do - params(_: Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig) - .returns(Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig) - end - def matrix_with_allocation_config=(_) + params( + matrix_with_allocation_config: T.any(Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig, Orb::Util::AnyHash) + ) + .void end + attr_writer :matrix_with_allocation_config sig { returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::Price::MatrixWithAllocationPrice::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::Price::MatrixWithAllocationPrice::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::MatrixWithAllocationPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::MatrixWithAllocationPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -9970,18 +8301,22 @@ module Orb ), 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), + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::MatrixWithAllocationPrice::Item, Orb::Util::AnyHash), + matrix_with_allocation_config: T.any(Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::MatrixWithAllocationPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::MatrixWithAllocationPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::MatrixWithAllocationPrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -10021,7 +8356,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::MatrixWithAllocationPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation), @@ -10047,7 +8382,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::MatrixWithAllocationPrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration) } ) @@ -10057,12 +8392,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -10075,68 +8405,101 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixWithAllocationPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::MatrixWithAllocationPrice::Cadence::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ONE_TIME = T.let(:one_time, Orb::Models::Price::MatrixWithAllocationPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::MatrixWithAllocationPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::MatrixWithAllocationPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::MatrixWithAllocationPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::MatrixWithAllocationPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::MatrixWithAllocationPrice::Cadence::TaggedSymbol) - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + class << self + sig { override.returns(T::Array[Orb::Models::Price::MatrixWithAllocationPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -10149,55 +8512,80 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -10211,51 +8599,31 @@ module Orb class MatrixWithAllocationConfig < Orb::BaseModel # Allocation to be used to calculate the price sig { returns(Float) } - def allocation - end - - sig { params(_: Float).returns(Float) } - def allocation=(_) - end + attr_accessor :allocation # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } - def default_unit_amount - end - - sig { params(_: String).returns(String) } - def default_unit_amount=(_) - end + attr_accessor :default_unit_amount # One or two event property values to evaluate matrix groups by sig { returns(T::Array[T.nilable(String)]) } - def dimensions - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimensions=(_) - end + attr_accessor :dimensions # Matrix values for specified matrix grouping keys 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]) - end - def matrix_values=(_) - end + attr_accessor :matrix_values sig do params( allocation: Float, default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] + matrix_values: T::Array[ + T.any( + Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue, + Orb::Util::AnyHash + ) + ] ) .returns(T.attached_class) end @@ -10281,21 +8649,11 @@ module Orb # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values # Unit price for the specified dimension_values sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -10316,21 +8674,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -10347,21 +8695,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -10374,31 +8712,29 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixWithAllocationPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::MatrixWithAllocationPrice::PriceType::TaggedSymbol) } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::MatrixWithAllocationPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::MatrixWithAllocationPrice::PriceType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::MatrixWithAllocationPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -10417,77 +8753,52 @@ module Orb class TieredWithProrationPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::TieredWithProrationPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::TieredWithProrationPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::TieredWithProrationPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::TieredWithProrationPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredWithProrationPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -10501,186 +8812,110 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::TieredWithProrationPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::TieredWithProrationPrice::Item) - .returns(Orb::Models::Price::TieredWithProrationPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::TieredWithProrationPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::TieredWithProrationPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::Price::TieredWithProrationPrice::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::TieredWithProrationPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::Price::TieredWithProrationPrice::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::TieredWithProrationPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config=(_) - end + attr_accessor :tiered_with_proration_config sig { returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::TieredWithProrationPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::TieredWithProrationPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::TieredWithProrationPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::TieredWithProrationPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::TieredWithProrationPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -10688,18 +8923,22 @@ module Orb ), 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), + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::TieredWithProrationPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::TieredWithProrationPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::TieredWithProrationPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::TieredWithProrationPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::TieredWithProrationPrice::PriceType::OrSymbol, tiered_with_proration_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration), + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -10739,7 +8978,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::TieredWithProrationPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::TieredWithProrationPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::TieredWithProrationPrice::CreditAllocation), @@ -10764,7 +9003,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::TieredWithProrationPrice::PriceType::TaggedSymbol, tiered_with_proration_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration) } @@ -10775,12 +9014,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -10793,68 +9027,101 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredWithProrationPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::TieredWithProrationPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::TieredWithProrationPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::TieredWithProrationPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::TieredWithProrationPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::TieredWithProrationPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::TieredWithProrationPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::TieredWithProrationPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::TieredWithProrationPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -10867,55 +9134,80 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end + + DAY = + T.let( + :day, + Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -10930,21 +9222,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -10961,21 +9243,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -10988,31 +9260,29 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::TieredWithProrationPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::TieredWithProrationPrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::TieredWithProrationPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::TieredWithProrationPrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::TieredWithProrationPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -11031,77 +9301,52 @@ module Orb class UnitWithProrationPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::UnitWithProrationPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::UnitWithProrationPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::UnitWithProrationPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::UnitWithProrationPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::UnitWithProrationPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -11115,186 +9360,106 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::UnitWithProrationPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::UnitWithProrationPrice::Item) - .returns(Orb::Models::Price::UnitWithProrationPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::UnitWithProrationPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::UnitWithProrationPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::Maximum)) - end - def maximum=(_) + params(maximum: T.nilable(T.any(Orb::Models::Price::UnitWithProrationPrice::Maximum, Orb::Util::AnyHash))) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::UnitWithProrationPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::Minimum)) - end - def minimum=(_) + params(minimum: T.nilable(T.any(Orb::Models::Price::UnitWithProrationPrice::Minimum, Orb::Util::AnyHash))) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end + attr_accessor :plan_phase_order - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end - - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::UnitWithProrationPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config=(_) - end + attr_accessor :unit_with_proration_config sig { returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::UnitWithProrationPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::UnitWithProrationPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::UnitWithProrationPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::UnitWithProrationPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::UnitWithProrationPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -11302,18 +9467,22 @@ module Orb ), 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), + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::UnitWithProrationPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::UnitWithProrationPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::UnitWithProrationPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::UnitWithProrationPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::UnitWithProrationPrice::PriceType::OrSymbol, unit_with_proration_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration), + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -11353,7 +9522,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::UnitWithProrationPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::UnitWithProrationPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::UnitWithProrationPrice::CreditAllocation), @@ -11378,7 +9547,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::UnitWithProrationPrice::PriceType::TaggedSymbol, unit_with_proration_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration) } @@ -11389,12 +9558,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -11407,68 +9571,97 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::UnitWithProrationPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::UnitWithProrationPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::UnitWithProrationPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::UnitWithProrationPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::UnitWithProrationPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::UnitWithProrationPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::UnitWithProrationPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::UnitWithProrationPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::UnitWithProrationPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -11481,55 +9674,80 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end + + DAY = + T.let( + :day, + Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -11544,21 +9762,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -11575,21 +9783,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -11602,31 +9800,29 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::UnitWithProrationPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::UnitWithProrationPrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::UnitWithProrationPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::UnitWithProrationPrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::UnitWithProrationPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -11645,77 +9841,52 @@ module Orb class GroupedAllocationPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::GroupedAllocationPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedAllocationPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::GroupedAllocationPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::GroupedAllocationPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::GroupedAllocationPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -11729,186 +9900,106 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config=(_) - end + attr_accessor :grouped_allocation_config sig { returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::GroupedAllocationPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::GroupedAllocationPrice::Item) - .returns(Orb::Models::Price::GroupedAllocationPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::GroupedAllocationPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::GroupedAllocationPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::Maximum)) - end - def maximum=(_) + params(maximum: T.nilable(T.any(Orb::Models::Price::GroupedAllocationPrice::Maximum, Orb::Util::AnyHash))) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::GroupedAllocationPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::Minimum)) - end - def minimum=(_) + params(minimum: T.nilable(T.any(Orb::Models::Price::GroupedAllocationPrice::Minimum, Orb::Util::AnyHash))) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::GroupedAllocationPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::GroupedAllocationPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedAllocationPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::GroupedAllocationPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::GroupedAllocationPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::GroupedAllocationPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -11917,17 +10008,21 @@ module Orb 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), + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::GroupedAllocationPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::GroupedAllocationPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::GroupedAllocationPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::GroupedAllocationPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::GroupedAllocationPrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -11967,7 +10062,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::GroupedAllocationPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::GroupedAllocationPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::GroupedAllocationPrice::CreditAllocation), @@ -11993,7 +10088,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::GroupedAllocationPrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration) } ) @@ -12003,12 +10098,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -12021,68 +10111,97 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedAllocationPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::GroupedAllocationPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::GroupedAllocationPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::GroupedAllocationPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::GroupedAllocationPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::GroupedAllocationPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::GroupedAllocationPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::GroupedAllocationPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::GroupedAllocationPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -12095,55 +10214,80 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end + + DAY = + T.let( + :day, + Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -12158,21 +10302,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -12189,21 +10323,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -12216,31 +10340,29 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedAllocationPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::GroupedAllocationPrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::GroupedAllocationPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::GroupedAllocationPrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::GroupedAllocationPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -12259,77 +10381,54 @@ module Orb class GroupedWithProratedMinimumPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable( + T.any(Orb::Models::Price::GroupedWithProratedMinimumPrice::CreditAllocation, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -12343,186 +10442,118 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config=(_) - end + attr_accessor :grouped_with_prorated_minimum_config sig { returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::GroupedWithProratedMinimumPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::GroupedWithProratedMinimumPrice::Item) - .returns(Orb::Models::Price::GroupedWithProratedMinimumPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::GroupedWithProratedMinimumPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::Price::GroupedWithProratedMinimumPrice::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order - sig { returns(Symbol) } - def price_type - end - - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::GroupedWithProratedMinimumPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any( + Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::CreditAllocation), + credit_allocation: T.nilable( + T.any(Orb::Models::Price::GroupedWithProratedMinimumPrice::CreditAllocation, Orb::Util::AnyHash) + ), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -12531,17 +10562,27 @@ module Orb 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), + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ), + item: T.any(Orb::Models::Price::GroupedWithProratedMinimumPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::GroupedWithProratedMinimumPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::GroupedWithProratedMinimumPrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable( + T.any( + Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration, + Orb::Util::AnyHash + ) + ), model_type: Symbol ) .returns(T.attached_class) @@ -12581,7 +10622,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::CreditAllocation), @@ -12607,7 +10648,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::GroupedWithProratedMinimumPrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration) } ) @@ -12617,12 +10658,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -12635,68 +10671,105 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ONE_TIME = T.let(:one_time, Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence::TaggedSymbol) - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + class << self + sig { override.returns(T::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -12709,55 +10782,84 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -12772,21 +10874,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -12803,21 +10895,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -12830,31 +10912,32 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedWithProratedMinimumPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::GroupedWithProratedMinimumPrice::PriceType::TaggedSymbol) } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + USAGE_PRICE = + T.let(:usage_price, Orb::Models::Price::GroupedWithProratedMinimumPrice::PriceType::TaggedSymbol) + FIXED_PRICE = + T.let(:fixed_price, Orb::Models::Price::GroupedWithProratedMinimumPrice::PriceType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -12873,77 +10956,52 @@ module Orb class GroupedWithMeteredMinimumPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -12957,186 +11015,113 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config=(_) - end + attr_accessor :grouped_with_metered_minimum_config sig { returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Item) - .returns(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order - sig { returns(Symbol) } - def price_type - end - - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::GroupedWithMeteredMinimumPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any( + Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -13145,17 +11130,24 @@ module Orb 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), + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::GroupedWithMeteredMinimumPrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable( + T.any( + Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration, + Orb::Util::AnyHash + ) + ), model_type: Symbol ) .returns(T.attached_class) @@ -13195,7 +11187,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::CreditAllocation), @@ -13221,7 +11213,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::GroupedWithMeteredMinimumPrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration) } ) @@ -13231,12 +11223,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -13249,68 +11236,103 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedWithMeteredMinimumPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::GroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::GroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::GroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::GroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Models::Price::GroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::GroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::GroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -13323,55 +11345,84 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end + + DAY = + T.let( + :day, + Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -13386,21 +11437,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -13417,21 +11458,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -13444,31 +11475,32 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedWithMeteredMinimumPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::GroupedWithMeteredMinimumPrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = + T.let(:usage_price, Orb::Models::Price::GroupedWithMeteredMinimumPrice::PriceType::TaggedSymbol) + FIXED_PRICE = + T.let(:fixed_price, Orb::Models::Price::GroupedWithMeteredMinimumPrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -13487,77 +11519,52 @@ module Orb class MatrixWithDisplayNamePrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -13571,186 +11578,110 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::MatrixWithDisplayNamePrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::MatrixWithDisplayNamePrice::Item) - .returns(Orb::Models::Price::MatrixWithDisplayNamePrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config=(_) - end + attr_accessor :matrix_with_display_name_config sig { returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::MatrixWithDisplayNamePrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -13758,18 +11689,22 @@ module Orb ), 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, + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::Item, Orb::Util::AnyHash), matrix_with_display_name_config: T::Hash[Symbol, T.anything], - maximum: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum), + maximum: T.nilable(T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::MatrixWithDisplayNamePrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -13809,7 +11744,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation), @@ -13835,7 +11770,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::MatrixWithDisplayNamePrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration) } ) @@ -13845,12 +11780,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -13863,68 +11793,101 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end + + DAY = + T.let( + :day, + Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ONE_TIME = T.let(:one_time, Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence::TaggedSymbol) - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + class << self + sig { override.returns(T::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -13937,55 +11900,80 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) + sig do + returns( + Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { returns(Symbol) } - def duration_unit + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) - end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -14000,21 +11988,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -14031,21 +12009,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -14058,31 +12026,31 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::MatrixWithDisplayNamePrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::MatrixWithDisplayNamePrice::PriceType::TaggedSymbol) } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + USAGE_PRICE = + T.let(:usage_price, Orb::Models::Price::MatrixWithDisplayNamePrice::PriceType::TaggedSymbol) + FIXED_PRICE = + T.let(:fixed_price, Orb::Models::Price::MatrixWithDisplayNamePrice::PriceType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -14101,85 +12069,55 @@ module Orb class BulkWithProrationPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::BulkWithProrationPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::BulkWithProrationPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) + params( + billing_cycle_configuration: T.any(Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration sig { returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config=(_) - end - - sig { returns(Symbol) } - def cadence - end + attr_accessor :bulk_with_proration_config - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::BulkWithProrationPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::BulkWithProrationPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::BulkWithProrationPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -14193,179 +12131,104 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::BulkWithProrationPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::BulkWithProrationPrice::Item) - .returns(Orb::Models::Price::BulkWithProrationPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::BulkWithProrationPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::BulkWithProrationPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::Maximum)) - end - def maximum=(_) + params(maximum: T.nilable(T.any(Orb::Models::Price::BulkWithProrationPrice::Maximum, Orb::Util::AnyHash))) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::BulkWithProrationPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::Minimum)) - end - def minimum=(_) + params(minimum: T.nilable(T.any(Orb::Models::Price::BulkWithProrationPrice::Minimum, Orb::Util::AnyHash))) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end + attr_accessor :plan_phase_order - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end - - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::BulkWithProrationPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::BulkWithProrationPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration, + billable_metric: T.nilable(T.any(Orb::Models::Price::BulkWithProrationPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration, Orb::Util::AnyHash), bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::Price::BulkWithProrationPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::BulkWithProrationPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::BulkWithProrationPrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -14373,17 +12236,21 @@ module Orb ), 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), + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::BulkWithProrationPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::BulkWithProrationPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::BulkWithProrationPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::BulkWithProrationPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::BulkWithProrationPrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -14424,7 +12291,7 @@ module Orb 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, + cadence: Orb::Models::Price::BulkWithProrationPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::BulkWithProrationPrice::CreditAllocation), @@ -14449,7 +12316,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::BulkWithProrationPrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration) } ) @@ -14459,12 +12326,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -14477,68 +12339,97 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit - end + sig { returns(Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end + + DAY = + T.let( + :day, + Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::BulkWithProrationPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::BulkWithProrationPrice::Cadence::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ONE_TIME = T.let(:one_time, Orb::Models::Price::BulkWithProrationPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::BulkWithProrationPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::BulkWithProrationPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::BulkWithProrationPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::BulkWithProrationPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::BulkWithProrationPrice::Cadence::TaggedSymbol) - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + class << self + sig { override.returns(T::Array[Orb::Models::Price::BulkWithProrationPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -14551,55 +12442,80 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -14614,21 +12530,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -14645,21 +12551,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -14672,31 +12568,29 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::BulkWithProrationPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::BulkWithProrationPrice::PriceType::TaggedSymbol) } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::BulkWithProrationPrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::BulkWithProrationPrice::PriceType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::BulkWithProrationPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -14715,77 +12609,52 @@ module Orb class GroupedTieredPackagePrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::GroupedTieredPackagePrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::GroupedTieredPackagePrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -14799,186 +12668,110 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config=(_) - end + attr_accessor :grouped_tiered_package_config sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::GroupedTieredPackagePrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::GroupedTieredPackagePrice::Item) - .returns(Orb::Models::Price::GroupedTieredPackagePrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::GroupedTieredPackagePrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::Price::GroupedTieredPackagePrice::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::Price::GroupedTieredPackagePrice::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::GroupedTieredPackagePrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::GroupedTieredPackagePrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::GroupedTieredPackagePrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -14987,17 +12780,21 @@ module Orb 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), + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::GroupedTieredPackagePrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::GroupedTieredPackagePrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::GroupedTieredPackagePrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::GroupedTieredPackagePrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -15037,7 +12834,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::GroupedTieredPackagePrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::CreditAllocation), @@ -15063,7 +12860,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::GroupedTieredPackagePrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration) } ) @@ -15073,12 +12870,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -15091,68 +12883,101 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end + + DAY = + T.let( + :day, + Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedTieredPackagePrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::GroupedTieredPackagePrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::GroupedTieredPackagePrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::GroupedTieredPackagePrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::GroupedTieredPackagePrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::GroupedTieredPackagePrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::GroupedTieredPackagePrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::GroupedTieredPackagePrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::GroupedTieredPackagePrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -15165,55 +12990,80 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - DAY = :day - MONTH = :month + DAY = + T.let( + :day, + Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -15228,21 +13078,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -15259,21 +13099,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -15286,31 +13116,29 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::GroupedTieredPackagePrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::GroupedTieredPackagePrice::PriceType::TaggedSymbol) } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + USAGE_PRICE = T.let(:usage_price, Orb::Models::Price::GroupedTieredPackagePrice::PriceType::TaggedSymbol) + FIXED_PRICE = T.let(:fixed_price, Orb::Models::Price::GroupedTieredPackagePrice::PriceType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::GroupedTieredPackagePrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -15329,77 +13157,52 @@ module Orb class MaxGroupTieredPackagePrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::MaxGroupTieredPackagePrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -15413,186 +13216,110 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::MaxGroupTieredPackagePrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::MaxGroupTieredPackagePrice::Item) - .returns(Orb::Models::Price::MaxGroupTieredPackagePrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config=(_) - end + attr_accessor :max_group_tiered_package_config sig { returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::MaxGroupTieredPackagePrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::MaxGroupTieredPackagePrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation, Orb::Util::AnyHash)), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -15600,18 +13327,22 @@ module Orb ), 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, + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::Item, Orb::Util::AnyHash), max_group_tiered_package_config: T::Hash[Symbol, T.anything], - maximum: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum), + maximum: T.nilable(T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::MaxGroupTieredPackagePrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -15651,7 +13382,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::MaxGroupTieredPackagePrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation), @@ -15677,7 +13408,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::MaxGroupTieredPackagePrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration) } ) @@ -15687,12 +13418,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -15705,68 +13431,101 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end + + DAY = + T.let( + :day, + Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::MaxGroupTieredPackagePrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::MaxGroupTieredPackagePrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::MaxGroupTieredPackagePrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::MaxGroupTieredPackagePrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::MaxGroupTieredPackagePrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::MaxGroupTieredPackagePrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::MaxGroupTieredPackagePrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::MaxGroupTieredPackagePrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -15779,55 +13538,80 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - DAY = :day - MONTH = :month + DAY = + T.let( + :day, + Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -15842,21 +13626,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -15873,21 +13647,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -15900,31 +13664,31 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::MaxGroupTieredPackagePrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::MaxGroupTieredPackagePrice::PriceType::TaggedSymbol) } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + USAGE_PRICE = + T.let(:usage_price, Orb::Models::Price::MaxGroupTieredPackagePrice::PriceType::TaggedSymbol) + FIXED_PRICE = + T.let(:fixed_price, Orb::Models::Price::MaxGroupTieredPackagePrice::PriceType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -15943,77 +13707,59 @@ module Orb class ScalableMatrixWithUnitPricingPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable( + T.any(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any( + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable( + T.any(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -16027,188 +13773,123 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Item) - .returns(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end - - sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :name - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(T.nilable(Integer)) } + attr_accessor :plan_phase_order - sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config - end + sig { returns(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config=(_) - end + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :scalable_matrix_with_unit_pricing_config sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do params( - _: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration) + dimensional_price_configuration: T.nilable( + T.any( + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration, + Orb::Util::AnyHash + ) + ) ) - .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable( + T.any(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric, Orb::Util::AnyHash) + ), + billing_cycle_configuration: T.any( + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ), + cadence: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation), + credit_allocation: T.nilable( + T.any(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation, Orb::Util::AnyHash) + ), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -16216,18 +13897,28 @@ module Orb ), 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), + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ), + item: T.any(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::PriceType::OrSymbol, scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration), + dimensional_price_configuration: T.nilable( + T.any( + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration, + Orb::Util::AnyHash + ) + ), model_type: Symbol ) .returns(T.attached_class) @@ -16267,7 +13958,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation), @@ -16292,7 +13983,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::PriceType::TaggedSymbol, scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration) } @@ -16303,12 +13994,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -16321,68 +14007,109 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end + attr_accessor :duration - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end - - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end + + DAY = + T.let( + :day, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ONE_TIME = + T.let(:one_time, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol) - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + class << self + sig { override.returns(T::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -16395,55 +14122,84 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -16458,21 +14214,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -16489,21 +14235,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -16516,31 +14252,34 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::PriceType::TaggedSymbol) } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + USAGE_PRICE = + T.let(:usage_price, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::PriceType::TaggedSymbol) + FIXED_PRICE = + T.let(:fixed_price, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::PriceType::TaggedSymbol) + + class << self + sig do + override.returns(T::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::PriceType::TaggedSymbol]) + end + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -16559,77 +14298,59 @@ module Orb class ScalableMatrixWithTieredPricingPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable( + T.any(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any( + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable( + T.any(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :credit_allocation sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -16643,196 +14364,130 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration) + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ) ) - .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Item) } - def item - end + attr_reader :item sig do - params(_: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Item) - .returns(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Item) - end - def item=(_) + params(item: T.any(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Item, Orb::Util::AnyHash)) + .void end + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_tiered_pricing_config sig do returns( T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration) ) end - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do params( - _: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration) - ) - .returns( - T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration) + dimensional_price_configuration: T.nilable( + T.any( + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration, + Orb::Util::AnyHash + ) ) + ) + .void end - def dimensional_price_configuration=(_) - end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable( + T.any(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric, Orb::Util::AnyHash) + ), + billing_cycle_configuration: T.any( + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ), + cadence: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation), + credit_allocation: T.nilable( + T.any(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation, Orb::Util::AnyHash) + ), currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -16840,18 +14495,28 @@ module Orb ), 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), + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) + ), + item: T.any(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::PriceType::OrSymbol, scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], - dimensional_price_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration), + dimensional_price_configuration: T.nilable( + T.any( + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration, + Orb::Util::AnyHash + ) + ), model_type: Symbol ) .returns(T.attached_class) @@ -16891,7 +14556,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation), @@ -16916,7 +14581,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::PriceType::TaggedSymbol, scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration) } @@ -16927,12 +14592,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -16945,68 +14605,112 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom - end + ONE_TIME = + T.let(:one_time, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol) + MONTHLY = + T.let(:monthly, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let(:semi_annual, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol) - class CreditAllocation < Orb::BaseModel - sig { returns(T::Boolean) } - def allows_rollover + class << self + sig do + override.returns(T::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol]) + end + def values + end end + end - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + class CreditAllocation < Orb::BaseModel + sig { returns(T::Boolean) } + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -17019,55 +14723,84 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -17082,21 +14815,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -17113,21 +14836,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -17140,31 +14853,35 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = + T.let(:usage_price, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::PriceType::TaggedSymbol) + FIXED_PRICE = + T.let(:fixed_price, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig do + override + .returns(T::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::PriceType::TaggedSymbol]) + end + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -17183,85 +14900,55 @@ module Orb class CumulativeGroupedBulkPrice < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::BillableMetric)) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::BillableMetric)) - .returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::BillableMetric)) - end - def billable_metric=(_) + params( + billable_metric: T.nilable(T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::BillableMetric, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration) - .returns(Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration) - end - def billing_cycle_configuration=(_) - end - - sig { returns(Symbol) } - def cadence + params( + billing_cycle_configuration: T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_configuration - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::Price::CumulativeGroupedBulkPrice::Cadence::TaggedSymbol) } + attr_accessor :cadence sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::CreditAllocation)) } - def credit_allocation - end + attr_reader :credit_allocation sig do - params(_: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::CreditAllocation)) - .returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::CreditAllocation)) - end - def credit_allocation=(_) + params( + credit_allocation: T.nilable(T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::CreditAllocation, Orb::Util::AnyHash)) + ) + .void end + attr_writer :credit_allocation sig { returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config=(_) - end + attr_accessor :cumulative_grouped_bulk_config sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig do returns( @@ -17275,179 +14962,108 @@ module Orb ) ) end - def discount - end - - sig do - params( - _: T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - .returns( - T.nilable( - T.any( - Orb::Models::PercentageDiscount, - Orb::Models::TrialDiscount, - Orb::Models::UsageDiscount, - Orb::Models::AmountDiscount - ) - ) - ) - end - def discount=(_) - end + attr_accessor :discount sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity sig { returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :invoicing_cycle_configuration sig { returns(Orb::Models::Price::CumulativeGroupedBulkPrice::Item) } - def item - end + attr_reader :item - sig do - params(_: Orb::Models::Price::CumulativeGroupedBulkPrice::Item) - .returns(Orb::Models::Price::CumulativeGroupedBulkPrice::Item) - end - def item=(_) - end + sig { params(item: T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::Item, Orb::Util::AnyHash)).void } + attr_writer :item sig { returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Maximum)) } - def maximum - end + attr_reader :maximum sig do - params(_: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Maximum)) - .returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Maximum)) - end - def maximum=(_) + params( + maximum: T.nilable(T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::Maximum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :maximum sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata sig { returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Minimum)) } - def minimum - end + attr_reader :minimum sig do - params(_: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Minimum)) - .returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Minimum)) - end - def minimum=(_) + params( + minimum: T.nilable(T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::Minimum, Orb::Util::AnyHash)) + ) + .void end + attr_writer :minimum sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end - - sig { returns(Symbol) } - def price_type - end + attr_accessor :plan_phase_order - sig { params(_: Symbol).returns(Symbol) } - def price_type=(_) - end + sig { returns(Orb::Models::Price::CumulativeGroupedBulkPrice::PriceType::TaggedSymbol) } + attr_accessor :price_type sig { returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration)) } - def dimensional_price_configuration - end + attr_reader :dimensional_price_configuration sig do - params(_: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration)) - .returns(T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration)) - end - def dimensional_price_configuration=(_) + params( + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :dimensional_price_configuration sig do params( id: String, - billable_metric: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::BillableMetric), - billing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration, - cadence: Symbol, + billable_metric: T.nilable(T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::BillableMetric, Orb::Util::AnyHash)), + billing_cycle_configuration: T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration, Orb::Util::AnyHash), + cadence: Orb::Models::Price::CumulativeGroupedBulkPrice::Cadence::OrSymbol, conversion_rate: T.nilable(Float), created_at: Time, - credit_allocation: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::CreditAllocation), + credit_allocation: T.nilable(T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::CreditAllocation, Orb::Util::AnyHash)), cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], currency: String, discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -17455,17 +15071,21 @@ module Orb ), 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), + invoicing_cycle_configuration: T.nilable( + T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration, Orb::Util::AnyHash) + ), + item: T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::Item, Orb::Util::AnyHash), + maximum: T.nilable(T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::Maximum, Orb::Util::AnyHash)), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::Minimum), + minimum: T.nilable(T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::Minimum, Orb::Util::AnyHash)), minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, - dimensional_price_configuration: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration), + price_type: Orb::Models::Price::CumulativeGroupedBulkPrice::PriceType::OrSymbol, + dimensional_price_configuration: T.nilable( + T.any(Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration, Orb::Util::AnyHash) + ), model_type: Symbol ) .returns(T.attached_class) @@ -17505,7 +15125,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::BillableMetric), billing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration, - cadence: Symbol, + cadence: Orb::Models::Price::CumulativeGroupedBulkPrice::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), created_at: Time, credit_allocation: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::CreditAllocation), @@ -17531,7 +15151,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Symbol, + price_type: Orb::Models::Price::CumulativeGroupedBulkPrice::PriceType::TaggedSymbol, dimensional_price_configuration: T.nilable(Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration) } ) @@ -17541,12 +15161,7 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { params(id: String).returns(T.attached_class) } def self.new(id:) @@ -17559,68 +15174,101 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::CumulativeGroupedBulkPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::CumulativeGroupedBulkPrice::Cadence::TaggedSymbol) } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = T.let(:one_time, Orb::Models::Price::CumulativeGroupedBulkPrice::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::Price::CumulativeGroupedBulkPrice::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::Price::CumulativeGroupedBulkPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::Price::CumulativeGroupedBulkPrice::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Models::Price::CumulativeGroupedBulkPrice::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::Price::CumulativeGroupedBulkPrice::Cadence::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::Cadence::TaggedSymbol]) } + def values + end + end end class CreditAllocation < Orb::BaseModel sig { returns(T::Boolean) } - def allows_rollover - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def allows_rollover=(_) - end + attr_accessor :allows_rollover sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { params(allows_rollover: T::Boolean, currency: String).returns(T.attached_class) } def self.new(allows_rollover:, currency:) @@ -17633,55 +15281,80 @@ module Orb class InvoicingCycleConfiguration < Orb::BaseModel sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + params( + duration: Integer, + duration_unit: Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + } + ) + end def to_hash end - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol] + ) + end + def values + end + end end end class Item < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -17696,21 +15369,11 @@ module Orb # List of price_ids that this maximum amount applies to. For plan/plan phase # maximums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Maximum amount applied sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount sig do params(applies_to_price_ids: T::Array[String], maximum_amount: String).returns(T.attached_class) @@ -17727,21 +15390,11 @@ module Orb # List of price_ids that this minimum amount applies to. For plan/plan phase # minimums, this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # Minimum amount applied sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount sig do params(applies_to_price_ids: T::Array[String], minimum_amount: String).returns(T.attached_class) @@ -17754,31 +15407,31 @@ module Orb end end - class PriceType < Orb::Enum - abstract! + module PriceType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Price::CumulativeGroupedBulkPrice::PriceType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::Price::CumulativeGroupedBulkPrice::PriceType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE_PRICE = + T.let(:usage_price, Orb::Models::Price::CumulativeGroupedBulkPrice::PriceType::TaggedSymbol) + FIXED_PRICE = + T.let(:fixed_price, Orb::Models::Price::CumulativeGroupedBulkPrice::PriceType::TaggedSymbol) - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + class << self + sig { override.returns(T::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::PriceType::TaggedSymbol]) } + def values + end + end end class DimensionalPriceConfiguration < Orb::BaseModel sig { returns(T::Array[String]) } - def dimension_values - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def dimension_values=(_) - end + attr_accessor :dimension_values sig { returns(String) } - def dimensional_price_group_id - end - - sig { params(_: String).returns(String) } - def dimensional_price_group_id=(_) - end + attr_accessor :dimensional_price_group_id sig do params( @@ -17794,6 +15447,17 @@ module Orb end end end + + class << self + sig do + override + .returns( + [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 variants + end + end end end end diff --git a/rbi/lib/orb/models/price_create_params.rbi b/rbi/lib/orb/models/price_create_params.rbi index adec5292..48962849 100644 --- a/rbi/lib/orb/models/price_create_params.rbi +++ b/rbi/lib/orb/models/price_create_params.rbi @@ -7,404 +7,215 @@ module Orb include Orb::RequestParameters # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::PriceCreateParams::Cadence::OrSymbol) } + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id - sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + sig { returns(Orb::Models::PriceCreateParams::ModelType::OrSymbol) } + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Orb::Models::PriceCreateParams::UnitConfig) } - def unit_config - end + attr_reader :unit_config - sig { params(_: Orb::Models::PriceCreateParams::UnitConfig).returns(Orb::Models::PriceCreateParams::UnitConfig) } - def unit_config=(_) - end + sig { params(unit_config: T.any(Orb::Models::PriceCreateParams::UnitConfig, Orb::Util::AnyHash)).void } + attr_writer :unit_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. sig { returns(T.nilable(Orb::Models::PriceCreateParams::BillingCycleConfiguration)) } - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::PriceCreateParams::BillingCycleConfiguration)) - .returns(T.nilable(Orb::Models::PriceCreateParams::BillingCycleConfiguration)) - end - def billing_cycle_configuration=(_) + params( + billing_cycle_configuration: T.nilable(T.any(Orb::Models::PriceCreateParams::BillingCycleConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. sig { returns(T.nilable(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration)) } - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do - params(_: T.nilable(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration)) - .returns(T.nilable(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration)) - end - def invoicing_cycle_configuration=(_) + params( + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration, Orb::Util::AnyHash)) + ) + .void end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig { returns(Orb::Models::PriceCreateParams::PackageConfig) } - def package_config - end + attr_reader :package_config - sig do - params(_: Orb::Models::PriceCreateParams::PackageConfig) - .returns(Orb::Models::PriceCreateParams::PackageConfig) - end - def package_config=(_) - end + sig { params(package_config: T.any(Orb::Models::PriceCreateParams::PackageConfig, Orb::Util::AnyHash)).void } + attr_writer :package_config sig { returns(Orb::Models::PriceCreateParams::MatrixConfig) } - def matrix_config - end + attr_reader :matrix_config - sig do - params(_: Orb::Models::PriceCreateParams::MatrixConfig) - .returns(Orb::Models::PriceCreateParams::MatrixConfig) - end - def matrix_config=(_) - end + sig { params(matrix_config: T.any(Orb::Models::PriceCreateParams::MatrixConfig, Orb::Util::AnyHash)).void } + attr_writer :matrix_config sig { returns(Orb::Models::PriceCreateParams::MatrixWithAllocationConfig) } - def matrix_with_allocation_config - end + attr_reader :matrix_with_allocation_config sig do - params(_: Orb::Models::PriceCreateParams::MatrixWithAllocationConfig) - .returns(Orb::Models::PriceCreateParams::MatrixWithAllocationConfig) - end - def matrix_with_allocation_config=(_) + params( + matrix_with_allocation_config: T.any(Orb::Models::PriceCreateParams::MatrixWithAllocationConfig, Orb::Util::AnyHash) + ) + .void end + attr_writer :matrix_with_allocation_config sig { returns(Orb::Models::PriceCreateParams::TieredConfig) } - def tiered_config - end + attr_reader :tiered_config - sig do - params(_: Orb::Models::PriceCreateParams::TieredConfig) - .returns(Orb::Models::PriceCreateParams::TieredConfig) - end - def tiered_config=(_) - end + sig { params(tiered_config: T.any(Orb::Models::PriceCreateParams::TieredConfig, Orb::Util::AnyHash)).void } + attr_writer :tiered_config sig { returns(Orb::Models::PriceCreateParams::TieredBpsConfig) } - def tiered_bps_config - end + attr_reader :tiered_bps_config - sig do - params(_: Orb::Models::PriceCreateParams::TieredBpsConfig) - .returns(Orb::Models::PriceCreateParams::TieredBpsConfig) - end - def tiered_bps_config=(_) - end + sig { params(tiered_bps_config: T.any(Orb::Models::PriceCreateParams::TieredBpsConfig, Orb::Util::AnyHash)).void } + attr_writer :tiered_bps_config sig { returns(Orb::Models::PriceCreateParams::BpsConfig) } - def bps_config - end + attr_reader :bps_config - sig { params(_: Orb::Models::PriceCreateParams::BpsConfig).returns(Orb::Models::PriceCreateParams::BpsConfig) } - def bps_config=(_) - end + sig { params(bps_config: T.any(Orb::Models::PriceCreateParams::BpsConfig, Orb::Util::AnyHash)).void } + attr_writer :bps_config sig { returns(Orb::Models::PriceCreateParams::BulkBpsConfig) } - def bulk_bps_config - end + attr_reader :bulk_bps_config - sig do - params(_: Orb::Models::PriceCreateParams::BulkBpsConfig) - .returns(Orb::Models::PriceCreateParams::BulkBpsConfig) - end - def bulk_bps_config=(_) - end + sig { params(bulk_bps_config: T.any(Orb::Models::PriceCreateParams::BulkBpsConfig, Orb::Util::AnyHash)).void } + attr_writer :bulk_bps_config sig { returns(Orb::Models::PriceCreateParams::BulkConfig) } - def bulk_config - end + attr_reader :bulk_config - sig { params(_: Orb::Models::PriceCreateParams::BulkConfig).returns(Orb::Models::PriceCreateParams::BulkConfig) } - def bulk_config=(_) - end + sig { params(bulk_config: T.any(Orb::Models::PriceCreateParams::BulkConfig, Orb::Util::AnyHash)).void } + attr_writer :bulk_config sig { returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config=(_) - end + attr_accessor :threshold_total_amount_config sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config=(_) - end + attr_accessor :tiered_package_config sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_config=(_) - end + attr_accessor :grouped_tiered_config sig { returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config=(_) - end + attr_accessor :max_group_tiered_package_config sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config=(_) - end + attr_accessor :tiered_with_minimum_config sig { returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config=(_) - end + attr_accessor :package_with_allocation_config sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_package_with_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_package_with_minimum_config=(_) - end + attr_accessor :tiered_package_with_minimum_config sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config=(_) - end + attr_accessor :unit_with_percent_config sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config=(_) - end + attr_accessor :tiered_with_proration_config sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config=(_) - end + attr_accessor :unit_with_proration_config sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config=(_) - end + attr_accessor :grouped_allocation_config sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config=(_) - end + attr_accessor :grouped_with_prorated_minimum_config sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config=(_) - end + attr_accessor :grouped_with_metered_minimum_config sig { returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config=(_) - end + attr_accessor :matrix_with_display_name_config sig { returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config=(_) - end + attr_accessor :bulk_with_proration_config sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config=(_) - end + attr_accessor :grouped_tiered_package_config sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_unit_pricing_config sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_tiered_pricing_config sig { returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config=(_) - end + attr_accessor :cumulative_grouped_bulk_config sig do params( - cadence: Symbol, + cadence: Orb::Models::PriceCreateParams::Cadence::OrSymbol, currency: String, item_id: String, - model_type: Symbol, + model_type: Orb::Models::PriceCreateParams::ModelType::OrSymbol, name: String, - unit_config: Orb::Models::PriceCreateParams::UnitConfig, - 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, + unit_config: T.any(Orb::Models::PriceCreateParams::UnitConfig, Orb::Util::AnyHash), + package_config: T.any(Orb::Models::PriceCreateParams::PackageConfig, Orb::Util::AnyHash), + matrix_config: T.any(Orb::Models::PriceCreateParams::MatrixConfig, Orb::Util::AnyHash), + matrix_with_allocation_config: T.any(Orb::Models::PriceCreateParams::MatrixWithAllocationConfig, Orb::Util::AnyHash), + tiered_config: T.any(Orb::Models::PriceCreateParams::TieredConfig, Orb::Util::AnyHash), + tiered_bps_config: T.any(Orb::Models::PriceCreateParams::TieredBpsConfig, Orb::Util::AnyHash), + bps_config: T.any(Orb::Models::PriceCreateParams::BpsConfig, Orb::Util::AnyHash), + bulk_bps_config: T.any(Orb::Models::PriceCreateParams::BulkBpsConfig, Orb::Util::AnyHash), + bulk_config: T.any(Orb::Models::PriceCreateParams::BulkConfig, Orb::Util::AnyHash), 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], @@ -426,14 +237,14 @@ module Orb cumulative_grouped_bulk_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::PriceCreateParams::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable(T.any(Orb::Models::PriceCreateParams::BillingCycleConfiguration, Orb::Util::AnyHash)), 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), + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration, Orb::Util::AnyHash)), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -488,10 +299,10 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::PriceCreateParams::Cadence::OrSymbol, currency: String, item_id: String, - model_type: Symbol, + model_type: Orb::Models::PriceCreateParams::ModelType::OrSymbol, name: String, unit_config: Orb::Models::PriceCreateParams::UnitConfig, billable_metric_id: T.nilable(String), @@ -538,36 +349,46 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::PriceCreateParams::Cadence) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::PriceCreateParams::Cadence::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = T.let(:annual, Orb::Models::PriceCreateParams::Cadence::TaggedSymbol) + SEMI_ANNUAL = T.let(:semi_annual, Orb::Models::PriceCreateParams::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Models::PriceCreateParams::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Models::PriceCreateParams::Cadence::TaggedSymbol) + ONE_TIME = T.let(:one_time, Orb::Models::PriceCreateParams::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Models::PriceCreateParams::Cadence::TaggedSymbol) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig { override.returns(T::Array[Orb::Models::PriceCreateParams::Cadence::TaggedSymbol]) } + def values + end + end end - class ModelType < Orb::Enum - abstract! + module ModelType + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::PriceCreateParams::ModelType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::PriceCreateParams::ModelType::TaggedSymbol) } - CUMULATIVE_GROUPED_BULK = :cumulative_grouped_bulk + CUMULATIVE_GROUPED_BULK = + T.let(:cumulative_grouped_bulk, Orb::Models::PriceCreateParams::ModelType::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::PriceCreateParams::ModelType::TaggedSymbol]) } + def values + end + end end class UnitConfig < Orb::BaseModel # Rate per unit of usage sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig { params(unit_amount: String).returns(T.attached_class) } def self.new(unit_amount:) @@ -581,102 +402,127 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) - end + sig { returns(Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit::OrSymbol) } + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit::TaggedSymbol) } - DAY = :day - MONTH = :month + DAY = T.let(:day, Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::PriceCreateParams::BillingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) - end + sig { returns(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::OrSymbol) } + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let(:day, Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) + MONTH = + T.let(:month, Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns(T::Array[Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol]) + end + def values + end + end end end class PackageConfig < Orb::BaseModel # A currency amount to rate usage by sig { returns(String) } - def package_amount - end - - sig { params(_: String).returns(String) } - def package_amount=(_) - end + attr_accessor :package_amount # An integer amount to represent package size. For example, 1000 here would divide # usage by 1000 before multiplying by package_amount in rating sig { returns(Integer) } - def package_size - end - - sig { params(_: Integer).returns(Integer) } - def package_size=(_) - end + attr_accessor :package_size sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } def self.new(package_amount:, package_size:) @@ -690,39 +536,21 @@ module Orb class MatrixConfig < Orb::BaseModel # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } - def default_unit_amount - end - - sig { params(_: String).returns(String) } - def default_unit_amount=(_) - end + attr_accessor :default_unit_amount # One or two event property values to evaluate matrix groups by sig { returns(T::Array[T.nilable(String)]) } - def dimensions - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimensions=(_) - end + attr_accessor :dimensions # Matrix values for specified matrix grouping keys sig { returns(T::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue]) } - def matrix_values - end - - sig do - params(_: T::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue]) - .returns(T::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue]) - end - def matrix_values=(_) - end + attr_accessor :matrix_values sig do params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] + matrix_values: T::Array[T.any(Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue, Orb::Util::AnyHash)] ) .returns(T.attached_class) end @@ -747,21 +575,11 @@ module Orb # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values # Unit price for the specified dimension_values sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -781,49 +599,26 @@ module Orb class MatrixWithAllocationConfig < Orb::BaseModel # Allocation to be used to calculate the price sig { returns(Float) } - def allocation - end - - sig { params(_: Float).returns(Float) } - def allocation=(_) - end + attr_accessor :allocation # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } - def default_unit_amount - end - - sig { params(_: String).returns(String) } - def default_unit_amount=(_) - end + attr_accessor :default_unit_amount # One or two event property values to evaluate matrix groups by sig { returns(T::Array[T.nilable(String)]) } - def dimensions - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimensions=(_) - end + attr_accessor :dimensions # Matrix values for specified matrix grouping keys sig { returns(T::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue]) } - def matrix_values - end - - sig do - params(_: T::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue]) - .returns(T::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue]) - end - def matrix_values=(_) - end + attr_accessor :matrix_values sig do params( allocation: Float, default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] + matrix_values: T::Array[T.any(Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue, Orb::Util::AnyHash)] ) .returns(T.attached_class) end @@ -849,21 +644,11 @@ module Orb # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values # Unit price for the specified dimension_values sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -883,17 +668,12 @@ module Orb class TieredConfig < Orb::BaseModel # Tiers for rating based on total usage quantities into the specified tier sig { returns(T::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier]) } - def tiers - end + attr_accessor :tiers sig do - params(_: T::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier]) - .returns(T::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier]) - end - def tiers=(_) + params(tiers: T::Array[T.any(Orb::Models::PriceCreateParams::TieredConfig::Tier, Orb::Util::AnyHash)]) + .returns(T.attached_class) end - - sig { params(tiers: T::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier]).returns(T.attached_class) } def self.new(tiers:) end @@ -904,30 +684,15 @@ module Orb class Tier < Orb::BaseModel # Inclusive tier starting value sig { returns(Float) } - def first_unit - end - - sig { params(_: Float).returns(Float) } - def first_unit=(_) - end + attr_accessor :first_unit # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Exclusive tier ending value. If null, this is treated as the last tier sig { returns(T.nilable(Float)) } - def last_unit - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def last_unit=(_) - end + attr_accessor :last_unit sig do params( @@ -949,17 +714,12 @@ module Orb # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified # tiers sig { returns(T::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier]) } - def tiers - end + attr_accessor :tiers sig do - params(_: T::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier]) - .returns(T::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier]) - end - def tiers=(_) + params(tiers: T::Array[T.any(Orb::Models::PriceCreateParams::TieredBpsConfig::Tier, Orb::Util::AnyHash)]) + .returns(T.attached_class) end - - sig { params(tiers: T::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier]).returns(T.attached_class) } def self.new(tiers:) end @@ -970,39 +730,19 @@ module Orb class Tier < Orb::BaseModel # Per-event basis point rate sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Inclusive tier starting value sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # Exclusive tier ending value sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # Per unit maximum to charge sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params( @@ -1035,21 +775,11 @@ module Orb class BpsConfig < Orb::BaseModel # Basis point take rate per event sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Optional currency amount maximum to cap spend per event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } def self.new(bps:, per_unit_maximum: nil) @@ -1064,17 +794,12 @@ module Orb # Tiers for a bulk BPS pricing model where all usage is aggregated to a single # tier based on total volume sig { returns(T::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier]) } - def tiers - end + attr_accessor :tiers sig do - params(_: T::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier]) - .returns(T::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier]) - end - def tiers=(_) + params(tiers: T::Array[T.any(Orb::Models::PriceCreateParams::BulkBpsConfig::Tier, Orb::Util::AnyHash)]) + .returns(T.attached_class) end - - sig { params(tiers: T::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier]).returns(T.attached_class) } def self.new(tiers:) end @@ -1085,30 +810,15 @@ module Orb class Tier < Orb::BaseModel # Basis points to rate on sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Upper bound for tier sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The maximum amount to charge for any one event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) @@ -1134,17 +844,12 @@ module Orb class BulkConfig < Orb::BaseModel # Bulk tiers for rating based on total usage volume sig { returns(T::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier]) } - def tiers - end + attr_accessor :tiers sig do - params(_: T::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier]) - .returns(T::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier]) - end - def tiers=(_) + params(tiers: T::Array[T.any(Orb::Models::PriceCreateParams::BulkConfig::Tier, Orb::Util::AnyHash)]) + .returns(T.attached_class) end - - sig { params(tiers: T::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier]).returns(T.attached_class) } def self.new(tiers:) end @@ -1155,21 +860,11 @@ module Orb class Tier < Orb::BaseModel # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Upper bound for this tier sig { returns(T.nilable(Float)) } - def maximum_units - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def maximum_units=(_) - end + attr_accessor :maximum_units sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } def self.new(unit_amount:, maximum_units: nil) diff --git a/rbi/lib/orb/models/price_evaluate_params.rbi b/rbi/lib/orb/models/price_evaluate_params.rbi index 15ca6b94..7149dca5 100644 --- a/rbi/lib/orb/models/price_evaluate_params.rbi +++ b/rbi/lib/orb/models/price_evaluate_params.rbi @@ -8,61 +8,34 @@ module Orb # The exclusive upper bound for event timestamps sig { returns(Time) } - def timeframe_end - end - - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end # The inclusive lower bound for event timestamps sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # The ID of the customer to which this evaluation is scoped. sig { returns(T.nilable(String)) } - def customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end + attr_accessor :customer_id # The external customer ID of the customer to which this evaluation is scoped. sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id # A boolean # [computed property](/extensibility/advanced-metrics#computed-properties) used to # filter the underlying billable metric sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # Properties (or # [computed properties](/extensibility/advanced-metrics#computed-properties)) used # to group the underlying billable metric sig { returns(T.nilable(T::Array[String])) } - def grouping_keys - end + attr_reader :grouping_keys - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def grouping_keys=(_) - end + sig { params(grouping_keys: T::Array[String]).void } + attr_writer :grouping_keys sig do params( @@ -72,7 +45,7 @@ module Orb external_customer_id: T.nilable(String), filter: T.nilable(String), grouping_keys: T::Array[String], - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/price_evaluate_response.rbi b/rbi/lib/orb/models/price_evaluate_response.rbi index 7395138f..c405ab67 100644 --- a/rbi/lib/orb/models/price_evaluate_response.rbi +++ b/rbi/lib/orb/models/price_evaluate_response.rbi @@ -4,14 +4,12 @@ module Orb module Models class PriceEvaluateResponse < Orb::BaseModel sig { returns(T::Array[Orb::Models::EvaluatePriceGroup]) } - def data - end + attr_accessor :data - sig { params(_: T::Array[Orb::Models::EvaluatePriceGroup]).returns(T::Array[Orb::Models::EvaluatePriceGroup]) } - def data=(_) + sig do + params(data: T::Array[T.any(Orb::Models::EvaluatePriceGroup, Orb::Util::AnyHash)]) + .returns(T.attached_class) end - - sig { params(data: T::Array[Orb::Models::EvaluatePriceGroup]).returns(T.attached_class) } def self.new(data:) end diff --git a/rbi/lib/orb/models/price_fetch_params.rbi b/rbi/lib/orb/models/price_fetch_params.rbi index 8b5925cf..8800f11d 100644 --- a/rbi/lib/orb/models/price_fetch_params.rbi +++ b/rbi/lib/orb/models/price_fetch_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/price_list_params.rbi b/rbi/lib/orb/models/price_list_params.rbi index e15322fb..16f2d9cb 100644 --- a/rbi/lib/orb/models/price_list_params.rbi +++ b/rbi/lib/orb/models/price_list_params.rbi @@ -9,27 +9,20 @@ module Orb # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig do params( cursor: T.nilable(String), limit: Integer, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/price_update_params.rbi b/rbi/lib/orb/models/price_update_params.rbi index f0c1f96e..0edbe52e 100644 --- a/rbi/lib/orb/models/price_update_params.rbi +++ b/rbi/lib/orb/models/price_update_params.rbi @@ -10,20 +10,12 @@ module Orb # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/prices/external_price_id_fetch_params.rbi b/rbi/lib/orb/models/prices/external_price_id_fetch_params.rbi index 9de0afb2..cf4027c9 100644 --- a/rbi/lib/orb/models/prices/external_price_id_fetch_params.rbi +++ b/rbi/lib/orb/models/prices/external_price_id_fetch_params.rbi @@ -8,12 +8,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) 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 5507e3d4..4b9b77cc 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 @@ -11,20 +11,12 @@ module Orb # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/subscription.rbi b/rbi/lib/orb/models/subscription.rbi index 13ad96b3..7887ef61 100644 --- a/rbi/lib/orb/models/subscription.rbi +++ b/rbi/lib/orb/models/subscription.rbi @@ -4,99 +4,56 @@ module Orb module Models class Subscription < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The current plan phase that is active, only if the subscription's plan has # phases. sig { returns(T.nilable(Integer)) } - def active_plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def active_plan_phase_order=(_) - end + attr_accessor :active_plan_phase_order # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. sig { returns(T::Array[Orb::Models::Subscription::AdjustmentInterval]) } - def adjustment_intervals - end - - sig do - params(_: T::Array[Orb::Models::Subscription::AdjustmentInterval]) - .returns(T::Array[Orb::Models::Subscription::AdjustmentInterval]) - end - def adjustment_intervals=(_) - end + attr_accessor :adjustment_intervals # Determines whether issued invoices for this subscription will automatically be # charged with the saved payment method on the due date. This property defaults to # the plan's behavior. If null, defaults to the customer's setting. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(Orb::Models::Subscription::BillingCycleAnchorConfiguration) } - def billing_cycle_anchor_configuration - end + attr_reader :billing_cycle_anchor_configuration sig do - params(_: Orb::Models::Subscription::BillingCycleAnchorConfiguration) - .returns(Orb::Models::Subscription::BillingCycleAnchorConfiguration) - end - def billing_cycle_anchor_configuration=(_) + params( + billing_cycle_anchor_configuration: T.any(Orb::Models::Subscription::BillingCycleAnchorConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_anchor_configuration # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is not part of the billing period. Set to null for # subscriptions that are not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if the subscription is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # A customer is a buyer of your products, and the other party to the billing # relationship. @@ -117,22 +74,15 @@ module Orb # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. sig { returns(Orb::Models::Customer) } - def customer - end + attr_reader :customer - sig { params(_: Orb::Models::Customer).returns(Orb::Models::Customer) } - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo # The discount intervals for this subscription sorted by the start_date. sig do @@ -146,167 +96,75 @@ module Orb ] ) end - def discount_intervals - end - - sig do - params( - _: 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 + attr_accessor :discount_intervals # The date Orb stops billing for this subscription. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(T::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule]) } - def fixed_fee_quantity_schedule - end - - sig do - params(_: T::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule]) - .returns(T::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule]) - end - def fixed_fee_quantity_schedule=(_) - end + attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::Subscription::MaximumInterval]) } - def maximum_intervals - end - - sig do - params(_: T::Array[Orb::Models::Subscription::MaximumInterval]) - .returns(T::Array[Orb::Models::Subscription::MaximumInterval]) - end - def maximum_intervals=(_) - end + attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::Subscription::MinimumInterval]) } - def minimum_intervals - end - - sig do - params(_: T::Array[Orb::Models::Subscription::MinimumInterval]) - .returns(T::Array[Orb::Models::Subscription::MinimumInterval]) - end - def minimum_intervals=(_) - end + attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription # invoices as the date that they are due. A value of `0` here represents that the # invoice is due on issue, whereas a value of `30` represents that the customer # has a month to pay the invoice. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # subscribed to by a customer. Plans define the billing behavior of the # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). sig { returns(Orb::Models::Plan) } - def plan - end + attr_reader :plan - sig { params(_: Orb::Models::Plan).returns(Orb::Models::Plan) } - def plan=(_) - end + sig { params(plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash)).void } + attr_writer :plan # The price intervals for this subscription. sig { returns(T::Array[Orb::Models::Subscription::PriceInterval]) } - def price_intervals - end - - sig do - params(_: T::Array[Orb::Models::Subscription::PriceInterval]) - .returns(T::Array[Orb::Models::Subscription::PriceInterval]) - end - def price_intervals=(_) - end + attr_accessor :price_intervals sig { returns(T.nilable(Orb::Models::Subscription::RedeemedCoupon)) } - def redeemed_coupon - end + attr_reader :redeemed_coupon sig do - params(_: T.nilable(Orb::Models::Subscription::RedeemedCoupon)) - .returns(T.nilable(Orb::Models::Subscription::RedeemedCoupon)) - end - def redeemed_coupon=(_) + params(redeemed_coupon: T.nilable(T.any(Orb::Models::Subscription::RedeemedCoupon, Orb::Util::AnyHash))) + .void end + attr_writer :redeemed_coupon # The date Orb starts billing for this subscription. sig { returns(Time) } - def start_date - end + attr_accessor :start_date - sig { params(_: Time).returns(Time) } - def start_date=(_) - end - - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::Subscription::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Orb::Models::Subscription::TrialInfo) } - def trial_info - end + attr_reader :trial_info - sig { params(_: Orb::Models::Subscription::TrialInfo).returns(Orb::Models::Subscription::TrialInfo) } - def trial_info=(_) - end + sig { params(trial_info: T.any(Orb::Models::Subscription::TrialInfo, Orb::Util::AnyHash)).void } + attr_writer :trial_info # A [subscription](/core-concepts#subscription) represents the purchase of a plan # by a customer. @@ -331,35 +189,36 @@ module Orb params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::Subscription::AdjustmentInterval], + adjustment_intervals: T::Array[T.any(Orb::Models::Subscription::AdjustmentInterval, Orb::Util::AnyHash)], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::Subscription::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: T.any(Orb::Models::Subscription::BillingCycleAnchorConfiguration, Orb::Util::AnyHash), 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, + customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash), default_invoice_memo: T.nilable(String), discount_intervals: T::Array[ T.any( Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, + Orb::Util::AnyHash, 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], + fixed_fee_quantity_schedule: T::Array[T.any(Orb::Models::Subscription::FixedFeeQuantitySchedule, Orb::Util::AnyHash)], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::Subscription::MaximumInterval], + maximum_intervals: T::Array[T.any(Orb::Models::Subscription::MaximumInterval, Orb::Util::AnyHash)], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::Subscription::MinimumInterval], + minimum_intervals: T::Array[T.any(Orb::Models::Subscription::MinimumInterval, Orb::Util::AnyHash)], net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::Subscription::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::Subscription::RedeemedCoupon), + plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash), + price_intervals: T::Array[T.any(Orb::Models::Subscription::PriceInterval, Orb::Util::AnyHash)], + redeemed_coupon: T.nilable(T.any(Orb::Models::Subscription::RedeemedCoupon, Orb::Util::AnyHash)), start_date: Time, - status: Symbol, - trial_info: Orb::Models::Subscription::TrialInfo + status: Orb::Models::Subscription::Status::OrSymbol, + trial_info: T.any(Orb::Models::Subscription::TrialInfo, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -425,7 +284,7 @@ module Orb price_intervals: T::Array[Orb::Models::Subscription::PriceInterval], redeemed_coupon: T.nilable(Orb::Models::Subscription::RedeemedCoupon), start_date: Time, - status: Symbol, + status: Orb::Models::Subscription::Status::TaggedSymbol, trial_info: Orb::Models::Subscription::TrialInfo } ) @@ -435,12 +294,7 @@ module Orb class AdjustmentInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig do returns( @@ -453,64 +307,26 @@ module Orb ) ) end - def adjustment - end - - 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 - ) - ) - .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 + attr_accessor :adjustment # The price interval IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the adjustment interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the adjustment interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( id: String, adjustment: T.any( Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, @@ -546,84 +362,50 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union - Variants = type_template(:out) do - { - fixed: 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 + Variants = + type_template(:out) do + { + fixed: 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 class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -668,67 +450,32 @@ module Orb class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -773,67 +520,32 @@ module Orb class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -878,76 +590,36 @@ module Orb class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -995,67 +667,32 @@ module Orb class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1097,6 +734,17 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [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 variants + end + end end end @@ -1106,33 +754,18 @@ module Orb # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def day - end - - sig { params(_: Integer).returns(Integer) } - def day=(_) - end + attr_accessor :day # The month on which the billing cycle is anchored (e.g. a quarterly price # anchored in February would have cycles starting February, May, August, and # November). sig { returns(T.nilable(Integer)) } - def month - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def month=(_) - end + attr_accessor :month # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). sig { returns(T.nilable(Integer)) } - def year - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def year=(_) - end + attr_accessor :year sig do params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) @@ -1145,72 +778,43 @@ module Orb end end - class DiscountInterval < Orb::Union - abstract! + module DiscountInterval + extend Orb::Union - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, - Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, - Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, + Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, + Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval + ) + } + end class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1253,57 +857,27 @@ module Orb class PercentageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # Only available if discount_type is `percentage`.This is a number between 0 # and 1. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1346,57 +920,27 @@ module Orb class UsageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -1435,40 +979,31 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval] + ) + end + def variants + end + end end class FixedFeeQuantitySchedule < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) @@ -1487,49 +1022,24 @@ module Orb class MaximumInterval < Orb::BaseModel # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the maximum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The maximum amount to charge in a given billing period for the price intervals # this transform applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The start date of the maximum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1563,49 +1073,24 @@ module Orb class MinimumInterval < Orb::BaseModel # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the minimum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The minimum amount to charge in a given billing period for the price intervals # this minimum applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The start date of the minimum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1638,75 +1123,37 @@ module Orb class PriceInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The day of the month that Orb bills for this price sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is exactly the end of the billing period. Set to null if # this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # The end date of the price interval. This is the date that Orb stops billing for # this price. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter to apply to usage queries. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # The fixed fee quantity transitions for this price interval. This is only # relevant for fixed fees. 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])) - end - def fixed_fee_quantity_transitions=(_) - end + attr_accessor :fixed_fee_quantity_transitions # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -1752,97 +1199,17 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .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 + attr_accessor :price # The start date of the price interval. This is the date that Orb starts billing # for this price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids # The Price Interval resource represents a period of time for which a price will # bill on a subscription. A subscription’s price intervals define its billing @@ -1855,9 +1222,12 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition]), + fixed_fee_quantity_transitions: T.nilable( + T::Array[T.any(Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition, Orb::Util::AnyHash)] + ), price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -1956,28 +1326,13 @@ module Orb class FixedFeeQuantityTransition < Orb::BaseModel sig { returns(Time) } - def effective_date - end - - sig { params(_: Time).returns(Time) } - def effective_date=(_) - end + attr_accessor :effective_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Integer) } - def quantity - end - - sig { params(_: Integer).returns(Integer) } - def quantity=(_) - end + attr_accessor :quantity sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } def self.new(effective_date:, price_id:, quantity:) @@ -1991,28 +1346,13 @@ module Orb class RedeemedCoupon < Orb::BaseModel sig { returns(String) } - def coupon_id - end - - sig { params(_: String).returns(String) } - def coupon_id=(_) - end + attr_accessor :coupon_id sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) @@ -2025,24 +1365,26 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::Subscription::Status) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::Subscription::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ACTIVE = T.let(:active, Orb::Models::Subscription::Status::TaggedSymbol) + ENDED = T.let(:ended, Orb::Models::Subscription::Status::TaggedSymbol) + UPCOMING = T.let(:upcoming, Orb::Models::Subscription::Status::TaggedSymbol) - ACTIVE = :active - ENDED = :ended - UPCOMING = :upcoming + class << self + sig { override.returns(T::Array[Orb::Models::Subscription::Status::TaggedSymbol]) } + def values + end + end end class TrialInfo < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } def self.new(end_date:) diff --git a/rbi/lib/orb/models/subscription_cancel_params.rbi b/rbi/lib/orb/models/subscription_cancel_params.rbi index b242fa61..3a5b5fea 100644 --- a/rbi/lib/orb/models/subscription_cancel_params.rbi +++ b/rbi/lib/orb/models/subscription_cancel_params.rbi @@ -7,41 +7,26 @@ module Orb include Orb::RequestParameters # Determines the timing of subscription cancellation - sig { returns(Symbol) } - def cancel_option - end - - sig { params(_: Symbol).returns(Symbol) } - def cancel_option=(_) - end + sig { returns(Orb::Models::SubscriptionCancelParams::CancelOption::OrSymbol) } + attr_accessor :cancel_option # If false, this request will fail if it would void an issued invoice or create a # credit note. Consider using this as a safety mechanism if you do not expect # existing invoices to be changed. sig { returns(T.nilable(T::Boolean)) } - def allow_invoice_credit_or_void - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def allow_invoice_credit_or_void=(_) - end + attr_accessor :allow_invoice_credit_or_void # The date that the cancellation should take effect. This parameter can only be # passed if the `cancel_option` is `requested_date`. sig { returns(T.nilable(Time)) } - def cancellation_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def cancellation_date=(_) - end + attr_accessor :cancellation_date sig do params( - cancel_option: Symbol, + cancel_option: Orb::Models::SubscriptionCancelParams::CancelOption::OrSymbol, 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]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -52,7 +37,7 @@ module Orb override .returns( { - cancel_option: Symbol, + cancel_option: Orb::Models::SubscriptionCancelParams::CancelOption::OrSymbol, allow_invoice_credit_or_void: T.nilable(T::Boolean), cancellation_date: T.nilable(Time), request_options: Orb::RequestOptions @@ -63,14 +48,24 @@ module Orb end # Determines the timing of subscription cancellation - class CancelOption < Orb::Enum - abstract! + module CancelOption + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCancelParams::CancelOption) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionCancelParams::CancelOption::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + END_OF_SUBSCRIPTION_TERM = + T.let(:end_of_subscription_term, Orb::Models::SubscriptionCancelParams::CancelOption::TaggedSymbol) + IMMEDIATE = T.let(:immediate, Orb::Models::SubscriptionCancelParams::CancelOption::TaggedSymbol) + REQUESTED_DATE = + T.let(:requested_date, Orb::Models::SubscriptionCancelParams::CancelOption::TaggedSymbol) - END_OF_SUBSCRIPTION_TERM = :end_of_subscription_term - IMMEDIATE = :immediate - REQUESTED_DATE = :requested_date + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionCancelParams::CancelOption::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/subscription_cancel_response.rbi b/rbi/lib/orb/models/subscription_cancel_response.rbi index 8b0b5915..81482c65 100644 --- a/rbi/lib/orb/models/subscription_cancel_response.rbi +++ b/rbi/lib/orb/models/subscription_cancel_response.rbi @@ -4,99 +4,56 @@ module Orb module Models class SubscriptionCancelResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The current plan phase that is active, only if the subscription's plan has # phases. sig { returns(T.nilable(Integer)) } - def active_plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def active_plan_phase_order=(_) - end + attr_accessor :active_plan_phase_order # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. sig { returns(T::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval]) } - def adjustment_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval]) - .returns(T::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval]) - end - def adjustment_intervals=(_) - end + attr_accessor :adjustment_intervals # Determines whether issued invoices for this subscription will automatically be # charged with the saved payment method on the due date. This property defaults to # the plan's behavior. If null, defaults to the customer's setting. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration) } - def billing_cycle_anchor_configuration - end + attr_reader :billing_cycle_anchor_configuration sig do - params(_: Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration) - .returns(Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration) - end - def billing_cycle_anchor_configuration=(_) + params( + billing_cycle_anchor_configuration: T.any(Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_anchor_configuration # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is not part of the billing period. Set to null for # subscriptions that are not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if the subscription is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # A customer is a buyer of your products, and the other party to the billing # relationship. @@ -117,22 +74,15 @@ module Orb # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. sig { returns(Orb::Models::Customer) } - def customer - end + attr_reader :customer - sig { params(_: Orb::Models::Customer).returns(Orb::Models::Customer) } - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo # The discount intervals for this subscription sorted by the start_date. sig do @@ -146,204 +96,112 @@ module Orb ] ) end - def discount_intervals - end - - sig do - params( - _: 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 + attr_accessor :discount_intervals # The date Orb stops billing for this subscription. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(T::Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule]) } - def fixed_fee_quantity_schedule - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule]) - .returns(T::Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule]) - end - def fixed_fee_quantity_schedule=(_) - end + attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval]) } - def maximum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval]) - .returns(T::Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval]) - end - def maximum_intervals=(_) - end + attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval]) } - def minimum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval]) - .returns(T::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval]) - end - def minimum_intervals=(_) - end + attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription # invoices as the date that they are due. A value of `0` here represents that the # invoice is due on issue, whereas a value of `30` represents that the customer # has a month to pay the invoice. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # subscribed to by a customer. Plans define the billing behavior of the # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). sig { returns(Orb::Models::Plan) } - def plan - end + attr_reader :plan - sig { params(_: Orb::Models::Plan).returns(Orb::Models::Plan) } - def plan=(_) - end + sig { params(plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash)).void } + attr_writer :plan # The price intervals for this subscription. sig { returns(T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval]) } - def price_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval]) - .returns(T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval]) - end - def price_intervals=(_) - end + attr_accessor :price_intervals sig { returns(T.nilable(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon)) } - def redeemed_coupon - end + attr_reader :redeemed_coupon sig do - params(_: T.nilable(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon)) - .returns(T.nilable(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon)) - end - def redeemed_coupon=(_) + params( + redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon, Orb::Util::AnyHash)) + ) + .void end + attr_writer :redeemed_coupon # The date Orb starts billing for this subscription. sig { returns(Time) } - def start_date - end + attr_accessor :start_date - sig { params(_: Time).returns(Time) } - def start_date=(_) - end - - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Orb::Models::SubscriptionCancelResponse::TrialInfo) } - def trial_info - end + attr_reader :trial_info - sig do - params(_: Orb::Models::SubscriptionCancelResponse::TrialInfo) - .returns(Orb::Models::SubscriptionCancelResponse::TrialInfo) - end - def trial_info=(_) - end + sig { params(trial_info: T.any(Orb::Models::SubscriptionCancelResponse::TrialInfo, Orb::Util::AnyHash)).void } + attr_writer :trial_info sig do params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval], + adjustment_intervals: T::Array[T.any(Orb::Models::SubscriptionCancelResponse::AdjustmentInterval, Orb::Util::AnyHash)], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: T.any(Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration, Orb::Util::AnyHash), 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, + customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash), default_invoice_memo: T.nilable(String), discount_intervals: T::Array[ T.any( Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, + Orb::Util::AnyHash, 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], + fixed_fee_quantity_schedule: T::Array[T.any(Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule, Orb::Util::AnyHash)], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval], + maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionCancelResponse::MaximumInterval, Orb::Util::AnyHash)], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval], + minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionCancelResponse::MinimumInterval, Orb::Util::AnyHash)], net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon), + plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash), + price_intervals: T::Array[T.any(Orb::Models::SubscriptionCancelResponse::PriceInterval, Orb::Util::AnyHash)], + redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon, Orb::Util::AnyHash)), start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionCancelResponse::TrialInfo + status: Orb::Models::SubscriptionCancelResponse::Status::OrSymbol, + trial_info: T.any(Orb::Models::SubscriptionCancelResponse::TrialInfo, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -409,7 +267,7 @@ module Orb price_intervals: T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval], redeemed_coupon: T.nilable(Orb::Models::SubscriptionCancelResponse::RedeemedCoupon), start_date: Time, - status: Symbol, + status: Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol, trial_info: Orb::Models::SubscriptionCancelResponse::TrialInfo } ) @@ -419,12 +277,7 @@ module Orb class AdjustmentInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig do returns( @@ -437,64 +290,26 @@ module Orb ) ) end - def adjustment - end - - 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 - ) - ) - .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 + attr_accessor :adjustment # The price interval IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the adjustment interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the adjustment interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( id: String, adjustment: T.any( Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, @@ -530,84 +345,50 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union - Variants = type_template(:out) do - { - fixed: 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 + Variants = + type_template(:out) do + { + fixed: 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 class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -652,67 +433,32 @@ module Orb class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -757,67 +503,32 @@ module Orb class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -862,76 +573,36 @@ module Orb class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -979,67 +650,32 @@ module Orb class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1081,6 +717,17 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [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 variants + end + end end end @@ -1090,33 +737,18 @@ module Orb # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def day - end - - sig { params(_: Integer).returns(Integer) } - def day=(_) - end + attr_accessor :day # The month on which the billing cycle is anchored (e.g. a quarterly price # anchored in February would have cycles starting February, May, August, and # November). sig { returns(T.nilable(Integer)) } - def month - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def month=(_) - end + attr_accessor :month # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). sig { returns(T.nilable(Integer)) } - def year - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def year=(_) - end + attr_accessor :year sig do params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) @@ -1129,72 +761,43 @@ module Orb end end - class DiscountInterval < Orb::Union - abstract! + module DiscountInterval + extend Orb::Union - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval + ) + } + end class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1237,57 +840,27 @@ module Orb class PercentageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # Only available if discount_type is `percentage`.This is a number between 0 # and 1. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1330,57 +903,27 @@ module Orb class UsageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -1419,40 +962,31 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def variants + end + end end class FixedFeeQuantitySchedule < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) @@ -1471,49 +1005,24 @@ module Orb class MaximumInterval < Orb::BaseModel # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the maximum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The maximum amount to charge in a given billing period for the price intervals # this transform applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The start date of the maximum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1547,49 +1056,24 @@ module Orb class MinimumInterval < Orb::BaseModel # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the minimum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The minimum amount to charge in a given billing period for the price intervals # this minimum applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The start date of the minimum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1622,62 +1106,32 @@ module Orb class PriceInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The day of the month that Orb bills for this price sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is exactly the end of the billing period. Set to null if # this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # The end date of the price interval. This is the date that Orb stops billing for # this price. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter to apply to usage queries. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # The fixed fee quantity transitions for this price interval. This is only # relevant for fixed fees. @@ -1686,19 +1140,7 @@ module Orb T.nilable(T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition]) ) end - def fixed_fee_quantity_transitions - end - - sig do - params( - _: 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 + attr_accessor :fixed_fee_quantity_transitions # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -1744,97 +1186,17 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .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 + attr_accessor :price # The start date of the price interval. This is the date that Orb starts billing # for this price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids # The Price Interval resource represents a period of time for which a price will # bill on a subscription. A subscription’s price intervals define its billing @@ -1847,9 +1209,17 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition]), + fixed_fee_quantity_transitions: T.nilable( + T::Array[ + T.any( + Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Util::AnyHash + ) + ] + ), price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -1948,28 +1318,13 @@ module Orb class FixedFeeQuantityTransition < Orb::BaseModel sig { returns(Time) } - def effective_date - end - - sig { params(_: Time).returns(Time) } - def effective_date=(_) - end + attr_accessor :effective_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Integer) } - def quantity - end - - sig { params(_: Integer).returns(Integer) } - def quantity=(_) - end + attr_accessor :quantity sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } def self.new(effective_date:, price_id:, quantity:) @@ -1983,28 +1338,13 @@ module Orb class RedeemedCoupon < Orb::BaseModel sig { returns(String) } - def coupon_id - end - - sig { params(_: String).returns(String) } - def coupon_id=(_) - end + attr_accessor :coupon_id sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) @@ -2017,24 +1357,26 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCancelResponse::Status) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ACTIVE = T.let(:active, Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol) + ENDED = T.let(:ended, Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol) + UPCOMING = T.let(:upcoming, Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol) - ACTIVE = :active - ENDED = :ended - UPCOMING = :upcoming + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionCancelResponse::Status::TaggedSymbol]) } + def values + end + end end class TrialInfo < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } def self.new(end_date:) diff --git a/rbi/lib/orb/models/subscription_create_params.rbi b/rbi/lib/orb/models/subscription_create_params.rbi index 0d800aff..3d2ae711 100644 --- a/rbi/lib/orb/models/subscription_create_params.rbi +++ b/rbi/lib/orb/models/subscription_create_params.rbi @@ -9,311 +9,150 @@ module Orb # Additional adjustments to be added to the subscription. (Only available for # accounts that have migrated off of legacy subscription overrides) sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment])) } - def add_adjustments - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment])) - end - def add_adjustments=(_) - end + attr_accessor :add_adjustments # Additional prices to be added to the subscription. (Only available for accounts # that have migrated off of legacy subscription overrides) sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice])) } - def add_prices - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice])) - end - def add_prices=(_) - end + attr_accessor :add_prices sig { returns(T.nilable(T::Boolean)) } - def align_billing_with_subscription_start_date - end + attr_reader :align_billing_with_subscription_start_date - sig { params(_: T::Boolean).returns(T::Boolean) } - def align_billing_with_subscription_start_date=(_) - end + sig { params(align_billing_with_subscription_start_date: T::Boolean).void } + attr_writer :align_billing_with_subscription_start_date # Determines whether issued invoices for this subscription will automatically be # charged with the saved payment method on the due date. If not specified, this # defaults to the behavior configured for this customer. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(T.nilable(String)) } - def aws_region - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def aws_region=(_) - end + attr_accessor :aws_region sig { returns(T.nilable(Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration)) } - def billing_cycle_anchor_configuration - end + attr_reader :billing_cycle_anchor_configuration sig do - params(_: T.nilable(Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration)) - .returns(T.nilable(Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration)) - end - def billing_cycle_anchor_configuration=(_) + params( + billing_cycle_anchor_configuration: T.nilable( + T.any(Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :billing_cycle_anchor_configuration # Redemption code to be used for this subscription. If the coupon cannot be found # by its redemption code, or cannot be redeemed, an error response will be # returned and the subscription creation or plan change will not be scheduled. sig { returns(T.nilable(String)) } - def coupon_redemption_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def coupon_redemption_code=(_) - end + attr_accessor :coupon_redemption_code sig { returns(T.nilable(Float)) } - def credits_overage_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def credits_overage_rate=(_) - end + attr_accessor :credits_overage_rate sig { returns(T.nilable(String)) } - def customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def customer_id=(_) - end + attr_accessor :customer_id # Determines the default memo on this subscription's invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(T.nilable(String)) } - def external_customer_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_customer_id=(_) - end - - sig { returns(T.nilable(Symbol)) } - def external_marketplace - end + attr_accessor :external_customer_id - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def external_marketplace=(_) - end + sig { returns(T.nilable(Orb::Models::SubscriptionCreateParams::ExternalMarketplace::OrSymbol)) } + attr_accessor :external_marketplace sig { returns(T.nilable(String)) } - def external_marketplace_reporting_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_marketplace_reporting_id=(_) - end + attr_accessor :external_marketplace_reporting_id # The external_plan_id of the plan that the given subscription should be switched # to. Note that either this property or `plan_id` must be specified. sig { returns(T.nilable(String)) } - def external_plan_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_plan_id=(_) - end + attr_accessor :external_plan_id # An additional filter to apply to usage queries. This filter must be expressed as # a boolean # [computed property](/extensibility/advanced-metrics#computed-properties). If # null, usage queries will not include any additional filter. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # The phase of the plan to start with sig { returns(T.nilable(Integer)) } - def initial_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def initial_phase_order=(_) - end + attr_accessor :initial_phase_order # When this subscription's accrued usage reaches this threshold, an invoice will # be issued for the subscription. If not specified, invoices will only be issued # at the end of the billing period. sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # The net terms determines the difference between the invoice date and the issue # date for the invoice. If you intend the invoice to be due on issue, set this # to 0. If not provided, this defaults to the value specified in the plan. sig { returns(T.nilable(Integer)) } - def net_terms - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def net_terms=(_) - end + attr_accessor :net_terms sig { returns(T.nilable(Float)) } - def per_credit_overage_amount - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def per_credit_overage_amount=(_) - end + attr_accessor :per_credit_overage_amount # The plan that the given subscription should be switched to. Note that either # this property or `external_plan_id` must be specified. sig { returns(T.nilable(String)) } - def plan_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def plan_id=(_) - end + attr_accessor :plan_id # Specifies which version of the plan to subscribe to. If null, the default # version will be used. sig { returns(T.nilable(Integer)) } - def plan_version_number - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_version_number=(_) - end + attr_accessor :plan_version_number # Optionally provide a list of overrides for prices on the plan sig { returns(T.nilable(T::Array[T.anything])) } - def price_overrides - end - - sig { params(_: T.nilable(T::Array[T.anything])).returns(T.nilable(T::Array[T.anything])) } - def price_overrides=(_) - end + attr_accessor :price_overrides # Plan adjustments to be removed from the subscription. (Only available for # accounts that have migrated off of legacy subscription overrides) sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment])) } - def remove_adjustments - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment])) - end - def remove_adjustments=(_) - end + attr_accessor :remove_adjustments # Plan prices to be removed from the subscription. (Only available for accounts # that have migrated off of legacy subscription overrides) sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemovePrice])) } - def remove_prices - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemovePrice])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::RemovePrice])) - end - def remove_prices=(_) - end + attr_accessor :remove_prices # Plan adjustments to be replaced with additional adjustments on the subscription. # (Only available for accounts that have migrated off of legacy subscription # overrides) sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment])) } - def replace_adjustments - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment])) - end - def replace_adjustments=(_) - end + attr_accessor :replace_adjustments # Plan prices to be replaced with additional prices on the subscription. (Only # available for accounts that have migrated off of legacy subscription overrides) sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice])) } - def replace_prices - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice])) - end - def replace_prices=(_) - end + attr_accessor :replace_prices sig { returns(T.nilable(Time)) } - def start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def start_date=(_) - end + attr_accessor :start_date # The duration of the trial period in days. If not provided, this defaults to the # value specified in the plan. If `0` is provided, the trial on the plan will be # skipped. sig { returns(T.nilable(Integer)) } - def trial_duration_days - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def trial_duration_days=(_) - end + attr_accessor :trial_duration_days # A list of customer IDs whose usage events will be aggregated and billed under # this subscription. By default, a subscription only considers usage events @@ -322,28 +161,25 @@ module Orb # only. Provided usage_customer_ids must be either the customer for this # subscription itself, or any of that customer's children. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids sig do params( - add_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]), - add_prices: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice]), + add_adjustments: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::AddAdjustment, Orb::Util::AnyHash)]), + add_prices: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::AddPrice, Orb::Util::AnyHash)]), 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), + billing_cycle_anchor_configuration: T.nilable( + T.any(Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration, Orb::Util::AnyHash) + ), 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: T.nilable(Orb::Models::SubscriptionCreateParams::ExternalMarketplace::OrSymbol), external_marketplace_reporting_id: T.nilable(String), external_plan_id: T.nilable(String), filter: T.nilable(String), @@ -355,14 +191,14 @@ module Orb 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]), + remove_adjustments: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::RemoveAdjustment, Orb::Util::AnyHash)]), + remove_prices: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::RemovePrice, Orb::Util::AnyHash)]), + replace_adjustments: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::ReplaceAdjustment, Orb::Util::AnyHash)]), + replace_prices: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::ReplacePrice, Orb::Util::AnyHash)]), start_date: T.nilable(Time), trial_duration_days: T.nilable(Integer), usage_customer_ids: T.nilable(T::Array[String]), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -418,7 +254,7 @@ module Orb default_invoice_memo: T.nilable(String), end_date: T.nilable(Time), external_customer_id: T.nilable(String), - external_marketplace: T.nilable(Symbol), + external_marketplace: T.nilable(Orb::Models::SubscriptionCreateParams::ExternalMarketplace::OrSymbol), external_marketplace_reporting_id: T.nilable(String), external_plan_id: T.nilable(String), filter: T.nilable(String), @@ -457,66 +293,28 @@ module Orb ) ) end - def adjustment - end - - sig do - params( - _: 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 + attr_accessor :adjustment # The end date of the adjustment interval. This is the date that the adjustment # will stop affecting prices on the subscription. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The phase to add this adjustment to. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The start date of the adjustment interval. This is the date that the adjustment # will start affecting prices on the subscription. If null, the adjustment will # start when the phase or subscription starts. sig { returns(T.nilable(Time)) } - def start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def start_date=(_) - end + attr_accessor :start_date sig do params( adjustment: T.any( Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewPercentageDiscount, + Orb::Util::AnyHash, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum, @@ -552,56 +350,40 @@ module Orb end # The definition of a new adjustment to create and add to the subscription. - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union - Variants = type_template(:out) do - { - fixed: 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 + Variants = + type_template(:out) do + { + fixed: 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 class NewPercentageDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -632,39 +414,22 @@ module Orb class NewUsageDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -695,39 +460,22 @@ module Orb class NewAmountDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -758,48 +506,26 @@ module Orb class NewMinimum < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -832,39 +558,22 @@ module Orb class NewMaximum < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -892,83 +601,61 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [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 variants + end + end end end class AddPrice < Orb::BaseModel # The definition of a new allocation price to create and add to the subscription. sig { returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice)) } - def allocation_price - end + attr_reader :allocation_price sig do - params(_: T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice)) - .returns(T.nilable(Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice)) - end - def allocation_price=(_) + params( + allocation_price: T.nilable(T.any(Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice, Orb::Util::AnyHash)) + ) + .void end + attr_writer :allocation_price # [DEPRECATED] Use add_adjustments instead. The subscription's discounts for this # price. sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount])) } - def discounts - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount])) - end - def discounts=(_) - end + attr_accessor :discounts # The end date of the price interval. This is the date that the price will stop # billing on the subscription. If null, billing will end when the phase or # subscription ends. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The external price id of the price to add to the subscription. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # [DEPRECATED] Use add_adjustments instead. The subscription's maximum amount for # this price. sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for # this price. sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The phase to add this price to. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The definition of a new price to create and add to the subscription. sig do @@ -1004,14 +691,31 @@ module Orb ) ) end - def price - end + attr_accessor :price + + # The id of the price to add to the subscription. + sig { returns(T.nilable(String)) } + attr_accessor :price_id + + # The start date of the price interval. This is the date that the price will start + # billing on the subscription. If null, billing will start when the phase or + # subscription starts. + sig { returns(T.nilable(Time)) } + attr_accessor :start_date sig do params( - _: T.nilable( + allocation_price: T.nilable(T.any(Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice, Orb::Util::AnyHash)), + discounts: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::AddPrice::Discount, Orb::Util::AnyHash)]), + 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::Util::AnyHash, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice, @@ -1037,103 +741,9 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice ) - ) - ) - .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, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice - ) - ) - ) - end - def price=(_) - end - - # The id of the price to add to the subscription. - sig { returns(T.nilable(String)) } - def price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def price_id=(_) - end - - # The start date of the price interval. This is the date that the price will start - # billing on the subscription. If null, billing will start when the phase or - # subscription starts. - sig { returns(T.nilable(Time)) } - def start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def start_date=(_) - end - - sig do - params( - 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, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice - ) - ), - price_id: T.nilable(String), - start_date: T.nilable(Time) + ), + price_id: T.nilable(String), + start_date: T.nilable(Time) ) .returns(T.attached_class) end @@ -1202,45 +812,30 @@ module Orb class AllocationPrice < Orb::BaseModel # An amount of the currency to allocate to the customer at the specified cadence. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The cadence at which to allocate the amount to the customer. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::OrSymbol) } + attr_accessor :cadence # An ISO 4217 currency string or a custom pricing unit identifier in which to bill # this price. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # Whether the allocated amount should expire at the end of the cadence or roll # over to the next period. sig { returns(T::Boolean) } - def expires_at_end_of_cadence - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def expires_at_end_of_cadence=(_) - end + attr_accessor :expires_at_end_of_cadence # The definition of a new allocation price to create and add to the subscription. sig do - params(amount: String, cadence: Symbol, currency: String, expires_at_end_of_cadence: T::Boolean) + params( + amount: String, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::OrSymbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + ) .returns(T.attached_class) end def self.new(amount:, cadence:, currency:, expires_at_end_of_cadence:) @@ -1248,72 +843,75 @@ module Orb sig do override - .returns({ - amount: String, - cadence: Symbol, - currency: String, - expires_at_end_of_cadence: T::Boolean - }) + .returns( + { + amount: String, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::OrSymbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + } + ) end def to_hash end # The cadence at which to allocate the amount to the customer. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol) } + + ONE_TIME = + T.let(:one_time, Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol) + MONTHLY = + T.let(:monthly, Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + ) + ANNUAL = + T.let(:annual, Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol) + CUSTOM = + T.let(:custom, Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol]) + end + def values + end + end end end class Discount < Orb::BaseModel - sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType::OrSymbol) } + attr_accessor :discount_type # Only available if discount_type is `amount`. sig { returns(T.nilable(String)) } - def amount_discount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def amount_discount=(_) - end + attr_accessor :amount_discount # Only available if discount_type is `percentage`. This is a number between 0 # and 1. sig { returns(T.nilable(Float)) } - def percentage_discount - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(T.nilable(Float)) } - def usage_discount - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( - discount_type: Symbol, + discount_type: Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType::OrSymbol, amount_discount: T.nilable(String), percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) @@ -1327,7 +925,7 @@ module Orb override .returns( { - discount_type: Symbol, + discount_type: Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType::OrSymbol, amount_discount: T.nilable(String), percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) @@ -1337,119 +935,112 @@ module Orb def to_hash end - class DiscountType < Orb::Enum - abstract! + module DiscountType + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + PERCENTAGE = + T.let(:percentage, Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType::TaggedSymbol) + USAGE = + T.let(:usage, Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType::TaggedSymbol) + AMOUNT = + T.let(:amount, Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType::TaggedSymbol) - PERCENTAGE = :percentage - USAGE = :usage - AMOUNT = :amount + class << self + sig do + override + .returns(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount::DiscountType::TaggedSymbol]) + end + def values + end + end end end # The definition of a new price to create and add to the subscription. - class Price < Orb::Union - abstract! + module Price + extend Orb::Union - Variants = type_template(:out) do - { - fixed: 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::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice - ) - } - end + Variants = + type_template(:out) do + { + fixed: 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::NewSubscriptionScalableMatrixWithUnitPricingPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice + ) + } + end class NewSubscriptionUnitPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig) } - def unit_config - end + attr_reader :unit_config sig do - params(_: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig) - .returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig) - end - def unit_config=(_) + params( + unit_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :unit_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -1460,70 +1051,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -1534,58 +1097,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::OrSymbol, item_id: String, name: String, - unit_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, + unit_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, + Orb::Util::AnyHash + ), 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 + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -1593,7 +1146,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -1625,7 +1181,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -1652,28 +1208,66 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + end - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class UnitConfig < Orb::BaseModel # Rate per unit of usage sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig { params(unit_amount: String).returns(T.attached_class) } def self.new(unit_amount:) @@ -1687,158 +1281,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig ) end - def package_config - end + attr_reader :package_config sig do params( - _: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig - ) - .returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig + package_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, + Orb::Util::AnyHash ) + ) + .void end - def package_config=(_) - end + attr_writer :package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -1849,70 +1494,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -1923,58 +1540,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::OrSymbol, item_id: String, name: String, - package_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, + package_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, + Orb::Util::AnyHash + ), 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 + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -1982,7 +1589,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -2014,7 +1624,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -2041,38 +1651,73 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class PackageConfig < Orb::BaseModel # A currency amount to rate usage by sig { returns(String) } - def package_amount - end - - sig { params(_: String).returns(String) } - def package_amount=(_) - end + attr_accessor :package_amount # An integer amount to represent package size. For example, 1000 here would divide # usage by 1000 before multiplying by package_amount in rating sig { returns(Integer) } - def package_size - end - - sig { params(_: Integer).returns(Integer) } - def package_size=(_) - end + attr_accessor :package_size sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } def self.new(package_amount:, package_size:) @@ -2086,152 +1731,205 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionMatrixPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig) } - def matrix_config - end + attr_reader :matrix_config sig do params( - _: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig + matrix_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + Orb::Util::AnyHash + ) ) - .returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig) - end - def matrix_config=(_) + .void end + attr_writer :matrix_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -2242,70 +1940,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -2316,58 +1986,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::OrSymbol, item_id: String, - matrix_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + matrix_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + Orb::Util::AnyHash + ), 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 + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -2375,7 +2035,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -2407,7 +2070,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::OrSymbol, item_id: String, matrix_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, model_type: Symbol, @@ -2434,70 +2097,90 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class MatrixConfig < Orb::BaseModel # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } - def default_unit_amount - end - - sig { params(_: String).returns(String) } - def default_unit_amount=(_) - end - - # One or two event property values to evaluate matrix groups by - sig { returns(T::Array[T.nilable(String)]) } - def dimensions - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimensions=(_) - end - - # Matrix values for specified matrix grouping keys - sig do - returns( - T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue - ] - ) - end - def matrix_values - end + attr_accessor :default_unit_amount + # One or two event property values to evaluate matrix groups by + sig { returns(T::Array[T.nilable(String)]) } + attr_accessor :dimensions + + # Matrix values for specified matrix grouping keys sig do - params( - _: T::Array[ + 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 + attr_accessor :matrix_values sig do params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], matrix_values: T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -2525,21 +2208,11 @@ module Orb # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values # Unit price for the specified dimension_values sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -2559,152 +2232,205 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig) } - def tiered_config - end + attr_reader :tiered_config sig do params( - _: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig + tiered_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, + Orb::Util::AnyHash + ) ) - .returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig) - end - def tiered_config=(_) + .void end + attr_writer :tiered_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -2715,70 +2441,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -2789,58 +2487,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::OrSymbol, item_id: String, name: String, - tiered_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, + tiered_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, + Orb::Util::AnyHash + ), 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 + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -2848,7 +2536,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -2880,7 +2571,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -2907,17 +2598,60 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class TieredConfig < Orb::BaseModel @@ -2927,23 +2661,16 @@ module Orb T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] ) end - def tiers - end + attr_accessor :tiers sig do params( - _: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - ) - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + tiers: T::Array[ + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier, + Orb::Util::AnyHash ) - end - def tiers=(_) - end - - sig do - params( - tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + ] ) .returns(T.attached_class) end @@ -2964,30 +2691,15 @@ module Orb class Tier < Orb::BaseModel # Inclusive tier starting value sig { returns(Float) } - def first_unit - end - - sig { params(_: Float).returns(Float) } - def first_unit=(_) - end + attr_accessor :first_unit # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Exclusive tier ending value. If null, this is treated as the last tier sig { returns(T.nilable(Float)) } - def last_unit - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def last_unit=(_) - end + attr_accessor :last_unit sig do params( @@ -3010,158 +2722,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredBpsPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig ) end - def tiered_bps_config - end + attr_reader :tiered_bps_config sig do params( - _: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig - ) - .returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig + tiered_bps_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + Orb::Util::AnyHash ) + ) + .void end - def tiered_bps_config=(_) - end + attr_writer :tiered_bps_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -3172,70 +2935,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + params( + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -3246,58 +2981,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::OrSymbol, item_id: String, name: String, - tiered_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + tiered_bps_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + Orb::Util::AnyHash + ), 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 + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -3305,7 +3030,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -3337,7 +3065,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -3364,17 +3092,64 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class TieredBpsConfig < Orb::BaseModel @@ -3387,28 +3162,15 @@ module Orb ] ) 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 - ] - ) - end - def tiers=(_) - end + attr_accessor :tiers sig do params( tiers: T::Array[ - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -3432,39 +3194,19 @@ module Orb class Tier < Orb::BaseModel # Per-event basis point rate sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Inclusive tier starting value sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # Exclusive tier ending value sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # Per unit maximum to charge sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params( @@ -3497,150 +3239,205 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionBpsPrice < Orb::BaseModel sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig) } - def bps_config - end + attr_reader :bps_config sig do - params(_: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig) - .returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig) - end - def bps_config=(_) + params( + bps_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :bps_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -3651,70 +3448,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -3725,58 +3494,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Symbol, + bps_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -3784,7 +3543,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -3817,7 +3579,7 @@ module Orb .returns( { bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -3845,21 +3607,11 @@ module Orb class BpsConfig < Orb::BaseModel # Basis point take rate per event sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Optional currency amount maximum to cap spend per event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } def self.new(bps:, per_unit_maximum: nil) @@ -3871,96 +3623,217 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end @@ -3971,74 +3844,47 @@ module Orb Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig ) end - def bulk_bps_config - end + attr_reader :bulk_bps_config sig do params( - _: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig - ) - .returns( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig + bulk_bps_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + Orb::Util::AnyHash ) + ) + .void end - def bulk_bps_config=(_) - end + attr_writer :bulk_bps_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -4049,70 +3895,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -4123,58 +3941,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - bulk_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, + bulk_bps_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -4182,7 +3990,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -4215,7 +4026,7 @@ module Orb .returns( { bulk_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -4248,23 +4059,16 @@ module Orb T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] ) end - def tiers - end + attr_accessor :tiers sig do params( - _: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - ) - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + tiers: T::Array[ + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier, + Orb::Util::AnyHash ) - end - def tiers=(_) - end - - sig do - params( - tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + ] ) .returns(T.attached_class) end @@ -4285,30 +4089,15 @@ module Orb class Tier < Orb::BaseModel # Basis points to rate on sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Upper bound for tier sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The maximum amount to charge for any one event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) @@ -4332,166 +4121,266 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionBulkPrice < Orb::BaseModel sig { returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig) } - def bulk_config - end + attr_reader :bulk_config sig do - params(_: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig) - .returns(Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig) - end - def bulk_config=(_) + params( + bulk_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :bulk_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -4502,70 +4391,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -4576,58 +4437,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - bulk_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Symbol, + bulk_config: T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -4635,7 +4486,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -4668,7 +4522,7 @@ module Orb .returns( { bulk_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -4700,23 +4554,16 @@ module Orb T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] ) end - def tiers - end + attr_accessor :tiers sig do params( - _: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - ) - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + tiers: T::Array[ + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier, + Orb::Util::AnyHash ) - end - def tiers=(_) - end - - sig do - params( - tiers: T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + ] ) .returns(T.attached_class) end @@ -4737,21 +4584,11 @@ module Orb class Tier < Orb::BaseModel # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Upper bound for this tier sig { returns(T.nilable(Float)) } - def maximum_units - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def maximum_units=(_) - end + attr_accessor :maximum_units sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } def self.new(unit_amount:, maximum_units: nil) @@ -4764,163 +4601,253 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config=(_) - end + attr_accessor :threshold_total_amount_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -4931,70 +4858,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -5005,58 +4904,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -5064,7 +4950,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -5096,7 +4985,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -5123,163 +5012,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config=(_) - end + attr_accessor :tiered_package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -5290,70 +5273,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -5364,58 +5319,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -5423,7 +5365,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -5455,7 +5400,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -5482,163 +5427,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config=(_) - end + attr_accessor :tiered_with_minimum_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -5649,70 +5688,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -5723,58 +5734,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -5782,7 +5780,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -5814,7 +5815,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -5841,163 +5842,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config=(_) - end + attr_accessor :unit_with_percent_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -6008,70 +6103,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -6082,58 +6149,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -6141,7 +6195,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -6173,7 +6230,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -6200,163 +6257,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config=(_) - end + attr_accessor :package_with_allocation_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -6367,70 +6518,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -6441,58 +6564,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -6500,7 +6610,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -6532,7 +6645,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -6559,163 +6672,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config=(_) - end + attr_accessor :tiered_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -6726,70 +6933,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -6800,58 +6979,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -6859,7 +7025,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -6891,7 +7060,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -6918,163 +7087,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config=(_) - end + attr_accessor :unit_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -7085,70 +7348,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -7159,58 +7394,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -7218,7 +7440,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -7250,7 +7475,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -7277,163 +7502,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config=(_) - end + attr_accessor :grouped_allocation_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -7444,70 +7763,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -7518,58 +7809,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::OrSymbol, grouped_allocation_config: T::Hash[Symbol, T.anything], item_id: String, 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 + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -7577,7 +7855,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -7609,7 +7890,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::OrSymbol, grouped_allocation_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -7636,163 +7917,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config=(_) - end + attr_accessor :grouped_with_prorated_minimum_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -7803,70 +8178,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -7877,58 +8224,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::OrSymbol, grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], item_id: String, 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 + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -7936,7 +8270,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -7968,7 +8305,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::OrSymbol, grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -7995,163 +8332,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel sig { returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config=(_) - end + attr_accessor :bulk_with_proration_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -8162,70 +8593,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -8236,58 +8639,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -8295,7 +8685,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -8328,7 +8721,7 @@ module Orb .returns( { bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -8354,163 +8747,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionScalableMatrixWithUnitPricingPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_unit_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -8521,70 +9008,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -8595,58 +9054,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol, item_id: String, 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -8654,7 +9100,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -8686,7 +9135,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -8713,163 +9162,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionScalableMatrixWithTieredPricingPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_tiered_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -8880,70 +9423,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -8954,58 +9469,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol, item_id: String, 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::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -9013,7 +9515,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -9045,7 +9550,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -9072,163 +9577,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionCumulativeGroupedBulkPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config=(_) - end + attr_accessor :cumulative_grouped_bulk_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -9239,70 +9838,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. - sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -9313,58 +9884,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::OrSymbol, cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], item_id: String, 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::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -9372,7 +9930,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -9404,7 +9965,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::OrSymbol, cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -9431,163 +9992,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionMaxGroupTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config=(_) - end + attr_accessor :max_group_tiered_package_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -9598,70 +10253,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -9672,58 +10299,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::OrSymbol, item_id: String, max_group_tiered_package_config: T::Hash[Symbol, T.anything], 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::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -9731,7 +10345,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -9763,7 +10380,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::OrSymbol, item_id: String, max_group_tiered_package_config: T::Hash[Symbol, T.anything], model_type: Symbol, @@ -9790,163 +10407,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config=(_) - end + attr_accessor :grouped_with_metered_minimum_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -9957,70 +10668,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -10031,58 +10714,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::OrSymbol, grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], item_id: String, 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::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -10090,7 +10760,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -10122,7 +10795,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::OrSymbol, grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -10149,163 +10822,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionMatrixWithDisplayNamePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config=(_) - end + attr_accessor :matrix_with_display_name_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -10316,70 +11083,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -10390,58 +11129,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::OrSymbol, item_id: String, matrix_with_display_name_config: T::Hash[Symbol, T.anything], 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::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -10449,7 +11175,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -10481,7 +11210,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::OrSymbol, item_id: String, matrix_with_display_name_config: T::Hash[Symbol, T.anything], model_type: Symbol, @@ -10508,163 +11237,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedTieredPackagePrice < Orb::BaseModel - # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + # The cadence to bill for this price on. + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config=(_) - end + attr_accessor :grouped_tiered_package_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -10675,70 +11498,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -10749,58 +11544,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::OrSymbol, grouped_tiered_package_config: T::Hash[Symbol, T.anything], item_id: String, 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::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -10808,7 +11590,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -10840,7 +11625,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::OrSymbol, grouped_tiered_package_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -10867,99 +11652,235 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end + + class << self + sig do + override + .returns( + [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::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice] + ) + end + def variants + end + end end end @@ -10969,33 +11890,18 @@ module Orb # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def day - end - - sig { params(_: Integer).returns(Integer) } - def day=(_) - end + attr_accessor :day # The month on which the billing cycle is anchored (e.g. a quarterly price # anchored in February would have cycles starting February, May, August, and # November). sig { returns(T.nilable(Integer)) } - def month - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def month=(_) - end + attr_accessor :month # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). sig { returns(T.nilable(Integer)) } - def year - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def year=(_) - end + attr_accessor :year sig do params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) @@ -11008,25 +11914,28 @@ module Orb end end - class ExternalMarketplace < Orb::Enum - abstract! + module ExternalMarketplace + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ExternalMarketplace) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + GOOGLE = T.let(:google, Orb::Models::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol) + AWS = T.let(:aws, Orb::Models::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol) + AZURE = T.let(:azure, Orb::Models::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol) - GOOGLE = :google - AWS = :aws - AZURE = :azure + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol]) } + def values + end + end end class RemoveAdjustment < Orb::BaseModel # The id of the adjustment to remove on the subscription. sig { returns(String) } - def adjustment_id - end - - sig { params(_: String).returns(String) } - def adjustment_id=(_) - end + attr_accessor :adjustment_id sig { params(adjustment_id: String).returns(T.attached_class) } def self.new(adjustment_id:) @@ -11040,21 +11949,11 @@ module Orb class RemovePrice < Orb::BaseModel # The external price id of the price to remove on the subscription. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # The id of the price to remove on the subscription. sig { returns(T.nilable(String)) } - def price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def price_id=(_) - end + attr_accessor :price_id sig do params(external_price_id: T.nilable(String), price_id: T.nilable(String)).returns(T.attached_class) @@ -11080,45 +11979,17 @@ module Orb ) ) end - def adjustment - end - - 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 - ) - ) - .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 + attr_accessor :adjustment # The id of the adjustment on the plan to replace in the subscription. sig { returns(String) } - def replaces_adjustment_id - end - - sig { params(_: String).returns(String) } - def replaces_adjustment_id=(_) - end + attr_accessor :replaces_adjustment_id sig do params( adjustment: T.any( Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, + Orb::Util::AnyHash, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum, @@ -11150,56 +12021,40 @@ module Orb end # The definition of a new adjustment to create and add to the subscription. - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union - Variants = type_template(:out) do - { - fixed: 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 + Variants = + type_template(:out) do + { + fixed: 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 class NewPercentageDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11230,39 +12085,22 @@ module Orb class NewUsageDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11293,39 +12131,22 @@ module Orb class NewAmountDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11356,48 +12177,26 @@ module Orb class NewMinimum < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11430,39 +12229,22 @@ module Orb class NewMaximum < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11490,81 +12272,59 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [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 variants + end + end end end class ReplacePrice < Orb::BaseModel # The id of the price on the plan to replace in the subscription. sig { returns(String) } - def replaces_price_id - end - - sig { params(_: String).returns(String) } - def replaces_price_id=(_) - end + attr_accessor :replaces_price_id # The definition of a new allocation price to create and add to the subscription. sig { returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice)) } - def allocation_price - end + attr_reader :allocation_price sig do - params(_: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice)) - .returns(T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice)) - end - def allocation_price=(_) + params( + allocation_price: T.nilable(T.any(Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice, Orb::Util::AnyHash)) + ) + .void end + attr_writer :allocation_price # [DEPRECATED] Use add_adjustments instead. The subscription's discounts for the # replacement price. sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount])) } - def discounts - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount])) - end - def discounts=(_) - end + attr_accessor :discounts # The external price id of the price to add to the subscription. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # The new quantity of the price, if the price is a fixed price. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # [DEPRECATED] Use add_adjustments instead. The subscription's maximum amount for # the replacement price. sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for # the replacement price. sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The definition of a new price to create and add to the subscription. sig do @@ -11600,90 +12360,19 @@ module Orb ) ) end - def price - end - - sig do - 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::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice - ) - ) - ) - .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::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice - ) - ) - ) - end - def price=(_) - end + attr_accessor :price # The id of the price to add to the subscription. sig { returns(T.nilable(String)) } - def price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def price_id=(_) - end + attr_accessor :price_id sig do params( replaces_price_id: String, - allocation_price: T.nilable(Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice), - discounts: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount]), + allocation_price: T.nilable(T.any(Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice, Orb::Util::AnyHash)), + discounts: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount, Orb::Util::AnyHash)] + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), maximum_amount: T.nilable(String), @@ -11691,6 +12380,7 @@ module Orb price: T.nilable( T.any( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice, + Orb::Util::AnyHash, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice, @@ -11784,45 +12474,30 @@ module Orb class AllocationPrice < Orb::BaseModel # An amount of the currency to allocate to the customer at the specified cadence. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The cadence at which to allocate the amount to the customer. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol) } + attr_accessor :cadence # An ISO 4217 currency string or a custom pricing unit identifier in which to bill # this price. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # Whether the allocated amount should expire at the end of the cadence or roll # over to the next period. sig { returns(T::Boolean) } - def expires_at_end_of_cadence - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def expires_at_end_of_cadence=(_) - end + attr_accessor :expires_at_end_of_cadence # The definition of a new allocation price to create and add to the subscription. sig do - params(amount: String, cadence: Symbol, currency: String, expires_at_end_of_cadence: T::Boolean) + params( + amount: String, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + ) .returns(T.attached_class) end def self.new(amount:, cadence:, currency:, expires_at_end_of_cadence:) @@ -11830,72 +12505,92 @@ module Orb sig do override - .returns({ - amount: String, - cadence: Symbol, - currency: String, - expires_at_end_of_cadence: T::Boolean - }) + .returns( + { + amount: String, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + } + ) end def to_hash end # The cadence at which to allocate the amount to the customer. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol) } + + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ) + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end end class Discount < Orb::BaseModel - sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::OrSymbol) } + attr_accessor :discount_type # Only available if discount_type is `amount`. sig { returns(T.nilable(String)) } - def amount_discount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def amount_discount=(_) - end + attr_accessor :amount_discount # Only available if discount_type is `percentage`. This is a number between 0 # and 1. sig { returns(T.nilable(Float)) } - def percentage_discount - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(T.nilable(Float)) } - def usage_discount - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( - discount_type: Symbol, + discount_type: Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::OrSymbol, amount_discount: T.nilable(String), percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) @@ -11909,7 +12604,7 @@ module Orb override .returns( { - discount_type: Symbol, + discount_type: Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::OrSymbol, amount_discount: T.nilable(String), percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) @@ -11919,121 +12614,117 @@ module Orb def to_hash end - class DiscountType < Orb::Enum - abstract! + module DiscountType + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + PERCENTAGE = + T.let( + :percentage, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::TaggedSymbol + ) + USAGE = + T.let(:usage, Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::TaggedSymbol) + AMOUNT = + T.let(:amount, Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::TaggedSymbol) - PERCENTAGE = :percentage - USAGE = :usage - AMOUNT = :amount + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::DiscountType::TaggedSymbol] + ) + end + def values + end + end end end # The definition of a new price to create and add to the subscription. - class Price < Orb::Union - abstract! + module Price + extend Orb::Union - Variants = type_template(:out) do - { - fixed: 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::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice - ) - } - end + Variants = + type_template(:out) do + { + fixed: 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::NewSubscriptionScalableMatrixWithUnitPricingPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice + ) + } + end class NewSubscriptionUnitPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig) } - def unit_config - end + attr_reader :unit_config sig do params( - _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig + unit_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, + Orb::Util::AnyHash + ) ) - .returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig) - end - def unit_config=(_) + .void end + attr_writer :unit_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -12044,70 +12735,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end - - # The property used to group this price on an invoice - sig { returns(T.nilable(String)) } - def invoice_grouping_key - end + attr_accessor :fixed_price_quantity - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -12118,58 +12781,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::OrSymbol, item_id: String, name: String, - unit_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, + unit_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, + Orb::Util::AnyHash + ), 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 + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -12177,7 +12830,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -12209,7 +12865,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -12236,28 +12892,70 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class UnitConfig < Orb::BaseModel # Rate per unit of usage sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig { params(unit_amount: String).returns(T.attached_class) } def self.new(unit_amount:) @@ -12271,158 +12969,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig ) end - def package_config - end + attr_reader :package_config sig do params( - _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig - ) - .returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig + package_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, + Orb::Util::AnyHash ) + ) + .void end - def package_config=(_) - end + attr_writer :package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -12433,70 +13182,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -12507,58 +13228,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::OrSymbol, item_id: String, name: String, - package_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, + package_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, + Orb::Util::AnyHash + ), 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 + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -12566,7 +13277,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -12598,7 +13312,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -12625,38 +13339,75 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class PackageConfig < Orb::BaseModel # A currency amount to rate usage by sig { returns(String) } - def package_amount - end - - sig { params(_: String).returns(String) } - def package_amount=(_) - end + attr_accessor :package_amount # An integer amount to represent package size. For example, 1000 here would divide # usage by 1000 before multiplying by package_amount in rating sig { returns(Integer) } - def package_size - end - - sig { params(_: Integer).returns(Integer) } - def package_size=(_) - end + attr_accessor :package_size sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } def self.new(package_amount:, package_size:) @@ -12670,158 +13421,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionMatrixPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig do returns( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig ) end - def matrix_config - end + attr_reader :matrix_config sig do - params( - _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig - ) - .returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig + params( + matrix_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + Orb::Util::AnyHash ) + ) + .void end - def matrix_config=(_) - end + attr_writer :matrix_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -12832,70 +13634,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -12906,58 +13680,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::OrSymbol, item_id: String, - matrix_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + matrix_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + Orb::Util::AnyHash + ), 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 + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -12965,7 +13729,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -12997,7 +13764,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::OrSymbol, item_id: String, matrix_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, model_type: Symbol, @@ -13024,37 +13791,74 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class MatrixConfig < Orb::BaseModel # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } - def default_unit_amount - end - - sig { params(_: String).returns(String) } - def default_unit_amount=(_) - end + attr_accessor :default_unit_amount # One or two event property values to evaluate matrix groups by sig { returns(T::Array[T.nilable(String)]) } - def dimensions - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimensions=(_) - end + attr_accessor :dimensions # Matrix values for specified matrix grouping keys sig do @@ -13064,30 +13868,17 @@ module Orb ] ) 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 - ] - ) - end - def matrix_values=(_) - end + attr_accessor :matrix_values sig do params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], matrix_values: T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -13115,21 +13906,11 @@ module Orb # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values # Unit price for the specified dimension_values sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -13149,158 +13930,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig ) end - def tiered_config - end + attr_reader :tiered_config sig do params( - _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig - ) - .returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig + tiered_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, + Orb::Util::AnyHash ) + ) + .void end - def tiered_config=(_) - end + attr_writer :tiered_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -13311,70 +14143,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -13385,58 +14189,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::OrSymbol, item_id: String, name: String, - tiered_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, + tiered_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, + Orb::Util::AnyHash + ), 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 + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -13444,7 +14238,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -13476,7 +14273,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -13503,43 +14300,83 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class TieredConfig < Orb::BaseModel # Tiers for rating based on total usage quantities into the specified tier sig do - returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - ) - end - def tiers - end - - 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 + attr_accessor :tiers sig do params( - tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + tiers: T::Array[ + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier, + Orb::Util::AnyHash + ) + ] ) .returns(T.attached_class) end @@ -13560,30 +14397,15 @@ module Orb class Tier < Orb::BaseModel # Inclusive tier starting value sig { returns(Float) } - def first_unit - end - - sig { params(_: Float).returns(Float) } - def first_unit=(_) - end + attr_accessor :first_unit # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Exclusive tier ending value. If null, this is treated as the last tier sig { returns(T.nilable(Float)) } - def last_unit - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def last_unit=(_) - end + attr_accessor :last_unit sig do params( @@ -13606,158 +14428,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredBpsPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig ) end - def tiered_bps_config - end + attr_reader :tiered_bps_config sig do params( - _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig - ) - .returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig + tiered_bps_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + Orb::Util::AnyHash ) + ) + .void end - def tiered_bps_config=(_) - end + attr_writer :tiered_bps_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -13768,70 +14641,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -13842,58 +14687,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::OrSymbol, item_id: String, name: String, - tiered_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + tiered_bps_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + Orb::Util::AnyHash + ), 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 + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -13901,7 +14736,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -13933,7 +14771,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -13960,17 +14798,64 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class TieredBpsConfig < Orb::BaseModel @@ -13983,28 +14868,15 @@ module Orb ] ) 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 - ] - ) - end - def tiers=(_) - end + attr_accessor :tiers sig do params( tiers: T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -14028,39 +14900,19 @@ module Orb class Tier < Orb::BaseModel # Per-event basis point rate sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Inclusive tier starting value sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # Exclusive tier ending value sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # Per unit maximum to charge sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params( @@ -14093,150 +14945,205 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionBpsPrice < Orb::BaseModel sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig) } - def bps_config - end + attr_reader :bps_config sig do - params(_: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig) - .returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig) - end - def bps_config=(_) + params( + bps_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :bps_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end - - # The name of the price. - sig { returns(String) } - def name - end + attr_accessor :model_type - sig { params(_: String).returns(String) } - def name=(_) - end + # The name of the price. + sig { returns(String) } + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -14247,70 +15154,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -14321,58 +15200,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Symbol, + bps_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -14380,7 +15249,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -14413,7 +15285,7 @@ module Orb .returns( { bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -14441,21 +15313,11 @@ module Orb class BpsConfig < Orb::BaseModel # Basis point take rate per event sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Optional currency amount maximum to cap spend per event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } def self.new(bps:, per_unit_maximum: nil) @@ -14467,96 +15329,219 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end @@ -14567,74 +15552,47 @@ module Orb Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig ) end - def bulk_bps_config - end + attr_reader :bulk_bps_config sig do params( - _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig - ) - .returns( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig + bulk_bps_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + Orb::Util::AnyHash ) + ) + .void end - def bulk_bps_config=(_) - end + attr_writer :bulk_bps_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -14645,70 +15603,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -14719,58 +15649,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - bulk_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, + bulk_bps_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -14778,7 +15698,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -14811,7 +15734,7 @@ module Orb .returns( { bulk_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -14846,28 +15769,15 @@ module Orb ] ) 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 - ] - ) - end - def tiers=(_) - end + attr_accessor :tiers sig do params( tiers: T::Array[ - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -14891,30 +15801,15 @@ module Orb class Tier < Orb::BaseModel # Basis points to rate on sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Upper bound for tier sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The maximum amount to charge for any one event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) @@ -14938,168 +15833,268 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - # For custom cadence: specifies the duration of the billing period in days or - # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionBulkPrice < Orb::BaseModel sig { returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig) } - def bulk_config - end + attr_reader :bulk_config sig do params( - _: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig + bulk_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, + Orb::Util::AnyHash + ) ) - .returns(Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig) - end - def bulk_config=(_) + .void end + attr_writer :bulk_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -15110,70 +16105,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -15184,58 +16151,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - bulk_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Symbol, + bulk_config: T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -15243,7 +16200,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -15276,7 +16236,7 @@ module Orb .returns( { bulk_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -15308,23 +16268,16 @@ module Orb T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] ) end - def tiers - end + attr_accessor :tiers sig do params( - _: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - ) - .returns( - T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + tiers: T::Array[ + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier, + Orb::Util::AnyHash ) - end - def tiers=(_) - end - - sig do - params( - tiers: T::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + ] ) .returns(T.attached_class) end @@ -15345,21 +16298,11 @@ module Orb class Tier < Orb::BaseModel # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Upper bound for this tier sig { returns(T.nilable(Float)) } - def maximum_units - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def maximum_units=(_) - end + attr_accessor :maximum_units sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } def self.new(unit_amount:, maximum_units: nil) @@ -15372,163 +16315,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config=(_) - end + attr_accessor :threshold_total_amount_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -15539,70 +16576,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -15613,58 +16622,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -15672,7 +16668,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -15704,7 +16703,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -15731,163 +16730,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config=(_) - end + attr_accessor :tiered_package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -15898,70 +16991,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -15972,58 +17037,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -16031,7 +17083,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -16063,7 +17118,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -16090,163 +17145,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config=(_) - end + attr_accessor :tiered_with_minimum_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -16257,70 +17406,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -16331,58 +17452,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -16390,7 +17498,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -16422,7 +17533,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -16449,163 +17560,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config=(_) - end + attr_accessor :unit_with_percent_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -16616,70 +17821,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -16690,58 +17867,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -16749,7 +17913,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -16781,7 +17948,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -16808,163 +17975,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config=(_) - end + attr_accessor :package_with_allocation_config # The id of the billable metric for the price. Only needed if the price is # usage-based. - sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -16975,70 +18236,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -17049,58 +18282,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -17108,7 +18328,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -17140,7 +18363,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -17167,163 +18390,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config=(_) - end + attr_accessor :tiered_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -17334,70 +18651,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -17408,58 +18697,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -17467,7 +18743,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -17499,7 +18778,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -17526,163 +18805,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config=(_) - end + attr_accessor :unit_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -17693,70 +19066,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -17767,58 +19112,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -17826,7 +19158,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -17858,7 +19193,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -17885,163 +19220,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config=(_) - end + attr_accessor :grouped_allocation_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -18052,70 +19481,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -18126,58 +19527,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::OrSymbol, grouped_allocation_config: T::Hash[Symbol, T.anything], item_id: String, 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 + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -18185,7 +19573,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -18217,7 +19608,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::OrSymbol, grouped_allocation_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -18244,163 +19635,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. - sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + sig { returns(Integer) } + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config=(_) - end + attr_accessor :grouped_with_prorated_minimum_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -18411,70 +19896,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -18485,58 +19942,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::OrSymbol, grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], item_id: String, 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 + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -18544,7 +19988,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -18576,7 +20023,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::OrSymbol, grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -18603,163 +20050,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel sig { returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config=(_) - end + attr_accessor :bulk_with_proration_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -18770,70 +20311,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -18844,58 +20357,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -18903,7 +20403,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -18936,7 +20439,7 @@ module Orb .returns( { bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -18962,163 +20465,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionScalableMatrixWithUnitPricingPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_unit_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -19129,70 +20726,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -19203,58 +20772,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol, item_id: String, 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -19262,7 +20818,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -19294,7 +20853,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -19321,163 +20880,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionScalableMatrixWithTieredPricingPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_tiered_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -19488,70 +21141,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -19562,58 +21187,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol, item_id: String, 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::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -19621,7 +21233,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -19653,7 +21268,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -19680,163 +21295,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionCumulativeGroupedBulkPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config=(_) - end + attr_accessor :cumulative_grouped_bulk_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -19847,70 +21556,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -19921,58 +21602,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::OrSymbol, cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], item_id: String, 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::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -19980,7 +21648,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -20012,7 +21683,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::OrSymbol, cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -20039,163 +21710,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionMaxGroupTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config=(_) - end + attr_accessor :max_group_tiered_package_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -20206,70 +21971,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -20280,58 +22017,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end - - sig do - params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::OrSymbol, item_id: String, max_group_tiered_package_config: T::Hash[Symbol, T.anything], 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::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -20339,7 +22063,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -20371,7 +22098,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::OrSymbol, item_id: String, max_group_tiered_package_config: T::Hash[Symbol, T.anything], model_type: Symbol, @@ -20398,163 +22125,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config=(_) - end + attr_accessor :grouped_with_metered_minimum_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -20565,70 +22386,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -20639,58 +22432,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::OrSymbol, grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], item_id: String, 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::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -20698,7 +22478,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -20730,7 +22513,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::OrSymbol, grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -20757,163 +22540,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionMatrixWithDisplayNamePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config=(_) - end + attr_accessor :matrix_with_display_name_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -20924,70 +22801,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration + params( + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -20998,58 +22847,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::OrSymbol, item_id: String, matrix_with_display_name_config: T::Hash[Symbol, T.anything], 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::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -21057,7 +22893,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -21089,7 +22928,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::OrSymbol, item_id: String, matrix_with_display_name_config: T::Hash[Symbol, T.anything], model_type: Symbol, @@ -21116,163 +22955,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config=(_) - end + attr_accessor :grouped_tiered_package_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -21283,70 +23216,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -21357,58 +23262,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::OrSymbol, grouped_tiered_package_config: T::Hash[Symbol, T.anything], item_id: String, 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::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -21416,7 +23308,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -21448,7 +23343,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::OrSymbol, grouped_tiered_package_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -21475,99 +23370,235 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end + + class << self + sig do + override + .returns( + [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::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice] + ) + end + def variants + end + end end end end diff --git a/rbi/lib/orb/models/subscription_create_response.rbi b/rbi/lib/orb/models/subscription_create_response.rbi index 51b1ac66..36fbcb73 100644 --- a/rbi/lib/orb/models/subscription_create_response.rbi +++ b/rbi/lib/orb/models/subscription_create_response.rbi @@ -4,99 +4,56 @@ module Orb module Models class SubscriptionCreateResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The current plan phase that is active, only if the subscription's plan has # phases. sig { returns(T.nilable(Integer)) } - def active_plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def active_plan_phase_order=(_) - end + attr_accessor :active_plan_phase_order # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. sig { returns(T::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval]) } - def adjustment_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval]) - .returns(T::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval]) - end - def adjustment_intervals=(_) - end + attr_accessor :adjustment_intervals # Determines whether issued invoices for this subscription will automatically be # charged with the saved payment method on the due date. This property defaults to # the plan's behavior. If null, defaults to the customer's setting. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration) } - def billing_cycle_anchor_configuration - end + attr_reader :billing_cycle_anchor_configuration sig do - params(_: Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration) - .returns(Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration) - end - def billing_cycle_anchor_configuration=(_) + params( + billing_cycle_anchor_configuration: T.any(Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_anchor_configuration # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is not part of the billing period. Set to null for # subscriptions that are not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if the subscription is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # A customer is a buyer of your products, and the other party to the billing # relationship. @@ -117,22 +74,15 @@ module Orb # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. sig { returns(Orb::Models::Customer) } - def customer - end + attr_reader :customer - sig { params(_: Orb::Models::Customer).returns(Orb::Models::Customer) } - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo # The discount intervals for this subscription sorted by the start_date. sig do @@ -146,204 +96,112 @@ module Orb ] ) end - def discount_intervals - end - - sig do - params( - _: 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 + attr_accessor :discount_intervals # The date Orb stops billing for this subscription. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(T::Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule]) } - def fixed_fee_quantity_schedule - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule]) - .returns(T::Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule]) - end - def fixed_fee_quantity_schedule=(_) - end + attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval]) } - def maximum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval]) - .returns(T::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval]) - end - def maximum_intervals=(_) - end + attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval]) } - def minimum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval]) - .returns(T::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval]) - end - def minimum_intervals=(_) - end + attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription # invoices as the date that they are due. A value of `0` here represents that the # invoice is due on issue, whereas a value of `30` represents that the customer # has a month to pay the invoice. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # subscribed to by a customer. Plans define the billing behavior of the # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). sig { returns(Orb::Models::Plan) } - def plan - end + attr_reader :plan - sig { params(_: Orb::Models::Plan).returns(Orb::Models::Plan) } - def plan=(_) - end + sig { params(plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash)).void } + attr_writer :plan # The price intervals for this subscription. sig { returns(T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval]) } - def price_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval]) - .returns(T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval]) - end - def price_intervals=(_) - end + attr_accessor :price_intervals sig { returns(T.nilable(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon)) } - def redeemed_coupon - end + attr_reader :redeemed_coupon sig do - params(_: T.nilable(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon)) - .returns(T.nilable(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon)) - end - def redeemed_coupon=(_) + params( + redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon, Orb::Util::AnyHash)) + ) + .void end + attr_writer :redeemed_coupon # The date Orb starts billing for this subscription. sig { returns(Time) } - def start_date - end + attr_accessor :start_date - sig { params(_: Time).returns(Time) } - def start_date=(_) - end - - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Orb::Models::SubscriptionCreateResponse::TrialInfo) } - def trial_info - end + attr_reader :trial_info - sig do - params(_: Orb::Models::SubscriptionCreateResponse::TrialInfo) - .returns(Orb::Models::SubscriptionCreateResponse::TrialInfo) - end - def trial_info=(_) - end + sig { params(trial_info: T.any(Orb::Models::SubscriptionCreateResponse::TrialInfo, Orb::Util::AnyHash)).void } + attr_writer :trial_info sig do params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval], + adjustment_intervals: T::Array[T.any(Orb::Models::SubscriptionCreateResponse::AdjustmentInterval, Orb::Util::AnyHash)], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: T.any(Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration, Orb::Util::AnyHash), 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, + customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash), default_invoice_memo: T.nilable(String), discount_intervals: T::Array[ T.any( Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, + Orb::Util::AnyHash, 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], + fixed_fee_quantity_schedule: T::Array[T.any(Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule, Orb::Util::AnyHash)], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval], + maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionCreateResponse::MaximumInterval, Orb::Util::AnyHash)], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval], + minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionCreateResponse::MinimumInterval, Orb::Util::AnyHash)], net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon), + plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash), + price_intervals: T::Array[T.any(Orb::Models::SubscriptionCreateResponse::PriceInterval, Orb::Util::AnyHash)], + redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon, Orb::Util::AnyHash)), start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionCreateResponse::TrialInfo + status: Orb::Models::SubscriptionCreateResponse::Status::OrSymbol, + trial_info: T.any(Orb::Models::SubscriptionCreateResponse::TrialInfo, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -409,7 +267,7 @@ module Orb price_intervals: T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval], redeemed_coupon: T.nilable(Orb::Models::SubscriptionCreateResponse::RedeemedCoupon), start_date: Time, - status: Symbol, + status: Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol, trial_info: Orb::Models::SubscriptionCreateResponse::TrialInfo } ) @@ -419,12 +277,7 @@ module Orb class AdjustmentInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig do returns( @@ -437,64 +290,26 @@ module Orb ) ) end - def adjustment - end - - 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 - ) - ) - .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 + attr_accessor :adjustment # The price interval IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the adjustment interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the adjustment interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( id: String, adjustment: T.any( Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, @@ -530,84 +345,50 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union - Variants = type_template(:out) do - { - fixed: 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 + Variants = + type_template(:out) do + { + fixed: 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 class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -652,67 +433,32 @@ module Orb class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -757,67 +503,32 @@ module Orb class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -862,76 +573,36 @@ module Orb class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -979,67 +650,32 @@ module Orb class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1081,6 +717,17 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [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 variants + end + end end end @@ -1090,33 +737,18 @@ module Orb # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def day - end - - sig { params(_: Integer).returns(Integer) } - def day=(_) - end + attr_accessor :day # The month on which the billing cycle is anchored (e.g. a quarterly price # anchored in February would have cycles starting February, May, August, and # November). sig { returns(T.nilable(Integer)) } - def month - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def month=(_) - end + attr_accessor :month # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). sig { returns(T.nilable(Integer)) } - def year - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def year=(_) - end + attr_accessor :year sig do params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) @@ -1129,72 +761,43 @@ module Orb end end - class DiscountInterval < Orb::Union - abstract! + module DiscountInterval + extend Orb::Union - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval + ) + } + end class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1237,57 +840,27 @@ module Orb class PercentageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # Only available if discount_type is `percentage`.This is a number between 0 # and 1. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1330,57 +903,27 @@ module Orb class UsageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -1419,40 +962,31 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def variants + end + end end class FixedFeeQuantitySchedule < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) @@ -1471,49 +1005,24 @@ module Orb class MaximumInterval < Orb::BaseModel # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the maximum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The maximum amount to charge in a given billing period for the price intervals # this transform applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The start date of the maximum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1547,49 +1056,24 @@ module Orb class MinimumInterval < Orb::BaseModel # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the minimum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The minimum amount to charge in a given billing period for the price intervals # this minimum applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The start date of the minimum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1622,62 +1106,32 @@ module Orb class PriceInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The day of the month that Orb bills for this price sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is exactly the end of the billing period. Set to null if # this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # The end date of the price interval. This is the date that Orb stops billing for # this price. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter to apply to usage queries. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # The fixed fee quantity transitions for this price interval. This is only # relevant for fixed fees. @@ -1686,19 +1140,7 @@ module Orb T.nilable(T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition]) ) end - def fixed_fee_quantity_transitions - end - - sig do - params( - _: 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 + attr_accessor :fixed_fee_quantity_transitions # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -1744,97 +1186,17 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .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 + attr_accessor :price # The start date of the price interval. This is the date that Orb starts billing # for this price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids # The Price Interval resource represents a period of time for which a price will # bill on a subscription. A subscription’s price intervals define its billing @@ -1847,9 +1209,17 @@ module Orb current_billing_period_start_date: T.nilable(Time), end_date: T.nilable(Time), filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition]), + fixed_fee_quantity_transitions: T.nilable( + T::Array[ + T.any( + Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Util::AnyHash + ) + ] + ), price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -1948,28 +1318,13 @@ module Orb class FixedFeeQuantityTransition < Orb::BaseModel sig { returns(Time) } - def effective_date - end - - sig { params(_: Time).returns(Time) } - def effective_date=(_) - end + attr_accessor :effective_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Integer) } - def quantity - end - - sig { params(_: Integer).returns(Integer) } - def quantity=(_) - end + attr_accessor :quantity sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } def self.new(effective_date:, price_id:, quantity:) @@ -1983,28 +1338,13 @@ module Orb class RedeemedCoupon < Orb::BaseModel sig { returns(String) } - def coupon_id - end - - sig { params(_: String).returns(String) } - def coupon_id=(_) - end + attr_accessor :coupon_id sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) @@ -2017,24 +1357,26 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionCreateResponse::Status) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ACTIVE = T.let(:active, Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol) + ENDED = T.let(:ended, Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol) + UPCOMING = T.let(:upcoming, Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol) - ACTIVE = :active - ENDED = :ended - UPCOMING = :upcoming + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionCreateResponse::Status::TaggedSymbol]) } + def values + end + end end class TrialInfo < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } def self.new(end_date:) diff --git a/rbi/lib/orb/models/subscription_fetch_costs_params.rbi b/rbi/lib/orb/models/subscription_fetch_costs_params.rbi index 525c9289..e7002313 100644 --- a/rbi/lib/orb/models/subscription_fetch_costs_params.rbi +++ b/rbi/lib/orb/models/subscription_fetch_costs_params.rbi @@ -8,50 +8,30 @@ module Orb # The currency or custom pricing unit to use. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # Costs returned are exclusive of `timeframe_end`. sig { returns(T.nilable(Time)) } - def timeframe_end - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end # Costs returned are inclusive of `timeframe_start`. sig { returns(T.nilable(Time)) } - def timeframe_start - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # Controls whether Orb returns cumulative costs since the start of the billing # period, or incremental day-by-day costs. If your customer has minimums or # discounts, it's strongly recommended that you use the default cumulative # behavior. - sig { returns(T.nilable(Symbol)) } - def view_mode - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def view_mode=(_) - end + sig { returns(T.nilable(Orb::Models::SubscriptionFetchCostsParams::ViewMode::OrSymbol)) } + attr_accessor :view_mode sig do params( currency: T.nilable(String), timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - view_mode: T.nilable(Symbol), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + view_mode: T.nilable(Orb::Models::SubscriptionFetchCostsParams::ViewMode::OrSymbol), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -65,7 +45,7 @@ module Orb currency: T.nilable(String), timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - view_mode: T.nilable(Symbol), + view_mode: T.nilable(Orb::Models::SubscriptionFetchCostsParams::ViewMode::OrSymbol), request_options: Orb::RequestOptions } ) @@ -77,13 +57,21 @@ module Orb # period, or incremental day-by-day costs. If your customer has minimums or # discounts, it's strongly recommended that you use the default cumulative # behavior. - class ViewMode < Orb::Enum - abstract! + module ViewMode + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionFetchCostsParams::ViewMode) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionFetchCostsParams::ViewMode::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + PERIODIC = T.let(:periodic, Orb::Models::SubscriptionFetchCostsParams::ViewMode::TaggedSymbol) + CUMULATIVE = T.let(:cumulative, Orb::Models::SubscriptionFetchCostsParams::ViewMode::TaggedSymbol) - PERIODIC = :periodic - CUMULATIVE = :cumulative + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionFetchCostsParams::ViewMode::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/subscription_fetch_costs_response.rbi b/rbi/lib/orb/models/subscription_fetch_costs_response.rbi index bd02279b..e3cf1df1 100644 --- a/rbi/lib/orb/models/subscription_fetch_costs_response.rbi +++ b/rbi/lib/orb/models/subscription_fetch_costs_response.rbi @@ -4,17 +4,12 @@ module Orb module Models class SubscriptionFetchCostsResponse < Orb::BaseModel sig { returns(T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data]) } - def data - end + attr_accessor :data sig do - params(_: T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data]) - .returns(T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data]) - end - def data=(_) + params(data: T::Array[T.any(Orb::Models::SubscriptionFetchCostsResponse::Data, Orb::Util::AnyHash)]) + .returns(T.attached_class) end - - sig { params(data: T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data]).returns(T.attached_class) } def self.new(data:) end @@ -24,53 +19,25 @@ module Orb class Data < Orb::BaseModel sig { returns(T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost]) } - def per_price_costs - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost]) - .returns(T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost]) - end - def per_price_costs=(_) - end + attr_accessor :per_price_costs # Total costs for the timeframe, excluding any minimums and discounts. sig { returns(String) } - def subtotal - end - - sig { params(_: String).returns(String) } - def subtotal=(_) - end + attr_accessor :subtotal sig { returns(Time) } - def timeframe_end - end - - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # Total costs for the timeframe, including any minimums and discounts. sig { returns(String) } - def total - end - - sig { params(_: String).returns(String) } - def total=(_) - end + attr_accessor :total sig do params( - per_price_costs: T::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost], + per_price_costs: T::Array[T.any(Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost, Orb::Util::AnyHash)], subtotal: String, timeframe_end: Time, timeframe_start: Time, @@ -132,118 +99,29 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .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 + attr_accessor :price # The price the cost is associated with sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id # Price's contributions for the timeframe, excluding any minimums and discounts. sig { returns(String) } - def subtotal - end - - sig { params(_: String).returns(String) } - def subtotal=(_) - end + attr_accessor :subtotal # Price's contributions for the timeframe, including minimums and discounts. sig { returns(String) } - def total - end - - sig { params(_: String).returns(String) } - def total=(_) - end + attr_accessor :total # The price's quantity for the timeframe sig { returns(T.nilable(Float)) } - def quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def quantity=(_) - end + attr_accessor :quantity sig do params( price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, diff --git a/rbi/lib/orb/models/subscription_fetch_params.rbi b/rbi/lib/orb/models/subscription_fetch_params.rbi index 50a9ce0a..b0d4d44d 100644 --- a/rbi/lib/orb/models/subscription_fetch_params.rbi +++ b/rbi/lib/orb/models/subscription_fetch_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi b/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi index 927d70f0..ec541c8c 100644 --- a/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi +++ b/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi @@ -9,53 +9,26 @@ module Orb # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end + attr_reader :limit - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + sig { params(limit: Integer).void } + attr_writer :limit sig { returns(T.nilable(Time)) } - def start_date_gt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def start_date_gt=(_) - end + attr_accessor :start_date_gt sig { returns(T.nilable(Time)) } - def start_date_gte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def start_date_gte=(_) - end + attr_accessor :start_date_gte sig { returns(T.nilable(Time)) } - def start_date_lt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def start_date_lt=(_) - end + attr_accessor :start_date_lt sig { returns(T.nilable(Time)) } - def start_date_lte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def start_date_lte=(_) - end + attr_accessor :start_date_lte sig do params( @@ -65,7 +38,7 @@ module Orb start_date_gte: T.nilable(Time), start_date_lt: T.nilable(Time), start_date_lte: T.nilable(Time), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi b/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi index a76df9ce..ecf10b6f 100644 --- a/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi +++ b/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi @@ -4,45 +4,25 @@ module Orb module Models class SubscriptionFetchScheduleResponse < Orb::BaseModel sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(Orb::Models::SubscriptionFetchScheduleResponse::Plan) } - def plan - end + attr_reader :plan - sig do - params(_: Orb::Models::SubscriptionFetchScheduleResponse::Plan) - .returns(Orb::Models::SubscriptionFetchScheduleResponse::Plan) - end - def plan=(_) - end + sig { params(plan: T.any(Orb::Models::SubscriptionFetchScheduleResponse::Plan, Orb::Util::AnyHash)).void } + attr_writer :plan sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( created_at: Time, end_date: T.nilable(Time), - plan: Orb::Models::SubscriptionFetchScheduleResponse::Plan, + plan: T.any(Orb::Models::SubscriptionFetchScheduleResponse::Plan, Orb::Util::AnyHash), start_date: Time ) .returns(T.attached_class) @@ -66,31 +46,16 @@ module Orb class Plan < Orb::BaseModel sig { returns(T.nilable(String)) } - def id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def id=(_) - end + attr_accessor :id # An optional user-defined ID for this plan resource, used throughout the system # as an alias for this Plan. Use this field to identify a plan by an existing # identifier in your system. sig { returns(T.nilable(String)) } - def external_plan_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_plan_id=(_) - end + attr_accessor :external_plan_id sig { returns(T.nilable(String)) } - def name - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def name=(_) - end + attr_accessor :name sig do params(id: T.nilable(String), external_plan_id: T.nilable(String), name: T.nilable(String)) diff --git a/rbi/lib/orb/models/subscription_fetch_usage_params.rbi b/rbi/lib/orb/models/subscription_fetch_usage_params.rbi index 85ed27ed..cb351eab 100644 --- a/rbi/lib/orb/models/subscription_fetch_usage_params.rbi +++ b/rbi/lib/orb/models/subscription_fetch_usage_params.rbi @@ -10,106 +10,56 @@ module Orb # single billable metric. Note that both `group_by` and `billable_metric_id` must # be specified together. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id sig { returns(T.nilable(String)) } - def first_dimension_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def first_dimension_key=(_) - end + attr_accessor :first_dimension_key sig { returns(T.nilable(String)) } - def first_dimension_value - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def first_dimension_value=(_) - end + attr_accessor :first_dimension_value # This determines the windowing of usage reporting. - sig { returns(T.nilable(Symbol)) } - def granularity - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def granularity=(_) - end + sig { returns(T.nilable(Orb::Models::SubscriptionFetchUsageParams::Granularity::OrSymbol)) } + attr_accessor :granularity # Groups per-price usage by the key provided. sig { returns(T.nilable(String)) } - def group_by - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def group_by=(_) - end + attr_accessor :group_by sig { returns(T.nilable(String)) } - def second_dimension_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def second_dimension_key=(_) - end + attr_accessor :second_dimension_key sig { returns(T.nilable(String)) } - def second_dimension_value - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def second_dimension_value=(_) - end + attr_accessor :second_dimension_value # Usage returned is exclusive of `timeframe_end`. sig { returns(T.nilable(Time)) } - def timeframe_end - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end # Usage returned is inclusive of `timeframe_start`. sig { returns(T.nilable(Time)) } - def timeframe_start - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start # Controls whether Orb returns cumulative usage since the start of the billing # period, or incremental day-by-day usage. If your customer has minimums or # discounts, it's strongly recommended that you use the default cumulative # behavior. - sig { returns(T.nilable(Symbol)) } - def view_mode - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def view_mode=(_) - end + sig { returns(T.nilable(Orb::Models::SubscriptionFetchUsageParams::ViewMode::OrSymbol)) } + attr_accessor :view_mode sig do params( billable_metric_id: T.nilable(String), first_dimension_key: T.nilable(String), first_dimension_value: T.nilable(String), - granularity: T.nilable(Symbol), + granularity: T.nilable(Orb::Models::SubscriptionFetchUsageParams::Granularity::OrSymbol), 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: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + view_mode: T.nilable(Orb::Models::SubscriptionFetchUsageParams::ViewMode::OrSymbol), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -135,13 +85,13 @@ module Orb billable_metric_id: T.nilable(String), first_dimension_key: T.nilable(String), first_dimension_value: T.nilable(String), - granularity: T.nilable(Symbol), + granularity: T.nilable(Orb::Models::SubscriptionFetchUsageParams::Granularity::OrSymbol), 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), + view_mode: T.nilable(Orb::Models::SubscriptionFetchUsageParams::ViewMode::OrSymbol), request_options: Orb::RequestOptions } ) @@ -150,25 +100,41 @@ module Orb end # This determines the windowing of usage reporting. - class Granularity < Orb::Enum - abstract! + module Granularity + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionFetchUsageParams::Granularity) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionFetchUsageParams::Granularity::TaggedSymbol) } - DAY = :day + DAY = T.let(:day, Orb::Models::SubscriptionFetchUsageParams::Granularity::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionFetchUsageParams::Granularity::TaggedSymbol]) } + def values + end + end end # Controls whether Orb returns cumulative usage since the start of the billing # period, or incremental day-by-day usage. If your customer has minimums or # discounts, it's strongly recommended that you use the default cumulative # behavior. - class ViewMode < Orb::Enum - abstract! + module ViewMode + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionFetchUsageParams::ViewMode) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionFetchUsageParams::ViewMode::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + PERIODIC = T.let(:periodic, Orb::Models::SubscriptionFetchUsageParams::ViewMode::TaggedSymbol) + CUMULATIVE = T.let(:cumulative, Orb::Models::SubscriptionFetchUsageParams::ViewMode::TaggedSymbol) - PERIODIC = :periodic - CUMULATIVE = :cumulative + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionFetchUsageParams::ViewMode::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/subscription_list_params.rbi b/rbi/lib/orb/models/subscription_list_params.rbi index 684c821b..f9bd2dc7 100644 --- a/rbi/lib/orb/models/subscription_list_params.rbi +++ b/rbi/lib/orb/models/subscription_list_params.rbi @@ -7,79 +7,37 @@ module Orb include Orb::RequestParameters sig { returns(T.nilable(Time)) } - def created_at_gt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gt=(_) - end + attr_accessor :created_at_gt sig { returns(T.nilable(Time)) } - def created_at_gte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_gte=(_) - end + attr_accessor :created_at_gte sig { returns(T.nilable(Time)) } - def created_at_lt - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lt=(_) - end + attr_accessor :created_at_lt sig { returns(T.nilable(Time)) } - def created_at_lte - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def created_at_lte=(_) - end + attr_accessor :created_at_lte # Cursor for pagination. This can be populated by the `next_cursor` value returned # from the initial request. sig { returns(T.nilable(String)) } - def cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def cursor=(_) - end + attr_accessor :cursor sig { returns(T.nilable(T::Array[String])) } - def customer_id - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def customer_id=(_) - end + attr_accessor :customer_id sig { returns(T.nilable(T::Array[String])) } - def external_customer_id - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def external_customer_id=(_) - end + attr_accessor :external_customer_id # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } - def limit - end - - sig { params(_: Integer).returns(Integer) } - def limit=(_) - end + attr_reader :limit - sig { returns(T.nilable(Symbol)) } - def status - end + sig { params(limit: Integer).void } + attr_writer :limit - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def status=(_) - end + sig { returns(T.nilable(Orb::Models::SubscriptionListParams::Status::OrSymbol)) } + attr_accessor :status sig do params( @@ -91,8 +49,8 @@ module Orb customer_id: T.nilable(T::Array[String]), external_customer_id: T.nilable(T::Array[String]), limit: Integer, - status: T.nilable(Symbol), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + status: T.nilable(Orb::Models::SubscriptionListParams::Status::OrSymbol), + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -122,7 +80,7 @@ module Orb customer_id: T.nilable(T::Array[String]), external_customer_id: T.nilable(T::Array[String]), limit: Integer, - status: T.nilable(Symbol), + status: T.nilable(Orb::Models::SubscriptionListParams::Status::OrSymbol), request_options: Orb::RequestOptions } ) @@ -130,14 +88,21 @@ module Orb def to_hash end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionListParams::Status) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::SubscriptionListParams::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ACTIVE = T.let(:active, Orb::Models::SubscriptionListParams::Status::TaggedSymbol) + ENDED = T.let(:ended, Orb::Models::SubscriptionListParams::Status::TaggedSymbol) + UPCOMING = T.let(:upcoming, Orb::Models::SubscriptionListParams::Status::TaggedSymbol) - ACTIVE = :active - ENDED = :ended - UPCOMING = :upcoming + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionListParams::Status::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/subscription_price_intervals_params.rbi b/rbi/lib/orb/models/subscription_price_intervals_params.rbi index ac2132e7..32965c60 100644 --- a/rbi/lib/orb/models/subscription_price_intervals_params.rbi +++ b/rbi/lib/orb/models/subscription_price_intervals_params.rbi @@ -8,71 +8,56 @@ module Orb # A list of price intervals to add to the subscription. sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add])) } - def add - end + attr_reader :add - sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add]) - .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add]) - end - def add=(_) - end + sig { params(add: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::Add, Orb::Util::AnyHash)]).void } + attr_writer :add # A list of adjustments to add to the subscription. sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment])) } - def add_adjustments - end + attr_reader :add_adjustments sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment]) - .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment]) - end - def add_adjustments=(_) + params( + add_adjustments: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment, Orb::Util::AnyHash)] + ) + .void end + attr_writer :add_adjustments # If false, this request will fail if it would void an issued invoice or create a # credit note. Consider using this as a safety mechanism if you do not expect # existing invoices to be changed. sig { returns(T.nilable(T::Boolean)) } - def allow_invoice_credit_or_void - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def allow_invoice_credit_or_void=(_) - end + attr_accessor :allow_invoice_credit_or_void # A list of price intervals to edit on the subscription. sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit])) } - def edit - end + attr_reader :edit - sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit]) - .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit]) - end - def edit=(_) - end + sig { params(edit: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::Edit, Orb::Util::AnyHash)]).void } + attr_writer :edit # A list of adjustments to edit on the subscription. sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment])) } - def edit_adjustments - end + attr_reader :edit_adjustments sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment]) - .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment]) - end - def edit_adjustments=(_) + params( + edit_adjustments: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment, Orb::Util::AnyHash)] + ) + .void end + attr_writer :edit_adjustments sig do params( - add: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add], - add_adjustments: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], + add: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::Add, Orb::Util::AnyHash)], + add_adjustments: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment, Orb::Util::AnyHash)], 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: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + edit: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::Edit, Orb::Util::AnyHash)], + edit_adjustments: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment, Orb::Util::AnyHash)], + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -105,25 +90,20 @@ module Orb class Add < Orb::BaseModel # The start date of the price interval. This is the date that the price will start # billing on the subscription. - sig { returns(T.any(Time, Symbol)) } - def start_date - end - - sig { params(_: T.any(Time, Symbol)).returns(T.any(Time, Symbol)) } - def start_date=(_) - end + sig { returns(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)) } + attr_accessor :start_date # The definition of a new allocation price to create and add to the subscription. sig { returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice)) } - def allocation_price - end + attr_reader :allocation_price sig do - params(_: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice)) - .returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice)) - end - def allocation_price=(_) + params( + allocation_price: T.nilable(T.any(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice, Orb::Util::AnyHash)) + ) + .void end + attr_writer :allocation_price # A list of discounts to initialize on the price interval. sig do @@ -139,66 +119,23 @@ module Orb ) ) end - def discounts - end - - 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 - ) - ] - ) - ) - .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 + attr_accessor :discounts # The end date of the price interval. This is the date that the price will stop # billing on the subscription. - sig { returns(T.nilable(T.any(Time, Symbol))) } - def end_date - end - - sig { params(_: T.nilable(T.any(Time, Symbol))).returns(T.nilable(T.any(Time, Symbol))) } - def end_date=(_) - end + sig { returns(T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol))) } + attr_accessor :end_date # The external price id of the price to add to the subscription. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # An additional filter to apply to usage queries. This filter must be expressed as # a boolean # [computed property](/extensibility/advanced-metrics#computed-properties). If # null, usage queries will not include any additional filter. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # A list of fixed fee quantity transitions to initialize on the price interval. sig do @@ -206,39 +143,17 @@ module Orb T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]) ) end - def fixed_fee_quantity_transitions - end - - sig do - params( - _: 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 + attr_accessor :fixed_fee_quantity_transitions # The maximum amount that will be billed for this price interval for a given # billing period. sig { returns(T.nilable(Float)) } - def maximum_amount - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The minimum amount that will be billed for this price interval for a given # billing period. sig { returns(T.nilable(Float)) } - def minimum_amount - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The definition of a new price to create and add to the subscription. sig do @@ -277,90 +192,11 @@ module Orb ) ) end - def price - end - - sig do - params( - _: 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 + attr_accessor :price # The id of the price to add to the subscription. sig { returns(T.nilable(String)) } - def price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def price_id=(_) - end + attr_accessor :price_id # A list of customer IDs whose usage events will be aggregated and billed under # this subscription. By default, a subscription only considers usage events @@ -369,35 +205,34 @@ module Orb # only. Provided usage_customer_ids must be either the customer for this # subscription itself, or any of that customer's children. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids sig do params( - start_date: T.any(Time, Symbol), - allocation_price: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice), + start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol), + allocation_price: T.nilable(T.any(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice, Orb::Util::AnyHash)), discounts: T.nilable( T::Array[ T.any( Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, + Orb::Util::AnyHash, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams ) ] ), - end_date: T.nilable(T.any(Time, Symbol)), + end_date: T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)), external_price_id: T.nilable(String), filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]), + fixed_fee_quantity_transitions: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition, Orb::Util::AnyHash)] + ), maximum_amount: T.nilable(Float), minimum_amount: T.nilable(Float), price: T.nilable( T.any( Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice, + Orb::Util::AnyHash, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice, @@ -452,7 +287,7 @@ module Orb override .returns( { - start_date: T.any(Time, Symbol), + start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol), allocation_price: T.nilable(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice), discounts: T.nilable( T::Array[ @@ -463,7 +298,7 @@ module Orb ) ] ), - end_date: T.nilable(T.any(Time, Symbol)), + end_date: T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)), external_price_id: T.nilable(String), filter: T.nilable(String), fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]), @@ -511,54 +346,45 @@ module Orb # The start date of the price interval. This is the date that the price will start # billing on the subscription. - class StartDate < Orb::Union - abstract! + module StartDate + extend Orb::Union + + Variants = type_template(:out) { {fixed: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)} } - Variants = type_template(:out) { {fixed: T.any(Time, Symbol)} } + class << self + sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::OrSymbol]) } + def variants + end + end end class AllocationPrice < Orb::BaseModel # An amount of the currency to allocate to the customer at the specified cadence. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The cadence at which to allocate the amount to the customer. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::OrSymbol) } + attr_accessor :cadence # An ISO 4217 currency string or a custom pricing unit identifier in which to bill # this price. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # Whether the allocated amount should expire at the end of the cadence or roll # over to the next period. sig { returns(T::Boolean) } - def expires_at_end_of_cadence - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def expires_at_end_of_cadence=(_) - end + attr_accessor :expires_at_end_of_cadence # The definition of a new allocation price to create and add to the subscription. sig do - params(amount: String, cadence: Symbol, currency: String, expires_at_end_of_cadence: T::Boolean) + params( + amount: String, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::OrSymbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + ) .returns(T.attached_class) end def self.new(amount:, cadence:, currency:, expires_at_end_of_cadence:) @@ -566,61 +392,86 @@ module Orb sig do override - .returns({ - amount: String, - cadence: Symbol, - currency: String, - expires_at_end_of_cadence: T::Boolean - }) + .returns( + { + amount: String, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::OrSymbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + } + ) end def to_hash end # The cadence at which to allocate the amount to the customer. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol) } + + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol + ) + ANNUAL = + T.let(:annual, Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol) + CUSTOM = + T.let(:custom, Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end end - class Discount < Orb::Union - abstract! + module Discount + extend Orb::Union - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, - Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams + ) + } + end class AmountDiscountCreationParams < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(Float) } - def amount_discount - end - - sig { params(_: Float).returns(Float) } - def amount_discount=(_) - end + attr_accessor :amount_discount sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type sig { params(amount_discount: Float, discount_type: Symbol).returns(T.attached_class) } def self.new(amount_discount:, discount_type: :amount) @@ -633,22 +484,12 @@ module Orb class PercentageDiscountCreationParams < Orb::BaseModel sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # Only available if discount_type is `percentage`. This is a number between 0 # and 1. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount sig { params(percentage_discount: Float, discount_type: Symbol).returns(T.attached_class) } def self.new(percentage_discount:, discount_type: :percentage) @@ -661,22 +502,12 @@ module Orb class UsageDiscountCreationParams < Orb::BaseModel sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # Only available if discount_type is `usage`. Number of usage units that this # discount is for. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig { params(usage_discount: Float, discount_type: Symbol).returns(T.attached_class) } def self.new(usage_discount:, discount_type: :usage) @@ -686,34 +517,41 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams] + ) + end + def variants + end + end end # The end date of the price interval. This is the date that the price will stop # billing on the subscription. - class EndDate < Orb::Union - abstract! + module EndDate + extend Orb::Union + + Variants = type_template(:out) { {fixed: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)} } - Variants = type_template(:out) { {fixed: T.any(Time, Symbol)} } + class << self + sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::OrSymbol]) } + def variants + end + end end class FixedFeeQuantityTransition < Orb::BaseModel # The date that the fixed fee quantity transition should take effect. sig { returns(Time) } - def effective_date - end - - sig { params(_: Time).returns(Time) } - def effective_date=(_) - end + attr_accessor :effective_date # The quantity of the fixed fee quantity transition. sig { returns(Integer) } - def quantity - end - - sig { params(_: Integer).returns(Integer) } - def quantity=(_) - end + attr_accessor :quantity sig { params(effective_date: Time, quantity: Integer).returns(T.attached_class) } def self.new(effective_date:, quantity:) @@ -725,119 +563,92 @@ module Orb end # The definition of a new price to create and add to the subscription. - class Price < Orb::Union - abstract! + module Price + extend Orb::Union - Variants = type_template(:out) do - { - fixed: 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 + Variants = + type_template(:out) do + { + fixed: 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 class NewFloatingUnitPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig) } - def unit_config - end + attr_reader :unit_config sig do - params(_: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig) - .returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig) - end - def unit_config=(_) + params( + unit_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :unit_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -848,60 +659,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -912,56 +700,54 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, - unit_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig, + unit_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig, + Orb::Util::AnyHash + ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -991,7 +777,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -1017,28 +803,66 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class UnitConfig < Orb::BaseModel # Rate per unit of usage sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig { params(unit_amount: String).returns(T.attached_class) } def self.new(unit_amount:) @@ -1052,161 +876,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig) } - def package_config - end + attr_reader :package_config sig do params( - _: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig + package_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig, + Orb::Util::AnyHash + ) ) - .returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig) - end - def package_config=(_) + .void end + attr_writer :package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -1217,60 +1089,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -1281,56 +1130,54 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, - package_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig, + package_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig, + Orb::Util::AnyHash + ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -1360,7 +1207,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -1386,38 +1233,71 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - end + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence::TaggedSymbol + ) + end - class PackageConfig < Orb::BaseModel - # A currency amount to rate usage by - sig { returns(String) } - def package_amount - end + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence::TaggedSymbol + ) - sig { params(_: String).returns(String) } - def package_amount=(_) - end + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::Cadence::TaggedSymbol] + ) + end + def values + end + end + end + + class PackageConfig < Orb::BaseModel + # A currency amount to rate usage by + sig { returns(String) } + attr_accessor :package_amount # An integer amount to represent package size. For example, 1000 here would divide # usage by 1000 before multiplying by package_amount in rating sig { returns(Integer) } - def package_size - end - - sig { params(_: Integer).returns(Integer) } - def package_size=(_) - end + attr_accessor :package_size sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } def self.new(package_amount:, package_size:) @@ -1431,159 +1311,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingMatrixPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig) } - def matrix_config - end + attr_reader :matrix_config sig do - params(_: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig) - .returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig) - end - def matrix_config=(_) + params( + matrix_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :matrix_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -1594,60 +1524,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -1658,56 +1565,54 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence::OrSymbol, currency: String, item_id: String, - matrix_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig, + matrix_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig, + Orb::Util::AnyHash + ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -1737,7 +1642,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence::OrSymbol, currency: String, item_id: String, matrix_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig, @@ -1763,37 +1668,70 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class MatrixConfig < Orb::BaseModel # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } - def default_unit_amount - end - - sig { params(_: String).returns(String) } - def default_unit_amount=(_) - end + attr_accessor :default_unit_amount # One or two event property values to evaluate matrix groups by sig { returns(T::Array[T.nilable(String)]) } - def dimensions - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimensions=(_) - end + attr_accessor :dimensions # Matrix values for specified matrix grouping keys sig do @@ -1803,30 +1741,17 @@ module Orb ] ) 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 - ] - ) - end - def matrix_values=(_) - end + attr_accessor :matrix_values sig do params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], matrix_values: T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -1854,21 +1779,11 @@ module Orb # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values # Unit price for the specified dimension_values sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -1888,167 +1803,213 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingMatrixWithAllocationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig do returns( Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig ) end - def matrix_with_allocation_config - end + attr_reader :matrix_with_allocation_config sig do params( - _: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig - ) - .returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig + matrix_with_allocation_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig, + Orb::Util::AnyHash ) + ) + .void end - def matrix_with_allocation_config=(_) - end + attr_writer :matrix_with_allocation_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -2059,60 +2020,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -2123,56 +2061,54 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence::OrSymbol, currency: String, item_id: String, - matrix_with_allocation_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig, + matrix_with_allocation_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig, + Orb::Util::AnyHash + ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -2202,7 +2138,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence::OrSymbol, currency: String, item_id: String, matrix_with_allocation_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig, @@ -2228,46 +2164,78 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class MatrixWithAllocationConfig < Orb::BaseModel # Allocation to be used to calculate the price sig { returns(Float) } - def allocation - end - - sig { params(_: Float).returns(Float) } - def allocation=(_) - end + attr_accessor :allocation # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } - def default_unit_amount - end - - sig { params(_: String).returns(String) } - def default_unit_amount=(_) - end + attr_accessor :default_unit_amount # One or two event property values to evaluate matrix groups by sig { returns(T::Array[T.nilable(String)]) } - def dimensions - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimensions=(_) - end + attr_accessor :dimensions # Matrix values for specified matrix grouping keys sig do @@ -2277,23 +2245,7 @@ module Orb ] ) 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 - ] - ) - end - def matrix_values=(_) - end + attr_accessor :matrix_values sig do params( @@ -2301,7 +2253,10 @@ module Orb default_unit_amount: String, dimensions: T::Array[T.nilable(String)], matrix_values: T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -2330,21 +2285,11 @@ module Orb # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values # Unit price for the specified dimension_values sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -2364,159 +2309,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingTieredPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig) } - def tiered_config - end + attr_reader :tiered_config sig do - params(_: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig) - .returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig) - end - def tiered_config=(_) + params( + tiered_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :tiered_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -2527,60 +2522,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -2591,56 +2563,54 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, - tiered_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig, + tiered_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig, + Orb::Util::AnyHash + ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -2670,7 +2640,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -2696,17 +2666,60 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class TieredConfig < Orb::BaseModel @@ -2716,23 +2729,16 @@ module Orb T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] ) end - def tiers - end + attr_accessor :tiers sig do params( - _: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] - ) - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] + tiers: T::Array[ + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier, + Orb::Util::AnyHash ) - end - def tiers=(_) - end - - sig do - params( - tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] + ] ) .returns(T.attached_class) end @@ -2753,30 +2759,15 @@ module Orb class Tier < Orb::BaseModel # Inclusive tier starting value sig { returns(Float) } - def first_unit - end - - sig { params(_: Float).returns(Float) } - def first_unit=(_) - end + attr_accessor :first_unit # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Exclusive tier ending value. If null, this is treated as the last tier sig { returns(T.nilable(Float)) } - def last_unit - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def last_unit=(_) - end + attr_accessor :last_unit sig do params( @@ -2799,167 +2790,213 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } - def self.new(duration:, duration_unit:) - end - - sig { override.returns({duration: Integer, duration_unit: Symbol}) } - def to_hash + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end + def self.new(duration:, duration_unit:) + end + + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingTieredBpsPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig ) end - def tiered_bps_config - end + attr_reader :tiered_bps_config sig do params( - _: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig - ) - .returns( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig + tiered_bps_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig, + Orb::Util::AnyHash ) + ) + .void end - def tiered_bps_config=(_) - end + attr_writer :tiered_bps_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -2970,60 +3007,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -3034,56 +3048,54 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, - tiered_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig, + tiered_bps_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig, + Orb::Util::AnyHash + ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -3113,7 +3125,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -3139,17 +3151,64 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class TieredBpsConfig < Orb::BaseModel @@ -3162,28 +3221,15 @@ module Orb ] ) 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 - ] - ) - end - def tiers=(_) - end + attr_accessor :tiers sig do params( tiers: T::Array[ - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -3207,39 +3253,19 @@ module Orb class Tier < Orb::BaseModel # Per-event basis point rate sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Inclusive tier starting value sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # Exclusive tier ending value sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # Per unit maximum to charge sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params( @@ -3272,159 +3298,205 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingBpsPrice < Orb::BaseModel sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig) } - def bps_config - end + attr_reader :bps_config sig do - params(_: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig) - .returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig) - end - def bps_config=(_) + params( + bps_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :bps_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence::OrSymbol) } + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -3435,60 +3507,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -3499,56 +3548,54 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig, - cadence: Symbol, + bps_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence::OrSymbol, currency: String, item_id: String, 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -3579,7 +3626,7 @@ module Orb .returns( { bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -3606,21 +3653,11 @@ module Orb class BpsConfig < Orb::BaseModel # Basis point take rate per event sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Optional currency amount maximum to cap spend per event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } def self.new(bps:, per_unit_maximum: nil) @@ -3632,177 +3669,268 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingBulkBpsPrice < Orb::BaseModel sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig) } - def bulk_bps_config - end + attr_reader :bulk_bps_config sig do params( - _: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig + bulk_bps_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig, + Orb::Util::AnyHash + ) ) - .returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig) - end - def bulk_bps_config=(_) + .void end + attr_writer :bulk_bps_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -3813,60 +3941,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -3877,56 +3982,54 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - bulk_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, + bulk_bps_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence::OrSymbol, currency: String, item_id: String, 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -3957,7 +4060,7 @@ module Orb .returns( { bulk_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -3989,23 +4092,16 @@ module Orb T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] ) end - def tiers - end + attr_accessor :tiers sig do params( - _: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] - ) - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] + tiers: T::Array[ + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier, + Orb::Util::AnyHash ) - end - def tiers=(_) - end - - sig do - params( - tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] + ] ) .returns(T.attached_class) end @@ -4026,30 +4122,15 @@ module Orb class Tier < Orb::BaseModel # Basis points to rate on sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Upper bound for tier sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The maximum amount to charge for any one event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) @@ -4073,175 +4154,268 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingBulkPrice < Orb::BaseModel sig { returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig) } - def bulk_config - end + attr_reader :bulk_config sig do - params(_: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig) - .returns(Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig) - end - def bulk_config=(_) + params( + bulk_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :bulk_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -4252,60 +4426,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -4316,56 +4467,54 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - bulk_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig, - cadence: Symbol, + bulk_config: T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence::OrSymbol, currency: String, item_id: String, 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -4396,7 +4545,7 @@ module Orb .returns( { bulk_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -4427,23 +4576,16 @@ module Orb T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] ) end - def tiers - end + attr_accessor :tiers sig do params( - _: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] - ) - .returns( - T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] + tiers: T::Array[ + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier, + Orb::Util::AnyHash ) - end - def tiers=(_) - end - - sig do - params( - tiers: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] + ] ) .returns(T.attached_class) end @@ -4464,21 +4606,11 @@ module Orb class Tier < Orb::BaseModel # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Upper bound for this tier sig { returns(T.nilable(Float)) } - def maximum_units - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def maximum_units=(_) - end + attr_accessor :maximum_units sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } def self.new(unit_amount:, maximum_units: nil) @@ -4491,172 +4623,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingThresholdTotalAmountPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config=(_) - end + attr_accessor :threshold_total_amount_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -4667,60 +4884,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -4731,41 +4925,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, @@ -4773,14 +4956,20 @@ module Orb 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -4810,7 +4999,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -4836,172 +5025,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config=(_) - end + attr_accessor :tiered_package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -5012,60 +5290,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -5076,41 +5331,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, @@ -5118,14 +5362,20 @@ module Orb 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -5155,7 +5405,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -5181,172 +5431,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingGroupedTieredPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_config=(_) - end + attr_accessor :grouped_tiered_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -5357,60 +5696,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -5421,41 +5737,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence::OrSymbol, currency: String, grouped_tiered_config: T::Hash[Symbol, T.anything], item_id: String, @@ -5463,14 +5768,20 @@ module Orb 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -5500,7 +5811,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence::OrSymbol, currency: String, grouped_tiered_config: T::Hash[Symbol, T.anything], item_id: String, @@ -5526,172 +5837,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } - def self.new(duration:, duration_unit:) - end - - sig { override.returns({duration: Integer, duration_unit: Symbol}) } - def to_hash + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end + def self.new(duration:, duration_unit:) + end + + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end + def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingMaxGroupTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config=(_) - end + attr_accessor :max_group_tiered_package_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -5702,60 +6102,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -5766,41 +6143,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence::OrSymbol, currency: String, item_id: String, max_group_tiered_package_config: T::Hash[Symbol, T.anything], @@ -5808,14 +6174,20 @@ module Orb 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -5845,7 +6217,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence::OrSymbol, currency: String, item_id: String, max_group_tiered_package_config: T::Hash[Symbol, T.anything], @@ -5871,172 +6243,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingTieredWithMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config=(_) - end + attr_accessor :tiered_with_minimum_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -6047,60 +6508,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -6111,41 +6549,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, @@ -6153,14 +6580,20 @@ module Orb 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -6190,7 +6623,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -6216,172 +6649,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } + module Cadence + extend Orb::Enum - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - end + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + end - class BillingCycleConfiguration < Orb::BaseModel - # The duration of the billing period. - sig { returns(Integer) } - def duration - end + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence::TaggedSymbol + ) - sig { params(_: Integer).returns(Integer) } - def duration=(_) + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end end + end - # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end + class BillingCycleConfiguration < Orb::BaseModel + # The duration of the billing period. + sig { returns(Integer) } + attr_accessor :duration - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + # The unit of billing period duration. + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingPackageWithAllocationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config=(_) - end + attr_accessor :package_with_allocation_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -6392,60 +6914,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -6456,41 +6955,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, @@ -6498,14 +6986,20 @@ module Orb 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -6535,7 +7029,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -6561,172 +7055,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + end - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingTieredPackageWithMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_package_with_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_package_with_minimum_config=(_) - end + attr_accessor :tiered_package_with_minimum_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -6737,60 +7320,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -6801,41 +7361,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, @@ -6843,14 +7392,20 @@ module Orb 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -6880,7 +7435,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -6906,172 +7461,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end - class NewFloatingUnitWithPercentPrice < Orb::BaseModel - # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + class NewFloatingUnitWithPercentPrice < Orb::BaseModel + # The cadence to bill for this price on. + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config=(_) - end + attr_accessor :unit_with_percent_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -7082,60 +7726,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -7146,41 +7767,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, @@ -7188,14 +7798,20 @@ module Orb 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -7225,7 +7841,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -7251,172 +7867,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingTieredWithProrationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config=(_) - end + attr_accessor :tiered_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -7427,60 +8132,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -7491,41 +8173,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, @@ -7533,14 +8204,20 @@ module Orb 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -7570,7 +8247,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -7596,172 +8273,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingUnitWithProrationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config=(_) - end + attr_accessor :unit_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -7772,60 +8538,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -7836,41 +8579,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, @@ -7878,14 +8610,20 @@ module Orb 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -7915,7 +8653,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -7941,172 +8679,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingGroupedAllocationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config=(_) - end + attr_accessor :grouped_allocation_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -8117,60 +8944,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -8181,41 +8985,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence::OrSymbol, currency: String, grouped_allocation_config: T::Hash[Symbol, T.anything], item_id: String, @@ -8223,14 +9016,20 @@ module Orb 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -8260,7 +9059,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence::OrSymbol, currency: String, grouped_allocation_config: T::Hash[Symbol, T.anything], item_id: String, @@ -8286,172 +9085,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingGroupedWithProratedMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config=(_) - end + attr_accessor :grouped_with_prorated_minimum_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -8462,60 +9350,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -8526,41 +9391,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence::OrSymbol, currency: String, grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], item_id: String, @@ -8568,14 +9422,20 @@ module Orb 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -8605,7 +9465,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence::OrSymbol, currency: String, grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], item_id: String, @@ -8631,172 +9491,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingGroupedWithMeteredMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config=(_) - end + attr_accessor :grouped_with_metered_minimum_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -8807,60 +9756,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -8871,41 +9797,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::OrSymbol, currency: String, grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], item_id: String, @@ -8913,14 +9828,20 @@ module Orb 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -8950,7 +9871,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::OrSymbol, currency: String, grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], item_id: String, @@ -8976,172 +9897,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingMatrixWithDisplayNamePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config=(_) - end + attr_accessor :matrix_with_display_name_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -9152,60 +10162,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -9216,41 +10203,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence::OrSymbol, currency: String, item_id: String, matrix_with_display_name_config: T::Hash[Symbol, T.anything], @@ -9258,14 +10234,20 @@ module Orb 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -9295,7 +10277,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence::OrSymbol, currency: String, item_id: String, matrix_with_display_name_config: T::Hash[Symbol, T.anything], @@ -9321,172 +10303,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingBulkWithProrationPrice < Orb::BaseModel sig { returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config=(_) - end + attr_accessor :bulk_with_proration_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -9497,60 +10568,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -9561,56 +10609,51 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence::OrSymbol, currency: String, item_id: String, 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -9641,7 +10684,7 @@ module Orb .returns( { bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -9666,172 +10709,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingGroupedTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config=(_) - end + attr_accessor :grouped_tiered_package_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -9842,60 +10974,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -9906,41 +11015,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence::OrSymbol, currency: String, grouped_tiered_package_config: T::Hash[Symbol, T.anything], item_id: String, @@ -9948,14 +11046,20 @@ module Orb 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -9985,7 +11089,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence::OrSymbol, currency: String, grouped_tiered_package_config: T::Hash[Symbol, T.anything], item_id: String, @@ -10011,172 +11115,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingScalableMatrixWithUnitPricingPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_unit_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -10187,60 +11380,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -10251,41 +11421,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, @@ -10293,14 +11452,20 @@ module Orb 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -10330,7 +11495,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -10356,172 +11521,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingScalableMatrixWithTieredPricingPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_tiered_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -10532,60 +11786,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -10596,41 +11827,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol, currency: String, item_id: String, name: String, @@ -10638,14 +11858,20 @@ module Orb 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -10675,7 +11901,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol, currency: String, item_id: String, model_type: Symbol, @@ -10701,172 +11927,261 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewFloatingCumulativeGroupedBulkPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config=(_) - end + attr_accessor :cumulative_grouped_bulk_config # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -10877,60 +12192,37 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -10941,41 +12233,30 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence::OrSymbol, cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], currency: String, item_id: String, @@ -10983,14 +12264,20 @@ module Orb 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), 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 + T.any( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), model_type: Symbol @@ -11020,7 +12307,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence::OrSymbol, cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], currency: String, item_id: String, @@ -11046,99 +12333,235 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end + + class << self + sig do + override + .returns( + [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 variants + end + end end end @@ -11155,67 +12578,34 @@ module Orb ) ) end - def adjustment - end - - 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 - ) - ) - .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 + attr_accessor :adjustment # The start date of the adjustment interval. This is the date that the adjustment # will start affecting prices on the subscription. The adjustment will apply to # invoice dates that overlap with this `start_date`. This `start_date` is treated # as inclusive for in-advance prices, and exclusive for in-arrears prices. - sig { returns(T.any(Time, Symbol)) } - def start_date - end - - sig { params(_: T.any(Time, Symbol)).returns(T.any(Time, Symbol)) } - def start_date=(_) - end + sig { returns(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)) } + attr_accessor :start_date # The end date of the adjustment interval. This is the date that the adjustment # will stop affecting prices on the subscription. The adjustment will apply to # invoice dates that overlap with this `end_date`.This `end_date` is treated as # exclusive for in-advance prices, and inclusive for in-arrears prices. - sig { returns(T.nilable(T.any(Time, Symbol))) } - def end_date - end - - sig { params(_: T.nilable(T.any(Time, Symbol))).returns(T.nilable(T.any(Time, Symbol))) } - def end_date=(_) - end + sig { returns(T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol))) } + attr_accessor :end_date sig do params( adjustment: T.any( Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewPercentageDiscount, + Orb::Util::AnyHash, 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)) + start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol), + end_date: T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)) ) .returns(T.attached_class) end @@ -11233,8 +12623,8 @@ module Orb 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)) + start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol), + end_date: T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)) } ) end @@ -11242,56 +12632,40 @@ module Orb end # The definition of a new adjustment to create and add to the subscription. - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union - Variants = type_template(:out) do - { - fixed: 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 + Variants = + type_template(:out) do + { + fixed: 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 class NewPercentageDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11322,39 +12696,22 @@ module Orb class NewUsageDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11385,39 +12742,22 @@ module Orb class NewAmountDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11448,48 +12788,26 @@ module Orb class NewMinimum < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11522,39 +12840,22 @@ module Orb class NewMaximum < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11582,71 +12883,74 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [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 variants + end + end end # The start date of the adjustment interval. This is the date that the adjustment # will start affecting prices on the subscription. The adjustment will apply to # invoice dates that overlap with this `start_date`. This `start_date` is treated # as inclusive for in-advance prices, and exclusive for in-arrears prices. - class StartDate < Orb::Union - abstract! + module StartDate + extend Orb::Union + + Variants = type_template(:out) { {fixed: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)} } - Variants = type_template(:out) { {fixed: T.any(Time, Symbol)} } + class << self + sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::OrSymbol]) } + def variants + end + end end # The end date of the adjustment interval. This is the date that the adjustment # will stop affecting prices on the subscription. The adjustment will apply to # invoice dates that overlap with this `end_date`.This `end_date` is treated as # exclusive for in-advance prices, and inclusive for in-arrears prices. - class EndDate < Orb::Union - abstract! + module EndDate + extend Orb::Union - Variants = type_template(:out) { {fixed: T.any(Time, Symbol)} } + Variants = type_template(:out) { {fixed: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)} } + + class << self + sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::OrSymbol]) } + def variants + end + end end end class Edit < Orb::BaseModel # The id of the price interval to edit. sig { returns(String) } - def price_interval_id - end - - sig { params(_: String).returns(String) } - def price_interval_id=(_) - end + attr_accessor :price_interval_id # The updated billing cycle day for this price interval. If not specified, the # billing cycle day will not be updated. Note that overlapping price intervals # must have the same billing cycle day. sig { returns(T.nilable(Integer)) } - def billing_cycle_day - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day # The updated end date of this price interval. If not specified, the start date # will not be updated. - sig { returns(T.nilable(T.any(Time, Symbol))) } - def end_date - end - - sig { params(_: T.nilable(T.any(Time, Symbol))).returns(T.nilable(T.any(Time, Symbol))) } - def end_date=(_) - end + sig { returns(T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol))) } + attr_accessor :end_date # An additional filter to apply to usage queries. This filter must be expressed as # a boolean # [computed property](/extensibility/advanced-metrics#computed-properties). If # null, usage queries will not include any additional filter. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # A list of fixed fee quantity transitions to use for this price interval. Note # that this list will overwrite all existing fixed fee quantity transitions on the @@ -11656,29 +12960,15 @@ module Orb T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]) ) end - def fixed_fee_quantity_transitions - end - - sig do - params( - _: 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 + attr_accessor :fixed_fee_quantity_transitions # The updated start date of this price interval. If not specified, the start date # will not be updated. - sig { returns(T.nilable(T.any(Time, Symbol))) } - def start_date - end + sig { returns(T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol))) } + attr_reader :start_date - sig { params(_: T.any(Time, Symbol)).returns(T.any(Time, Symbol)) } - def start_date=(_) - end + sig { params(start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)).void } + attr_writer :start_date # A list of customer IDs whose usage events will be aggregated and billed under # this subscription. By default, a subscription only considers usage events @@ -11687,21 +12977,18 @@ module Orb # only. Provided usage_customer_ids must be either the customer for this # subscription itself, or any of that customer's children. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids sig do params( price_interval_id: String, billing_cycle_day: T.nilable(Integer), - end_date: T.nilable(T.any(Time, Symbol)), + end_date: T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)), filter: T.nilable(String), - fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]), - start_date: T.any(Time, Symbol), + fixed_fee_quantity_transitions: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition, Orb::Util::AnyHash)] + ), + start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol), usage_customer_ids: T.nilable(T::Array[String]) ) .returns(T.attached_class) @@ -11723,10 +13010,10 @@ module Orb { price_interval_id: String, billing_cycle_day: T.nilable(Integer), - end_date: T.nilable(T.any(Time, Symbol)), + end_date: T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)), filter: T.nilable(String), fixed_fee_quantity_transitions: T.nilable(T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]), - start_date: T.any(Time, Symbol), + start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol), usage_customer_ids: T.nilable(T::Array[String]) } ) @@ -11736,30 +13023,26 @@ module Orb # The updated end date of this price interval. If not specified, the start date # will not be updated. - class EndDate < Orb::Union - abstract! + module EndDate + extend Orb::Union - Variants = type_template(:out) { {fixed: T.any(Time, Symbol)} } + Variants = type_template(:out) { {fixed: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)} } + + class << self + sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::OrSymbol]) } + def variants + end + end end class FixedFeeQuantityTransition < Orb::BaseModel # The date that the fixed fee quantity transition should take effect. sig { returns(Time) } - def effective_date - end - - sig { params(_: Time).returns(Time) } - def effective_date=(_) - end + attr_accessor :effective_date # The quantity of the fixed fee quantity transition. sig { returns(Integer) } - def quantity - end - - sig { params(_: Integer).returns(Integer) } - def quantity=(_) - end + attr_accessor :quantity sig { params(effective_date: Time, quantity: Integer).returns(T.attached_class) } def self.new(effective_date:, quantity:) @@ -11772,48 +13055,42 @@ module Orb # The updated start date of this price interval. If not specified, the start date # will not be updated. - class StartDate < Orb::Union - abstract! + module StartDate + extend Orb::Union + + Variants = type_template(:out) { {fixed: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)} } - Variants = type_template(:out) { {fixed: T.any(Time, Symbol)} } + class << self + sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::OrSymbol]) } + def variants + end + end end end class EditAdjustment < Orb::BaseModel # The id of the adjustment interval to edit. sig { returns(String) } - def adjustment_interval_id - end - - sig { params(_: String).returns(String) } - def adjustment_interval_id=(_) - end + attr_accessor :adjustment_interval_id # The updated end date of this adjustment interval. If not specified, the start # date will not be updated. - sig { returns(T.nilable(T.any(Time, Symbol))) } - def end_date - end - - sig { params(_: T.nilable(T.any(Time, Symbol))).returns(T.nilable(T.any(Time, Symbol))) } - def end_date=(_) - end + sig { returns(T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol))) } + attr_accessor :end_date # The updated start date of this adjustment interval. If not specified, the start # date will not be updated. - sig { returns(T.nilable(T.any(Time, Symbol))) } - def start_date - end + sig { returns(T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol))) } + attr_reader :start_date - sig { params(_: T.any(Time, Symbol)).returns(T.any(Time, Symbol)) } - def start_date=(_) - end + sig { params(start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)).void } + attr_writer :start_date sig do params( adjustment_interval_id: String, - end_date: T.nilable(T.any(Time, Symbol)), - start_date: T.any(Time, Symbol) + end_date: T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)), + start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol) ) .returns(T.attached_class) end @@ -11825,8 +13102,8 @@ module Orb .returns( { adjustment_interval_id: String, - end_date: T.nilable(T.any(Time, Symbol)), - start_date: T.any(Time, Symbol) + end_date: T.nilable(T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)), + start_date: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol) } ) end @@ -11835,18 +13112,30 @@ module Orb # The updated end date of this adjustment interval. If not specified, the start # date will not be updated. - class EndDate < Orb::Union - abstract! + module EndDate + extend Orb::Union - Variants = type_template(:out) { {fixed: T.any(Time, Symbol)} } + Variants = type_template(:out) { {fixed: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)} } + + class << self + sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::OrSymbol]) } + def variants + end + end end # The updated start date of this adjustment interval. If not specified, the start # date will not be updated. - class StartDate < Orb::Union - abstract! + module StartDate + extend Orb::Union + + Variants = type_template(:out) { {fixed: T.any(Time, Orb::Models::BillingCycleRelativeDate::OrSymbol)} } - Variants = type_template(:out) { {fixed: T.any(Time, Symbol)} } + class << self + sig { override.returns([Time, Orb::Models::BillingCycleRelativeDate::OrSymbol]) } + def variants + end + end end end end diff --git a/rbi/lib/orb/models/subscription_price_intervals_response.rbi b/rbi/lib/orb/models/subscription_price_intervals_response.rbi index 339bb1d0..ce971024 100644 --- a/rbi/lib/orb/models/subscription_price_intervals_response.rbi +++ b/rbi/lib/orb/models/subscription_price_intervals_response.rbi @@ -4,99 +4,59 @@ module Orb module Models class SubscriptionPriceIntervalsResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The current plan phase that is active, only if the subscription's plan has # phases. sig { returns(T.nilable(Integer)) } - def active_plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def active_plan_phase_order=(_) - end + attr_accessor :active_plan_phase_order # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. sig { returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval]) } - def adjustment_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval]) - .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval]) - end - def adjustment_intervals=(_) - end + attr_accessor :adjustment_intervals # Determines whether issued invoices for this subscription will automatically be # charged with the saved payment method on the due date. This property defaults to # the plan's behavior. If null, defaults to the customer's setting. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration) } - def billing_cycle_anchor_configuration - end + attr_reader :billing_cycle_anchor_configuration sig do - params(_: Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration) - .returns(Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration) - end - def billing_cycle_anchor_configuration=(_) + params( + billing_cycle_anchor_configuration: T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :billing_cycle_anchor_configuration # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is not part of the billing period. Set to null for # subscriptions that are not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if the subscription is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # A customer is a buyer of your products, and the other party to the billing # relationship. @@ -117,22 +77,15 @@ module Orb # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. sig { returns(Orb::Models::Customer) } - def customer - end + attr_reader :customer - sig { params(_: Orb::Models::Customer).returns(Orb::Models::Customer) } - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo # The discount intervals for this subscription sorted by the start_date. sig do @@ -146,204 +99,118 @@ module Orb ] ) end - def discount_intervals - end - - 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 - ) - ] - ) - end - def discount_intervals=(_) - end + attr_accessor :discount_intervals # The date Orb stops billing for this subscription. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule]) } - def fixed_fee_quantity_schedule - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule]) - .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule]) - end - def fixed_fee_quantity_schedule=(_) - end + attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval]) } - def maximum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval]) - .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval]) - end - def maximum_intervals=(_) - end + attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval]) } - def minimum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval]) - .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval]) - end - def minimum_intervals=(_) - end + attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription # invoices as the date that they are due. A value of `0` here represents that the # invoice is due on issue, whereas a value of `30` represents that the customer # has a month to pay the invoice. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # subscribed to by a customer. Plans define the billing behavior of the # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). sig { returns(Orb::Models::Plan) } - def plan - end + attr_reader :plan - sig { params(_: Orb::Models::Plan).returns(Orb::Models::Plan) } - def plan=(_) - end + sig { params(plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash)).void } + attr_writer :plan # The price intervals for this subscription. sig { returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval]) } - def price_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval]) - .returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval]) - end - def price_intervals=(_) - end + attr_accessor :price_intervals sig { returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon)) } - def redeemed_coupon - end + attr_reader :redeemed_coupon sig do - params(_: T.nilable(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon)) - .returns(T.nilable(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon)) - end - def redeemed_coupon=(_) + params( + redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon, Orb::Util::AnyHash)) + ) + .void end + attr_writer :redeemed_coupon # The date Orb starts billing for this subscription. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end - - sig { returns(Symbol) } - def status - end + attr_accessor :start_date - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo) } - def trial_info - end + attr_reader :trial_info sig do - params(_: Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo) - .returns(Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo) - end - def trial_info=(_) + params(trial_info: T.any(Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo, Orb::Util::AnyHash)) + .void end + attr_writer :trial_info sig do params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval], + adjustment_intervals: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval, Orb::Util::AnyHash)], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ), 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, + customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash), default_invoice_memo: T.nilable(String), discount_intervals: T::Array[ T.any( Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, + Orb::Util::AnyHash, 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], + fixed_fee_quantity_schedule: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule, Orb::Util::AnyHash)], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval], + maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval, Orb::Util::AnyHash)], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval], + minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval, Orb::Util::AnyHash)], net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon), + plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash), + price_intervals: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval, Orb::Util::AnyHash)], + redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon, Orb::Util::AnyHash)), start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo + status: Orb::Models::SubscriptionPriceIntervalsResponse::Status::OrSymbol, + trial_info: T.any(Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -409,7 +276,7 @@ module Orb price_intervals: T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval], redeemed_coupon: T.nilable(Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon), start_date: Time, - status: Symbol, + status: Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol, trial_info: Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo } ) @@ -419,12 +286,7 @@ module Orb class AdjustmentInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig do returns( @@ -437,64 +299,26 @@ module Orb ) ) end - def adjustment - end - - 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 - ) - ) - .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 + attr_accessor :adjustment # The price interval IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the adjustment interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the adjustment interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( id: String, adjustment: T.any( Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, @@ -530,84 +354,50 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union - Variants = type_template(:out) do - { - fixed: 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 + Variants = + type_template(:out) do + { + fixed: 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 class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -652,67 +442,32 @@ module Orb class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -757,67 +512,32 @@ module Orb class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -862,76 +582,36 @@ module Orb class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -979,67 +659,32 @@ module Orb class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1081,6 +726,17 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [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 variants + end + end end end @@ -1090,33 +746,18 @@ module Orb # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def day - end - - sig { params(_: Integer).returns(Integer) } - def day=(_) - end + attr_accessor :day # The month on which the billing cycle is anchored (e.g. a quarterly price # anchored in February would have cycles starting February, May, August, and # November). sig { returns(T.nilable(Integer)) } - def month - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def month=(_) - end + attr_accessor :month # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). sig { returns(T.nilable(Integer)) } - def year - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def year=(_) - end + attr_accessor :year sig do params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) @@ -1129,72 +770,43 @@ module Orb end end - class DiscountInterval < Orb::Union - abstract! + module DiscountInterval + extend Orb::Union - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval + ) + } + end class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1237,57 +849,27 @@ module Orb class PercentageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # Only available if discount_type is `percentage`.This is a number between 0 # and 1. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1330,57 +912,27 @@ module Orb class UsageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -1419,40 +971,31 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def variants + end + end end class FixedFeeQuantitySchedule < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) @@ -1471,49 +1014,24 @@ module Orb class MaximumInterval < Orb::BaseModel # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the maximum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The maximum amount to charge in a given billing period for the price intervals # this transform applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The start date of the maximum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1547,49 +1065,24 @@ module Orb class MinimumInterval < Orb::BaseModel # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the minimum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The minimum amount to charge in a given billing period for the price intervals # this minimum applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The start date of the minimum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1622,62 +1115,32 @@ module Orb class PriceInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The day of the month that Orb bills for this price sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is exactly the end of the billing period. Set to null if # this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # The end date of the price interval. This is the date that Orb stops billing for # this price. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter to apply to usage queries. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # The fixed fee quantity transitions for this price interval. This is only # relevant for fixed fees. @@ -1688,23 +1151,7 @@ module Orb ) ) 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] - ) - ) - end - def fixed_fee_quantity_transitions=(_) - end + attr_accessor :fixed_fee_quantity_transitions # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -1750,97 +1197,17 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .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 + attr_accessor :price # The start date of the price interval. This is the date that Orb starts billing # for this price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids # The Price Interval resource represents a period of time for which a price will # bill on a subscription. A subscription’s price intervals define its billing @@ -1854,10 +1221,16 @@ module Orb end_date: T.nilable(Time), filter: T.nilable(String), fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition] + T::Array[ + T.any( + Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Util::AnyHash + ) + ] ), price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -1958,28 +1331,13 @@ module Orb class FixedFeeQuantityTransition < Orb::BaseModel sig { returns(Time) } - def effective_date - end - - sig { params(_: Time).returns(Time) } - def effective_date=(_) - end + attr_accessor :effective_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Integer) } - def quantity - end - - sig { params(_: Integer).returns(Integer) } - def quantity=(_) - end + attr_accessor :quantity sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } def self.new(effective_date:, price_id:, quantity:) @@ -1993,28 +1351,13 @@ module Orb class RedeemedCoupon < Orb::BaseModel sig { returns(String) } - def coupon_id - end - - sig { params(_: String).returns(String) } - def coupon_id=(_) - end + attr_accessor :coupon_id sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) @@ -2027,24 +1370,27 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ACTIVE = T.let(:active, Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol) + ENDED = T.let(:ended, Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol) + UPCOMING = T.let(:upcoming, Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol) - ACTIVE = :active - ENDED = :ended - UPCOMING = :upcoming + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionPriceIntervalsResponse::Status::TaggedSymbol]) } + def values + end + end end class TrialInfo < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } def self.new(end_date:) 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 3d90a78c..731327a2 100644 --- a/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi +++ b/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi @@ -6,276 +6,143 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - sig { returns(Symbol) } - def change_option - end - - sig { params(_: Symbol).returns(Symbol) } - def change_option=(_) - end + sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::OrSymbol) } + attr_accessor :change_option # Additional adjustments to be added to the subscription. (Only available for # accounts that have migrated off of legacy subscription overrides) sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment])) } - def add_adjustments - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment])) - end - def add_adjustments=(_) - end + attr_accessor :add_adjustments # Additional prices to be added to the subscription. (Only available for accounts # that have migrated off of legacy subscription overrides) sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice])) } - def add_prices - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice])) - end - def add_prices=(_) - end + attr_accessor :add_prices # [DEPRECATED] Use billing_cycle_alignment instead. Reset billing periods to be # aligned with the plan change's effective date. sig { returns(T.nilable(T::Boolean)) } - def align_billing_with_plan_change_date - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def align_billing_with_plan_change_date=(_) - end + attr_accessor :align_billing_with_plan_change_date # Determines whether issued invoices for this subscription will automatically be # charged with the saved payment method on the due date. If not specified, this # defaults to the behavior configured for this customer. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection # Reset billing periods to be aligned with the plan change's effective date or # start of the month. Defaults to `unchanged` which keeps subscription's existing # billing cycle alignment. - sig { returns(T.nilable(Symbol)) } - def billing_cycle_alignment - end - - sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) } - def billing_cycle_alignment=(_) - end + sig { returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::OrSymbol)) } + attr_accessor :billing_cycle_alignment sig { returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration)) } - def billing_cycle_anchor_configuration - end + attr_reader :billing_cycle_anchor_configuration sig do - params(_: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration)) - .returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration)) - end - def billing_cycle_anchor_configuration=(_) + params( + billing_cycle_anchor_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :billing_cycle_anchor_configuration # The date that the plan change should take effect. This parameter can only be # passed if the `change_option` is `requested_date`. If a date with no time is # passed, the plan change will happen at midnight in the customer's timezone. sig { returns(T.nilable(Time)) } - def change_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def change_date=(_) - end + attr_accessor :change_date # Redemption code to be used for this subscription. If the coupon cannot be found # by its redemption code, or cannot be redeemed, an error response will be # returned and the subscription creation or plan change will not be scheduled. sig { returns(T.nilable(String)) } - def coupon_redemption_code - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def coupon_redemption_code=(_) - end + attr_accessor :coupon_redemption_code sig { returns(T.nilable(Float)) } - def credits_overage_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def credits_overage_rate=(_) - end + attr_accessor :credits_overage_rate # Determines the default memo on this subscription's invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo # The external_plan_id of the plan that the given subscription should be switched # to. Note that either this property or `plan_id` must be specified. sig { returns(T.nilable(String)) } - def external_plan_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_plan_id=(_) - end + attr_accessor :external_plan_id # An additional filter to apply to usage queries. This filter must be expressed as # a boolean # [computed property](/extensibility/advanced-metrics#computed-properties). If # null, usage queries will not include any additional filter. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # The phase of the plan to start with sig { returns(T.nilable(Integer)) } - def initial_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def initial_phase_order=(_) - end + attr_accessor :initial_phase_order # When this subscription's accrued usage reaches this threshold, an invoice will # be issued for the subscription. If not specified, invoices will only be issued # at the end of the billing period. sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # The net terms determines the difference between the invoice date and the issue # date for the invoice. If you intend the invoice to be due on issue, set this # to 0. If not provided, this defaults to the value specified in the plan. sig { returns(T.nilable(Integer)) } - def net_terms - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def net_terms=(_) - end + attr_accessor :net_terms sig { returns(T.nilable(Float)) } - def per_credit_overage_amount - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def per_credit_overage_amount=(_) - end + attr_accessor :per_credit_overage_amount # The plan that the given subscription should be switched to. Note that either # this property or `external_plan_id` must be specified. sig { returns(T.nilable(String)) } - def plan_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def plan_id=(_) - end + attr_accessor :plan_id # Specifies which version of the plan to change to. If null, the default version # will be used. sig { returns(T.nilable(Integer)) } - def plan_version_number - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_version_number=(_) - end + attr_accessor :plan_version_number # Optionally provide a list of overrides for prices on the plan sig { returns(T.nilable(T::Array[T.anything])) } - def price_overrides - end - - sig { params(_: T.nilable(T::Array[T.anything])).returns(T.nilable(T::Array[T.anything])) } - def price_overrides=(_) - end + attr_accessor :price_overrides # Plan adjustments to be removed from the subscription. (Only available for # accounts that have migrated off of legacy subscription overrides) 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])) - end - def remove_adjustments=(_) - end + attr_accessor :remove_adjustments # Plan prices to be removed from the subscription. (Only available for accounts # that have migrated off of legacy subscription overrides) sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice])) } - def remove_prices - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice])) - end - def remove_prices=(_) - end + attr_accessor :remove_prices # Plan adjustments to be replaced with additional adjustments on the subscription. # (Only available for accounts that have migrated off of legacy subscription # overrides) 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])) - end - def replace_adjustments=(_) - end + attr_accessor :replace_adjustments # Plan prices to be replaced with additional prices on the subscription. (Only # available for accounts that have migrated off of legacy subscription overrides) sig { returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice])) } - def replace_prices - end - - sig do - params(_: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice])) - .returns(T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice])) - end - def replace_prices=(_) - end + attr_accessor :replace_prices # The duration of the trial period in days. If not provided, this defaults to the # value specified in the plan. If `0` is provided, the trial on the plan will be # skipped. sig { returns(T.nilable(Integer)) } - def trial_duration_days - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def trial_duration_days=(_) - end + attr_accessor :trial_duration_days # A list of customer IDs whose usage events will be aggregated and billed under # this subscription. By default, a subscription only considers usage events @@ -284,22 +151,26 @@ module Orb # only. Provided usage_customer_ids must be either the customer for this # subscription itself, or any of that customer's children. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids sig do params( - change_option: Symbol, - add_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment]), - add_prices: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice]), + change_option: Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::OrSymbol, + add_adjustments: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment, Orb::Util::AnyHash)] + ), + add_prices: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice, Orb::Util::AnyHash)] + ), 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), + billing_cycle_alignment: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::OrSymbol), + billing_cycle_anchor_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ) + ), change_date: T.nilable(Time), coupon_redemption_code: T.nilable(String), credits_overage_rate: T.nilable(Float), @@ -313,13 +184,21 @@ module Orb 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]), + remove_adjustments: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment, Orb::Util::AnyHash)] + ), + remove_prices: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice, Orb::Util::AnyHash)] + ), + replace_adjustments: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment, Orb::Util::AnyHash)] + ), + replace_prices: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice, Orb::Util::AnyHash)] + ), trial_duration_days: T.nilable(Integer), usage_customer_ids: T.nilable(T::Array[String]), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -358,12 +237,12 @@ module Orb override .returns( { - change_option: Symbol, + change_option: Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::OrSymbol, 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_alignment: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::OrSymbol), billing_cycle_anchor_configuration: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration), change_date: T.nilable(Time), coupon_redemption_code: T.nilable(String), @@ -391,14 +270,29 @@ module Orb def to_hash end - class ChangeOption < Orb::Enum - abstract! + module ChangeOption + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::TaggedSymbol) } - REQUESTED_DATE = :requested_date - END_OF_SUBSCRIPTION_TERM = :end_of_subscription_term - IMMEDIATE = :immediate + REQUESTED_DATE = + T.let(:requested_date, Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::TaggedSymbol) + END_OF_SUBSCRIPTION_TERM = + T.let( + :end_of_subscription_term, + Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::TaggedSymbol + ) + IMMEDIATE = + T.let(:immediate, Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::TaggedSymbol) + + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::TaggedSymbol]) } + def values + end + end end class AddAdjustment < Orb::BaseModel @@ -414,66 +308,28 @@ module Orb ) ) end - def adjustment - end - - 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 - ) - ) - .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 + attr_accessor :adjustment # The end date of the adjustment interval. This is the date that the adjustment # will stop affecting prices on the subscription. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The phase to add this adjustment to. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The start date of the adjustment interval. This is the date that the adjustment # will start affecting prices on the subscription. If null, the adjustment will # start when the phase or subscription starts. sig { returns(T.nilable(Time)) } - def start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def start_date=(_) - end + attr_accessor :start_date sig do params( adjustment: T.any( Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewPercentageDiscount, + Orb::Util::AnyHash, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum, @@ -509,56 +365,40 @@ module Orb end # The definition of a new adjustment to create and add to the subscription. - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union - Variants = type_template(:out) do - { - fixed: 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 + Variants = + type_template(:out) do + { + fixed: 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 class NewPercentageDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -589,39 +429,22 @@ module Orb class NewUsageDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -652,39 +475,22 @@ module Orb class NewAmountDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -715,48 +521,26 @@ module Orb class NewMinimum < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -789,39 +573,22 @@ module Orb class NewMaximum < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -849,83 +616,63 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [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 variants + end + end end end class AddPrice < Orb::BaseModel # The definition of a new allocation price to create and add to the subscription. sig { returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice)) } - def allocation_price - end + attr_reader :allocation_price sig do - params(_: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice)) - .returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice)) - end - def allocation_price=(_) + params( + allocation_price: T.nilable( + T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :allocation_price # [DEPRECATED] Use add_adjustments instead. The subscription's discounts for this # price. 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])) - end - def discounts=(_) - end + attr_accessor :discounts # The end date of the price interval. This is the date that the price will stop # billing on the subscription. If null, billing will end when the phase or # subscription ends. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The external price id of the price to add to the subscription. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # [DEPRECATED] Use add_adjustments instead. The subscription's maximum amount for # this price. sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for # this price. sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The phase to add this price to. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The definition of a new price to create and add to the subscription. sig do @@ -961,14 +708,35 @@ module Orb ) ) end - def price - end + attr_accessor :price + + # The id of the price to add to the subscription. + sig { returns(T.nilable(String)) } + attr_accessor :price_id + + # The start date of the price interval. This is the date that the price will start + # billing on the subscription. If null, billing will start when the phase or + # subscription starts. + sig { returns(T.nilable(Time)) } + attr_accessor :start_date sig do params( - _: T.nilable( + allocation_price: T.nilable( + T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice, Orb::Util::AnyHash) + ), + discounts: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount, Orb::Util::AnyHash)] + ), + 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::Util::AnyHash, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice, @@ -994,103 +762,9 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice ) - ) - ) - .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::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice - ) - ) - ) - end - def price=(_) - end - - # The id of the price to add to the subscription. - sig { returns(T.nilable(String)) } - def price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def price_id=(_) - end - - # The start date of the price interval. This is the date that the price will start - # billing on the subscription. If null, billing will start when the phase or - # subscription starts. - sig { returns(T.nilable(Time)) } - def start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def start_date=(_) - end - - sig do - params( - 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, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice - ) - ), - price_id: T.nilable(String), - start_date: T.nilable(Time) + ), + price_id: T.nilable(String), + start_date: T.nilable(Time) ) .returns(T.attached_class) end @@ -1159,45 +833,30 @@ module Orb class AllocationPrice < Orb::BaseModel # An amount of the currency to allocate to the customer at the specified cadence. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The cadence at which to allocate the amount to the customer. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end + sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::OrSymbol) } + attr_accessor :cadence # An ISO 4217 currency string or a custom pricing unit identifier in which to bill # this price. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # Whether the allocated amount should expire at the end of the cadence or roll # over to the next period. sig { returns(T::Boolean) } - def expires_at_end_of_cadence - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def expires_at_end_of_cadence=(_) - end + attr_accessor :expires_at_end_of_cadence # The definition of a new allocation price to create and add to the subscription. sig do - params(amount: String, cadence: Symbol, currency: String, expires_at_end_of_cadence: T::Boolean) + params( + amount: String, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::OrSymbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + ) .returns(T.attached_class) end def self.new(amount:, cadence:, currency:, expires_at_end_of_cadence:) @@ -1205,72 +864,97 @@ module Orb sig do override - .returns({ - amount: String, - cadence: Symbol, - currency: String, - expires_at_end_of_cadence: T::Boolean - }) + .returns( + { + amount: String, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::OrSymbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + } + ) end def to_hash end # The cadence at which to allocate the amount to the customer. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + ) + end - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + ) + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end end class Discount < Orb::BaseModel - sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::OrSymbol) } + attr_accessor :discount_type # Only available if discount_type is `amount`. sig { returns(T.nilable(String)) } - def amount_discount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def amount_discount=(_) - end + attr_accessor :amount_discount # Only available if discount_type is `percentage`. This is a number between 0 # and 1. sig { returns(T.nilable(Float)) } - def percentage_discount - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(T.nilable(Float)) } - def usage_discount - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( - discount_type: Symbol, + discount_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::OrSymbol, amount_discount: T.nilable(String), percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) @@ -1284,7 +968,7 @@ module Orb override .returns( { - discount_type: Symbol, + discount_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::OrSymbol, amount_discount: T.nilable(String), percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) @@ -1294,127 +978,132 @@ module Orb def to_hash end - class DiscountType < Orb::Enum - abstract! + module DiscountType + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + PERCENTAGE = + T.let( + :percentage, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::TaggedSymbol + ) + USAGE = + T.let( + :usage, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::TaggedSymbol + ) + AMOUNT = + T.let( + :amount, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::TaggedSymbol + ) - PERCENTAGE = :percentage - USAGE = :usage - AMOUNT = :amount + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::DiscountType::TaggedSymbol] + ) + end + def values + end + end end end # The definition of a new price to create and add to the subscription. - class Price < Orb::Union - abstract! + module Price + extend Orb::Union - Variants = type_template(:out) do - { - fixed: 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::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice - ) - } - end + Variants = + type_template(:out) do + { + fixed: 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::NewSubscriptionScalableMatrixWithUnitPricingPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice + ) + } + end class NewSubscriptionUnitPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig ) end - def unit_config - end + attr_reader :unit_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig + unit_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, + Orb::Util::AnyHash ) + ) + .void end - def unit_config=(_) - end + attr_writer :unit_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -1425,70 +1114,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -1499,58 +1160,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::OrSymbol, item_id: String, name: String, - unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, + unit_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, + Orb::Util::AnyHash + ), 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -1558,7 +1209,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -1590,7 +1244,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -1617,28 +1271,70 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class UnitConfig < Orb::BaseModel # Rate per unit of usage sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig { params(unit_amount: String).returns(T.attached_class) } def self.new(unit_amount:) @@ -1652,158 +1348,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig ) end - def package_config - end + attr_reader :package_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig + package_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, + Orb::Util::AnyHash ) + ) + .void end - def package_config=(_) - end + attr_writer :package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -1814,70 +1561,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. - sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -1888,58 +1607,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::OrSymbol, item_id: String, name: String, - package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, + package_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, + Orb::Util::AnyHash + ), 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -1947,7 +1656,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -1979,7 +1691,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -2006,38 +1718,75 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class PackageConfig < Orb::BaseModel # A currency amount to rate usage by sig { returns(String) } - def package_amount - end - - sig { params(_: String).returns(String) } - def package_amount=(_) - end + attr_accessor :package_amount # An integer amount to represent package size. For example, 1000 here would divide # usage by 1000 before multiplying by package_amount in rating sig { returns(Integer) } - def package_size - end - - sig { params(_: Integer).returns(Integer) } - def package_size=(_) - end + attr_accessor :package_size sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } def self.new(package_amount:, package_size:) @@ -2051,158 +1800,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionMatrixPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig do returns( Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig ) end - def matrix_config - end + attr_reader :matrix_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig + matrix_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + Orb::Util::AnyHash ) + ) + .void end - def matrix_config=(_) - end + attr_writer :matrix_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -2213,70 +2013,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -2287,58 +2059,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::OrSymbol, item_id: String, - matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + matrix_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + Orb::Util::AnyHash + ), 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -2346,7 +2108,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -2378,7 +2143,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::OrSymbol, item_id: String, matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, model_type: Symbol, @@ -2405,37 +2170,74 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class MatrixConfig < Orb::BaseModel # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } - def default_unit_amount - end - - sig { params(_: String).returns(String) } - def default_unit_amount=(_) - end + attr_accessor :default_unit_amount # One or two event property values to evaluate matrix groups by sig { returns(T::Array[T.nilable(String)]) } - def dimensions - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimensions=(_) - end + attr_accessor :dimensions # Matrix values for specified matrix grouping keys sig do @@ -2445,30 +2247,17 @@ module Orb ] ) 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 - ] - ) - end - def matrix_values=(_) - end + attr_accessor :matrix_values sig do params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], matrix_values: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -2496,21 +2285,11 @@ module Orb # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values # Unit price for the specified dimension_values sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -2530,158 +2309,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig ) end - def tiered_config - end + attr_reader :tiered_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig + tiered_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, + Orb::Util::AnyHash ) + ) + .void end - def tiered_config=(_) - end + attr_writer :tiered_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -2692,70 +2522,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -2766,58 +2568,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::OrSymbol, item_id: String, name: String, - tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, + tiered_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, + Orb::Util::AnyHash + ), 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -2825,7 +2617,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -2857,7 +2652,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -2884,17 +2679,64 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class TieredConfig < Orb::BaseModel @@ -2906,28 +2748,15 @@ module Orb ] ) 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 - ] - ) - end - def tiers=(_) - end + attr_accessor :tiers sig do params( tiers: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -2951,30 +2780,15 @@ module Orb class Tier < Orb::BaseModel # Inclusive tier starting value sig { returns(Float) } - def first_unit - end - - sig { params(_: Float).returns(Float) } - def first_unit=(_) - end + attr_accessor :first_unit # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Exclusive tier ending value. If null, this is treated as the last tier sig { returns(T.nilable(Float)) } - def last_unit - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def last_unit=(_) - end + attr_accessor :last_unit sig do params( @@ -2997,158 +2811,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredBpsPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig ) end - def tiered_bps_config - end + attr_reader :tiered_bps_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig + tiered_bps_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + Orb::Util::AnyHash ) + ) + .void end - def tiered_bps_config=(_) - end + attr_writer :tiered_bps_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -3159,70 +3024,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -3233,58 +3070,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::OrSymbol, item_id: String, name: String, - tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + tiered_bps_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + Orb::Util::AnyHash + ), 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -3292,7 +3119,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -3324,7 +3154,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -3351,17 +3181,64 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class TieredBpsConfig < Orb::BaseModel @@ -3374,28 +3251,15 @@ module Orb ] ) 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 - ] - ) - end - def tiers=(_) - end + attr_accessor :tiers sig do params( tiers: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -3419,39 +3283,19 @@ module Orb class Tier < Orb::BaseModel # Per-event basis point rate sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Inclusive tier starting value sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # Exclusive tier ending value sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # Per unit maximum to charge sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params( @@ -3484,80 +3328,158 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end @@ -3568,74 +3490,47 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig ) end - def bps_config - end + attr_reader :bps_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig + bps_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, + Orb::Util::AnyHash ) + ) + .void end - def bps_config=(_) - end + attr_writer :bps_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -3646,70 +3541,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -3720,58 +3587,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Symbol, + bps_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -3779,7 +3636,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -3812,7 +3672,7 @@ module Orb .returns( { bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -3840,21 +3700,11 @@ module Orb class BpsConfig < Orb::BaseModel # Basis point take rate per event sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Optional currency amount maximum to cap spend per event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } def self.new(bps:, per_unit_maximum: nil) @@ -3866,96 +3716,221 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end @@ -3966,74 +3941,47 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig ) end - def bulk_bps_config - end + attr_reader :bulk_bps_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig + bulk_bps_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + Orb::Util::AnyHash ) + ) + .void end - def bulk_bps_config=(_) - end + attr_writer :bulk_bps_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -4044,70 +3992,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -4118,58 +4038,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, + bulk_bps_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -4177,7 +4087,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -4210,7 +4123,7 @@ module Orb .returns( { bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -4245,28 +4158,15 @@ module Orb ] ) 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 - ] - ) - end - def tiers=(_) - end + attr_accessor :tiers sig do params( tiers: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -4290,30 +4190,15 @@ module Orb class Tier < Orb::BaseModel # Basis points to rate on sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Upper bound for tier sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The maximum amount to charge for any one event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) @@ -4337,96 +4222,221 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end @@ -4437,74 +4447,47 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig ) end - def bulk_config - end + attr_reader :bulk_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig + bulk_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, + Orb::Util::AnyHash ) + ) + .void end - def bulk_config=(_) - end + attr_writer :bulk_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -4515,70 +4498,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -4589,58 +4544,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Symbol, + bulk_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -4648,7 +4593,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -4681,7 +4629,7 @@ module Orb .returns( { bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -4715,28 +4663,15 @@ module Orb ] ) 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 - ] - ) - end - def tiers=(_) - end + attr_accessor :tiers sig do params( tiers: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -4760,21 +4695,11 @@ module Orb class Tier < Orb::BaseModel # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Upper bound for this tier sig { returns(T.nilable(Float)) } - def maximum_units - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def maximum_units=(_) - end + attr_accessor :maximum_units sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } def self.new(unit_amount:, maximum_units: nil) @@ -4787,163 +4712,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config=(_) - end + attr_accessor :threshold_total_amount_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -4954,70 +4973,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -5028,58 +5019,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -5087,7 +5065,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -5119,7 +5100,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -5146,163 +5127,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config=(_) - end + attr_accessor :tiered_package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -5313,70 +5388,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -5387,58 +5434,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -5446,7 +5480,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -5478,7 +5515,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -5505,163 +5542,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config=(_) - end + attr_accessor :tiered_with_minimum_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -5672,70 +5803,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -5746,58 +5849,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -5805,7 +5895,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -5837,7 +5930,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -5864,163 +5957,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config=(_) - end + attr_accessor :unit_with_percent_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -6031,70 +6218,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -6105,58 +6264,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -6164,7 +6310,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -6196,7 +6345,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -6223,163 +6372,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config=(_) - end + attr_accessor :package_with_allocation_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -6390,70 +6633,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -6464,58 +6679,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -6523,7 +6725,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -6555,7 +6760,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -6582,163 +6787,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config=(_) - end + attr_accessor :tiered_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -6749,70 +7048,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -6823,58 +7094,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -6882,7 +7140,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -6914,7 +7175,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -6941,163 +7202,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config=(_) - end + attr_accessor :unit_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -7108,70 +7463,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -7182,58 +7509,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -7241,7 +7555,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -7273,7 +7590,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -7300,163 +7617,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) - end - - sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config=(_) - end + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :grouped_allocation_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -7467,70 +7878,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -7541,58 +7924,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::OrSymbol, grouped_allocation_config: T::Hash[Symbol, T.anything], item_id: String, 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -7600,7 +7970,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -7632,7 +8005,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::OrSymbol, grouped_allocation_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -7659,163 +8032,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config=(_) - end + attr_accessor :grouped_with_prorated_minimum_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -7826,70 +8293,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -7900,58 +8339,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::OrSymbol, grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], item_id: String, 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -7959,7 +8385,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -7991,7 +8420,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::OrSymbol, grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -8018,163 +8447,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) end - - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel sig { returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config=(_) - end + attr_accessor :bulk_with_proration_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -8185,70 +8708,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -8259,58 +8754,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -8318,7 +8800,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -8351,7 +8836,7 @@ module Orb .returns( { bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -8377,163 +8862,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionScalableMatrixWithUnitPricingPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_unit_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -8544,70 +9123,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -8618,58 +9169,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol, item_id: String, 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -8677,7 +9215,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -8709,7 +9250,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -8736,163 +9277,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionScalableMatrixWithTieredPricingPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_tiered_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -8903,70 +9538,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -8977,58 +9584,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol, item_id: String, 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::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -9036,7 +9630,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -9068,7 +9665,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -9095,163 +9692,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionCumulativeGroupedBulkPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config=(_) - end + attr_accessor :cumulative_grouped_bulk_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -9262,70 +9953,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -9336,58 +9999,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::OrSymbol, cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], item_id: String, 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::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -9395,7 +10045,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -9427,7 +10080,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::OrSymbol, cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -9454,163 +10107,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionMaxGroupTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config=(_) - end + attr_accessor :max_group_tiered_package_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -9621,70 +10368,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -9695,58 +10414,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::OrSymbol, item_id: String, max_group_tiered_package_config: T::Hash[Symbol, T.anything], 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::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -9754,7 +10460,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -9786,7 +10495,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::OrSymbol, item_id: String, max_group_tiered_package_config: T::Hash[Symbol, T.anything], model_type: Symbol, @@ -9813,163 +10522,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config=(_) - end + attr_accessor :grouped_with_metered_minimum_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -9980,70 +10783,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -10054,58 +10829,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::OrSymbol, grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], item_id: String, 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::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -10113,7 +10875,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -10145,7 +10910,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::OrSymbol, grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -10172,163 +10937,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionMatrixWithDisplayNamePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config=(_) - end + attr_accessor :matrix_with_display_name_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -10339,70 +11198,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -10413,58 +11244,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::OrSymbol, item_id: String, matrix_with_display_name_config: T::Hash[Symbol, T.anything], 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::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -10472,7 +11290,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -10504,7 +11325,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::OrSymbol, item_id: String, matrix_with_display_name_config: T::Hash[Symbol, T.anything], model_type: Symbol, @@ -10531,163 +11352,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config=(_) - end + attr_accessor :grouped_tiered_package_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -10698,70 +11613,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -10772,58 +11659,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::OrSymbol, grouped_tiered_package_config: T::Hash[Symbol, T.anything], item_id: String, 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::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -10831,7 +11705,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -10863,7 +11740,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::OrSymbol, grouped_tiered_package_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -10890,113 +11767,270 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end + + class << self + sig do + override + .returns( + [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::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice] + ) + end + def variants + end + end end end # Reset billing periods to be aligned with the plan change's effective date or # start of the month. Defaults to `unchanged` which keeps subscription's existing # billing cycle alignment. - class BillingCycleAlignment < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } + module BillingCycleAlignment + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol) } + + UNCHANGED = + T.let(:unchanged, Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol) + PLAN_CHANGE_DATE = + T.let( + :plan_change_date, + Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol + ) + START_OF_MONTH = + T.let( + :start_of_month, + Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol + ) - UNCHANGED = :unchanged - PLAN_CHANGE_DATE = :plan_change_date - START_OF_MONTH = :start_of_month + class << self + sig do + override + .returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol]) + end + def values + end + end end class BillingCycleAnchorConfiguration < Orb::BaseModel @@ -11005,33 +12039,18 @@ module Orb # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def day - end - - sig { params(_: Integer).returns(Integer) } - def day=(_) - end + attr_accessor :day # The month on which the billing cycle is anchored (e.g. a quarterly price # anchored in February would have cycles starting February, May, August, and # November). sig { returns(T.nilable(Integer)) } - def month - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def month=(_) - end + attr_accessor :month # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). sig { returns(T.nilable(Integer)) } - def year - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def year=(_) - end + attr_accessor :year sig do params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) @@ -11047,12 +12066,7 @@ module Orb class RemoveAdjustment < Orb::BaseModel # The id of the adjustment to remove on the subscription. sig { returns(String) } - def adjustment_id - end - - sig { params(_: String).returns(String) } - def adjustment_id=(_) - end + attr_accessor :adjustment_id sig { params(adjustment_id: String).returns(T.attached_class) } def self.new(adjustment_id:) @@ -11066,21 +12080,11 @@ module Orb class RemovePrice < Orb::BaseModel # The external price id of the price to remove on the subscription. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # The id of the price to remove on the subscription. sig { returns(T.nilable(String)) } - def price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def price_id=(_) - end + attr_accessor :price_id sig do params(external_price_id: T.nilable(String), price_id: T.nilable(String)).returns(T.attached_class) @@ -11106,45 +12110,17 @@ module Orb ) ) end - def adjustment - end - - 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 - ) - ) - .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 + attr_accessor :adjustment # The id of the adjustment on the plan to replace in the subscription. sig { returns(String) } - def replaces_adjustment_id - end - - sig { params(_: String).returns(String) } - def replaces_adjustment_id=(_) - end + attr_accessor :replaces_adjustment_id sig do params( adjustment: T.any( Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewPercentageDiscount, + Orb::Util::AnyHash, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewUsageDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewAmountDiscount, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum, @@ -11176,56 +12152,40 @@ module Orb end # The definition of a new adjustment to create and add to the subscription. - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union - Variants = type_template(:out) do - { - fixed: 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 + Variants = + type_template(:out) do + { + fixed: 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 class NewPercentageDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11256,39 +12216,22 @@ module Orb class NewUsageDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11319,39 +12262,22 @@ module Orb class NewAmountDiscount < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11382,48 +12308,26 @@ module Orb class NewMinimum < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11456,39 +12360,22 @@ module Orb class NewMaximum < Orb::BaseModel sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The set of price IDs to which this adjustment applies. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # When false, this adjustment will be applied to a single price. Otherwise, it # will be applied at the invoice level, possibly to multiple prices. sig { returns(T.nilable(T::Boolean)) } - def is_invoice_level - end + attr_reader :is_invoice_level - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + sig { params(is_invoice_level: T::Boolean).void } + attr_writer :is_invoice_level sig do params( @@ -11516,81 +12403,64 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [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 variants + end + end end end class ReplacePrice < Orb::BaseModel # The id of the price on the plan to replace in the subscription. sig { returns(String) } - def replaces_price_id - end - - sig { params(_: String).returns(String) } - def replaces_price_id=(_) - end + attr_accessor :replaces_price_id # The definition of a new allocation price to create and add to the subscription. sig { returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice)) } - def allocation_price - end + attr_reader :allocation_price sig do - params(_: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice)) - .returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice)) - end - def allocation_price=(_) + params( + allocation_price: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :allocation_price # [DEPRECATED] Use add_adjustments instead. The subscription's discounts for the # replacement price. 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])) - end - def discounts=(_) - end + attr_accessor :discounts # The external price id of the price to add to the subscription. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # The new quantity of the price, if the price is a fixed price. - sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity # [DEPRECATED] Use add_adjustments instead. The subscription's maximum amount for # the replacement price. sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for # the replacement price. sig { returns(T.nilable(String)) } - def minimum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The definition of a new price to create and add to the subscription. sig do @@ -11626,90 +12496,24 @@ module Orb ) ) end - def price - end - - sig do - 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::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice - ) - ) - ) - .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::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice - ) - ) - ) - end - def price=(_) - end + attr_accessor :price # The id of the price to add to the subscription. sig { returns(T.nilable(String)) } - def price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def price_id=(_) - end + attr_accessor :price_id sig do params( replaces_price_id: String, - allocation_price: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice), - discounts: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount]), + allocation_price: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice, + Orb::Util::AnyHash + ) + ), + discounts: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount, Orb::Util::AnyHash)] + ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), maximum_amount: T.nilable(String), @@ -11717,6 +12521,7 @@ module Orb price: T.nilable( T.any( Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice, + Orb::Util::AnyHash, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice, @@ -11810,45 +12615,34 @@ module Orb class AllocationPrice < Orb::BaseModel # An amount of the currency to allocate to the customer at the specified cadence. sig { returns(String) } - def amount - end - - sig { params(_: String).returns(String) } - def amount=(_) - end + attr_accessor :amount # The cadence at which to allocate the amount to the customer. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # An ISO 4217 currency string or a custom pricing unit identifier in which to bill # this price. sig { returns(String) } - def currency - end - - sig { params(_: String).returns(String) } - def currency=(_) - end + attr_accessor :currency # Whether the allocated amount should expire at the end of the cadence or roll # over to the next period. sig { returns(T::Boolean) } - def expires_at_end_of_cadence - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def expires_at_end_of_cadence=(_) - end + attr_accessor :expires_at_end_of_cadence # The definition of a new allocation price to create and add to the subscription. sig do - params(amount: String, cadence: Symbol, currency: String, expires_at_end_of_cadence: T::Boolean) + params( + amount: String, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + ) .returns(T.attached_class) end def self.new(amount:, cadence:, currency:, expires_at_end_of_cadence:) @@ -11856,72 +12650,97 @@ module Orb sig do override - .returns({ - amount: String, - cadence: Symbol, - currency: String, - expires_at_end_of_cadence: T::Boolean - }) + .returns( + { + amount: String, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::OrSymbol, + currency: String, + expires_at_end_of_cadence: T::Boolean + } + ) end def to_hash end # The cadence at which to allocate the amount to the customer. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ) + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol + ) - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::Cadence::TaggedSymbol] + ) + end + def values + end + end end end class Discount < Orb::BaseModel - sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + sig { returns(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::OrSymbol) } + attr_accessor :discount_type # Only available if discount_type is `amount`. sig { returns(T.nilable(String)) } - def amount_discount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def amount_discount=(_) - end + attr_accessor :amount_discount # Only available if discount_type is `percentage`. This is a number between 0 # and 1. sig { returns(T.nilable(Float)) } - def percentage_discount - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(T.nilable(Float)) } - def usage_discount - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( - discount_type: Symbol, + discount_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::OrSymbol, amount_discount: T.nilable(String), percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) @@ -11935,7 +12754,7 @@ module Orb override .returns( { - discount_type: Symbol, + discount_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::OrSymbol, amount_discount: T.nilable(String), percentage_discount: T.nilable(Float), usage_discount: T.nilable(Float) @@ -11945,127 +12764,132 @@ module Orb def to_hash end - class DiscountType < Orb::Enum - abstract! + module DiscountType + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType) } + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + PERCENTAGE = + T.let( + :percentage, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::TaggedSymbol + ) + USAGE = + T.let( + :usage, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::TaggedSymbol + ) + AMOUNT = + T.let( + :amount, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::TaggedSymbol + ) - PERCENTAGE = :percentage - USAGE = :usage - AMOUNT = :amount + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::DiscountType::TaggedSymbol] + ) + end + def values + end + end end end # The definition of a new price to create and add to the subscription. - class Price < Orb::Union - abstract! + module Price + extend Orb::Union - Variants = type_template(:out) do - { - fixed: 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::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice - ) - } - end + Variants = + type_template(:out) do + { + fixed: 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::NewSubscriptionScalableMatrixWithUnitPricingPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice + ) + } + end class NewSubscriptionUnitPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig ) end - def unit_config - end + attr_reader :unit_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig + unit_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, + Orb::Util::AnyHash ) + ) + .void end - def unit_config=(_) - end + attr_writer :unit_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -12076,70 +12900,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -12150,58 +12946,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration - sig do - params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + sig do + params( + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::OrSymbol, item_id: String, name: String, - unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, + unit_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, + Orb::Util::AnyHash + ), 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -12209,7 +12995,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -12241,7 +13030,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -12268,28 +13057,70 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class UnitConfig < Orb::BaseModel # Rate per unit of usage sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig { params(unit_amount: String).returns(T.attached_class) } def self.new(unit_amount:) @@ -12303,158 +13134,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig ) end - def package_config - end + attr_reader :package_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig + package_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, + Orb::Util::AnyHash ) + ) + .void end - def package_config=(_) - end + attr_writer :package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -12465,70 +13347,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -12539,58 +13393,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::OrSymbol, item_id: String, name: String, - package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, + package_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, + Orb::Util::AnyHash + ), 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -12598,7 +13442,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -12630,7 +13477,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -12657,38 +13504,75 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class PackageConfig < Orb::BaseModel # A currency amount to rate usage by sig { returns(String) } - def package_amount - end - - sig { params(_: String).returns(String) } - def package_amount=(_) - end + attr_accessor :package_amount # An integer amount to represent package size. For example, 1000 here would divide # usage by 1000 before multiplying by package_amount in rating sig { returns(Integer) } - def package_size - end - - sig { params(_: Integer).returns(Integer) } - def package_size=(_) - end + attr_accessor :package_size sig { params(package_amount: String, package_size: Integer).returns(T.attached_class) } def self.new(package_amount:, package_size:) @@ -12702,158 +13586,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionMatrixPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig do returns( Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig ) end - def matrix_config - end + attr_reader :matrix_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig + matrix_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + Orb::Util::AnyHash ) + ) + .void end - def matrix_config=(_) - end - - sig { returns(Symbol) } - def model_type - end + attr_writer :matrix_config - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + sig { returns(Symbol) } + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -12864,70 +13799,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -12938,58 +13845,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::OrSymbol, item_id: String, - matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + matrix_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + Orb::Util::AnyHash + ), 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -12997,7 +13894,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -13029,7 +13929,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::OrSymbol, item_id: String, matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, model_type: Symbol, @@ -13056,37 +13956,74 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class MatrixConfig < Orb::BaseModel # Default per unit rate for any usage not bucketed into a specified matrix_value sig { returns(String) } - def default_unit_amount - end - - sig { params(_: String).returns(String) } - def default_unit_amount=(_) - end + attr_accessor :default_unit_amount # One or two event property values to evaluate matrix groups by sig { returns(T::Array[T.nilable(String)]) } - def dimensions - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimensions=(_) - end + attr_accessor :dimensions # Matrix values for specified matrix grouping keys sig do @@ -13096,30 +14033,17 @@ module Orb ] ) 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 - ] - ) - end - def matrix_values=(_) - end + attr_accessor :matrix_values sig do params( default_unit_amount: String, dimensions: T::Array[T.nilable(String)], matrix_values: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -13147,21 +14071,11 @@ module Orb # ["region", "tier"] could be used to filter cloud usage by a cloud region and an # instance tier. sig { returns(T::Array[T.nilable(String)]) } - def dimension_values - end - - sig { params(_: T::Array[T.nilable(String)]).returns(T::Array[T.nilable(String)]) } - def dimension_values=(_) - end + attr_accessor :dimension_values # Unit price for the specified dimension_values sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount sig do params( @@ -13181,158 +14095,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig ) end - def tiered_config - end + attr_reader :tiered_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig + tiered_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, + Orb::Util::AnyHash ) + ) + .void end - def tiered_config=(_) - end + attr_writer :tiered_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -13343,70 +14308,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -13417,58 +14354,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::OrSymbol, item_id: String, name: String, - tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, + tiered_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, + Orb::Util::AnyHash + ), 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -13476,7 +14403,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -13508,7 +14438,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -13535,17 +14465,64 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class TieredConfig < Orb::BaseModel @@ -13555,30 +14532,17 @@ module Orb 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 - ] - ) - end - def tiers=(_) + ) end + attr_accessor :tiers sig do params( tiers: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -13602,30 +14566,15 @@ module Orb class Tier < Orb::BaseModel # Inclusive tier starting value sig { returns(Float) } - def first_unit - end - - sig { params(_: Float).returns(Float) } - def first_unit=(_) - end + attr_accessor :first_unit # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Exclusive tier ending value. If null, this is treated as the last tier sig { returns(T.nilable(Float)) } - def last_unit - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def last_unit=(_) - end + attr_accessor :last_unit sig do params( @@ -13648,158 +14597,209 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredBpsPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig do returns( Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig ) end - def tiered_bps_config - end + attr_reader :tiered_bps_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig + tiered_bps_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + Orb::Util::AnyHash ) + ) + .void end - def tiered_bps_config=(_) - end + attr_writer :tiered_bps_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -13810,70 +14810,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -13884,58 +14856,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::OrSymbol, item_id: String, name: String, - tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + tiered_bps_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + Orb::Util::AnyHash + ), 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -13943,7 +14905,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -13975,7 +14940,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -14002,17 +14967,64 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class TieredBpsConfig < Orb::BaseModel @@ -14025,28 +15037,15 @@ module Orb ] ) 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 - ] - ) - end - def tiers=(_) - end + attr_accessor :tiers sig do params( tiers: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -14070,39 +15069,19 @@ module Orb class Tier < Orb::BaseModel # Per-event basis point rate sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Inclusive tier starting value sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # Exclusive tier ending value sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # Per unit maximum to charge sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params( @@ -14135,80 +15114,158 @@ module Orb class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end @@ -14219,74 +15276,47 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig ) end - def bps_config - end + attr_reader :bps_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig + bps_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, + Orb::Util::AnyHash ) + ) + .void end - def bps_config=(_) - end + attr_writer :bps_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -14297,70 +15327,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -14371,58 +15373,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Symbol, + bps_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -14430,7 +15422,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -14463,7 +15458,7 @@ module Orb .returns( { bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -14491,21 +15486,11 @@ module Orb class BpsConfig < Orb::BaseModel # Basis point take rate per event sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Optional currency amount maximum to cap spend per event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig { params(bps: Float, per_unit_maximum: T.nilable(String)).returns(T.attached_class) } def self.new(bps:, per_unit_maximum: nil) @@ -14517,96 +15502,221 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + end + + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end @@ -14617,74 +15727,47 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig ) end - def bulk_bps_config - end + attr_reader :bulk_bps_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig + bulk_bps_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + Orb::Util::AnyHash ) + ) + .void end - def bulk_bps_config=(_) - end + attr_writer :bulk_bps_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -14695,70 +15778,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -14769,58 +15824,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, + bulk_bps_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -14828,7 +15873,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -14861,7 +15909,7 @@ module Orb .returns( { bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -14896,28 +15944,15 @@ module Orb ] ) 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 - ] - ) - end - def tiers=(_) - end + attr_accessor :tiers sig do params( tiers: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -14941,30 +15976,15 @@ module Orb class Tier < Orb::BaseModel # Basis points to rate on sig { returns(Float) } - def bps - end - - sig { params(_: Float).returns(Float) } - def bps=(_) - end + attr_accessor :bps # Upper bound for tier sig { returns(T.nilable(String)) } - def maximum_amount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The maximum amount to charge for any one event sig { returns(T.nilable(String)) } - def per_unit_maximum - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def per_unit_maximum=(_) - end + attr_accessor :per_unit_maximum sig do params(bps: Float, maximum_amount: T.nilable(String), per_unit_maximum: T.nilable(String)) @@ -14988,96 +16008,221 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end @@ -15088,74 +16233,47 @@ module Orb Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig ) end - def bulk_config - end + attr_reader :bulk_config sig do params( - _: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig - ) - .returns( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig + bulk_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, + Orb::Util::AnyHash ) + ) + .void end - def bulk_config=(_) - end + attr_writer :bulk_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -15166,70 +16284,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -15240,58 +16330,48 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Symbol, + bulk_config: T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, + Orb::Util::AnyHash + ), + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -15299,7 +16379,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -15332,7 +16415,7 @@ module Orb .returns( { bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -15366,28 +16449,15 @@ module Orb ] ) 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 - ] - ) - end - def tiers=(_) - end + attr_accessor :tiers sig do params( tiers: T::Array[ - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier, + Orb::Util::AnyHash + ) ] ) .returns(T.attached_class) @@ -15411,21 +16481,11 @@ module Orb class Tier < Orb::BaseModel # Amount per unit sig { returns(String) } - def unit_amount - end - - sig { params(_: String).returns(String) } - def unit_amount=(_) - end + attr_accessor :unit_amount # Upper bound for this tier sig { returns(T.nilable(Float)) } - def maximum_units - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def maximum_units=(_) - end + attr_accessor :maximum_units sig { params(unit_amount: String, maximum_units: T.nilable(Float)).returns(T.attached_class) } def self.new(unit_amount:, maximum_units: nil) @@ -15438,163 +16498,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionThresholdTotalAmountPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def threshold_total_amount_config=(_) - end + attr_accessor :threshold_total_amount_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -15605,70 +16759,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -15679,58 +16805,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -15738,7 +16851,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -15770,7 +16886,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -15797,163 +16913,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_package_config=(_) - end + attr_accessor :tiered_package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -15964,70 +17174,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -16038,58 +17220,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -16097,7 +17266,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -16129,7 +17301,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -16156,163 +17328,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTieredWithMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_minimum_config=(_) - end + attr_accessor :tiered_with_minimum_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -16323,70 +17589,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -16397,58 +17635,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -16456,7 +17681,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -16488,7 +17716,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -16515,163 +17743,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionUnitWithPercentPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_percent_config=(_) - end + attr_accessor :unit_with_percent_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -16682,70 +18004,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -16756,58 +18050,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -16815,7 +18096,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -16847,7 +18131,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -16874,163 +18158,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionPackageWithAllocationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def package_with_allocation_config=(_) - end + attr_accessor :package_with_allocation_config # The id of the billable metric for the price. Only needed if the price is # usage-based. - sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -17041,70 +18419,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -17115,58 +18465,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -17174,7 +18511,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -17206,7 +18546,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -17233,163 +18573,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionTierWithProrationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def tiered_with_proration_config=(_) - end + attr_accessor :tiered_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -17400,70 +18834,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -17474,58 +18880,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -17533,7 +18926,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -17565,7 +18961,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -17592,163 +18988,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionUnitWithProrationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def unit_with_proration_config=(_) - end + attr_accessor :unit_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -17759,70 +19249,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -17833,58 +19295,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -17892,7 +19341,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -17924,7 +19376,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -17951,163 +19403,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedAllocationPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_allocation_config=(_) - end + attr_accessor :grouped_allocation_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -18118,70 +19664,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -18192,58 +19710,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::OrSymbol, grouped_allocation_config: T::Hash[Symbol, T.anything], item_id: String, 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -18251,7 +19756,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -18283,7 +19791,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::OrSymbol, grouped_allocation_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -18310,163 +19818,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. - sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + sig { returns(Integer) } + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_prorated_minimum_config=(_) - end + attr_accessor :grouped_with_prorated_minimum_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -18477,70 +20079,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -18551,58 +20125,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::OrSymbol, grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], item_id: String, 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -18610,7 +20171,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -18642,7 +20206,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::OrSymbol, grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -18669,163 +20233,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionBulkWithProrationPrice < Orb::BaseModel sig { returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def bulk_with_proration_config=(_) - end + attr_accessor :bulk_with_proration_config # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -18836,70 +20494,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -18910,58 +20540,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::OrSymbol, item_id: String, 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 + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -18969,7 +20586,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -19002,7 +20622,7 @@ module Orb .returns( { bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -19028,163 +20648,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionScalableMatrixWithUnitPricingPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_unit_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_unit_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -19195,70 +20909,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -19269,58 +20955,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol, item_id: String, 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -19328,7 +21001,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -19360,7 +21036,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -19387,163 +21063,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionScalableMatrixWithTieredPricingPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def scalable_matrix_with_tiered_pricing_config=(_) - end + attr_accessor :scalable_matrix_with_tiered_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -19554,70 +21324,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -19628,58 +21370,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol, item_id: String, 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::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -19687,7 +21416,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -19719,7 +21451,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, @@ -19746,163 +21478,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionCumulativeGroupedBulkPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def cumulative_grouped_bulk_config=(_) - end + attr_accessor :cumulative_grouped_bulk_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -19913,70 +21739,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -19987,58 +21785,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::OrSymbol, cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], item_id: String, 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::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -20046,7 +21831,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -20078,7 +21866,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::OrSymbol, cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -20105,163 +21893,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionMaxGroupTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def max_group_tiered_package_config=(_) - end + attr_accessor :max_group_tiered_package_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -20272,70 +22154,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -20346,58 +22200,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end - - sig do - params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::OrSymbol, item_id: String, max_group_tiered_package_config: T::Hash[Symbol, T.anything], 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::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -20405,7 +22246,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -20437,7 +22281,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::OrSymbol, item_id: String, max_group_tiered_package_config: T::Hash[Symbol, T.anything], model_type: Symbol, @@ -20464,163 +22308,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_with_metered_minimum_config=(_) - end + attr_accessor :grouped_with_metered_minimum_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -20631,70 +22569,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -20705,58 +22615,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::OrSymbol, grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], item_id: String, 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::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -20764,7 +22661,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -20796,7 +22696,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::OrSymbol, grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -20823,163 +22723,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionMatrixWithDisplayNamePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def matrix_with_display_name_config=(_) - end + attr_accessor :matrix_with_display_name_config sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -20990,70 +22984,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do - params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration + params( + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -21064,58 +23030,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::OrSymbol, item_id: String, matrix_with_display_name_config: T::Hash[Symbol, T.anything], 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::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -21123,7 +23076,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -21155,7 +23111,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::OrSymbol, item_id: String, matrix_with_display_name_config: T::Hash[Symbol, T.anything], model_type: Symbol, @@ -21182,163 +23138,257 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end class NewSubscriptionGroupedTieredPackagePrice < Orb::BaseModel # The cadence to bill for this price on. - sig { returns(Symbol) } - def cadence - end - - sig { params(_: Symbol).returns(Symbol) } - def cadence=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::OrSymbol + ) end + attr_accessor :cadence sig { returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config - end - - sig { params(_: T::Hash[Symbol, T.anything]).returns(T::Hash[Symbol, T.anything]) } - def grouped_tiered_package_config=(_) - end + attr_accessor :grouped_tiered_package_config # The id of the item the price will be associated with. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id sig { returns(Symbol) } - def model_type - end - - sig { params(_: Symbol).returns(Symbol) } - def model_type=(_) - end + attr_accessor :model_type # The name of the price. sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } - def billable_metric_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def billable_metric_id=(_) - end + attr_accessor :billable_metric_id # If the Price represents a fixed cost, the price will be billed in-advance if # this is true, and in-arrears if this is false. sig { returns(T.nilable(T::Boolean)) } - def billed_in_advance - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def billed_in_advance=(_) - end + attr_accessor :billed_in_advance # For custom cadence: specifies the duration of the billing period in days or # months. @@ -21349,70 +23399,42 @@ module Orb ) ) end - def billing_cycle_configuration - end + attr_reader :billing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration + billing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def billing_cycle_configuration=(_) - end + attr_writer :billing_cycle_configuration # The per unit conversion rate of the price currency to the invoicing currency. sig { returns(T.nilable(Float)) } - def conversion_rate - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def conversion_rate=(_) - end + attr_accessor :conversion_rate # An ISO 4217 currency string, or custom pricing unit identifier, in which this # price is billed. sig { returns(T.nilable(String)) } - def currency - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def currency=(_) - end + attr_accessor :currency # An alias for the price. sig { returns(T.nilable(String)) } - def external_price_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def external_price_id=(_) - end + attr_accessor :external_price_id # If the Price represents a fixed cost, this represents the quantity of units # applied. sig { returns(T.nilable(Float)) } - def fixed_price_quantity - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def fixed_price_quantity=(_) - end + attr_accessor :fixed_price_quantity # The property used to group this price on an invoice sig { returns(T.nilable(String)) } - def invoice_grouping_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoice_grouping_key=(_) - end + attr_accessor :invoice_grouping_key # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. @@ -21423,58 +23445,45 @@ module Orb ) ) end - def invoicing_cycle_configuration - end + attr_reader :invoicing_cycle_configuration sig do params( - _: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration - ) - ) - .returns( - T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration + invoicing_cycle_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash ) ) + ) + .void end - def invoicing_cycle_configuration=(_) - end + attr_writer :invoicing_cycle_configuration # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # A transient ID that can be used to reference this price when adding adjustments # in the same API call. sig { returns(T.nilable(String)) } - def reference_id - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reference_id=(_) - end + attr_accessor :reference_id sig do params( - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::OrSymbol, grouped_tiered_package_config: T::Hash[Symbol, T.anything], item_id: String, 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::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration, + Orb::Util::AnyHash + ) ), conversion_rate: T.nilable(Float), currency: T.nilable(String), @@ -21482,7 +23491,10 @@ module Orb fixed_price_quantity: T.nilable(Float), invoice_grouping_key: T.nilable(String), invoicing_cycle_configuration: T.nilable( - Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration, + Orb::Util::AnyHash + ) ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), reference_id: T.nilable(String), @@ -21514,7 +23526,7 @@ module Orb override .returns( { - cadence: Symbol, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::OrSymbol, grouped_tiered_package_config: T::Hash[Symbol, T.anything], item_id: String, model_type: Symbol, @@ -21541,99 +23553,235 @@ module Orb end # The cadence to bill for this price on. - class Cadence < Orb::Enum - abstract! + module Cadence + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + ANNUAL = + T.let( + :annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ) - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::Cadence::TaggedSymbol + ] + ) + end + def values + end + end end class BillingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # For custom cadence: specifies the duration of the billing period in days or # months. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end class InvoicingCycleConfiguration < Orb::BaseModel # The duration of the billing period. sig { returns(Integer) } - def duration - end - - sig { params(_: Integer).returns(Integer) } - def duration=(_) - end + attr_accessor :duration # The unit of billing period duration. - sig { returns(Symbol) } - def duration_unit - end - - sig { params(_: Symbol).returns(Symbol) } - def duration_unit=(_) + sig do + returns( + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) end + attr_accessor :duration_unit # Within each billing cycle, specifies the cadence at which invoices are produced. # If unspecified, a single invoice is produced per billing cycle. - sig { params(duration: Integer, duration_unit: Symbol).returns(T.attached_class) } + sig do + params( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + ) + .returns(T.attached_class) + end def self.new(duration:, duration_unit:) end - sig { override.returns({duration: Integer, duration_unit: Symbol}) } + sig do + override + .returns( + { + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::OrSymbol + } + ) + end def to_hash end # The unit of billing period duration. - class DurationUnit < Orb::Enum - abstract! + module DurationUnit + extend Orb::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit) + end + OrSymbol = + T.type_alias do + T.any( + Symbol, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + end - Value = type_template(:out) { {fixed: Symbol} } + DAY = + T.let( + :day, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) + MONTH = + T.let( + :month, + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ) - DAY = :day - MONTH = :month + class << self + sig do + override + .returns( + T::Array[ + Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::DurationUnit::TaggedSymbol + ] + ) + end + def values + end + end end end end + + class << self + sig do + override + .returns( + [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::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice] + ) + end + def variants + end + end end end 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 a9d41f61..8ef0d50f 100644 --- a/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi +++ b/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi @@ -4,99 +4,59 @@ module Orb module Models class SubscriptionSchedulePlanChangeResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The current plan phase that is active, only if the subscription's plan has # phases. sig { returns(T.nilable(Integer)) } - def active_plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def active_plan_phase_order=(_) - end + attr_accessor :active_plan_phase_order # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. sig { returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval]) } - def adjustment_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval]) - .returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval]) - end - def adjustment_intervals=(_) - end + attr_accessor :adjustment_intervals # Determines whether issued invoices for this subscription will automatically be # charged with the saved payment method on the due date. This property defaults to # the plan's behavior. If null, defaults to the customer's setting. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration) } - def billing_cycle_anchor_configuration - end + attr_reader :billing_cycle_anchor_configuration sig do - params(_: Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration) - .returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration) - end - def billing_cycle_anchor_configuration=(_) + params( + billing_cycle_anchor_configuration: T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :billing_cycle_anchor_configuration # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is not part of the billing period. Set to null for # subscriptions that are not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if the subscription is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # A customer is a buyer of your products, and the other party to the billing # relationship. @@ -117,22 +77,15 @@ module Orb # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. sig { returns(Orb::Models::Customer) } - def customer - end + attr_reader :customer - sig { params(_: Orb::Models::Customer).returns(Orb::Models::Customer) } - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo # The discount intervals for this subscription sorted by the start_date. sig do @@ -146,204 +99,120 @@ module Orb ] ) end - def discount_intervals - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - .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 + attr_accessor :discount_intervals # The date Orb stops billing for this subscription. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule]) } - def fixed_fee_quantity_schedule - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule]) - .returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule]) - end - def fixed_fee_quantity_schedule=(_) - end + attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval]) } - def maximum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval]) - .returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval]) - end - def maximum_intervals=(_) - end + attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval]) } - def minimum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval]) - .returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval]) - end - def minimum_intervals=(_) - end + attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription # invoices as the date that they are due. A value of `0` here represents that the # invoice is due on issue, whereas a value of `30` represents that the customer # has a month to pay the invoice. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # subscribed to by a customer. Plans define the billing behavior of the # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). sig { returns(Orb::Models::Plan) } - def plan - end + attr_reader :plan - sig { params(_: Orb::Models::Plan).returns(Orb::Models::Plan) } - def plan=(_) - end + sig { params(plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash)).void } + attr_writer :plan # The price intervals for this subscription. sig { returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval]) } - def price_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval]) - .returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval]) - end - def price_intervals=(_) - end + attr_accessor :price_intervals sig { returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon)) } - def redeemed_coupon - end + attr_reader :redeemed_coupon sig do - params(_: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon)) - .returns(T.nilable(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon)) - end - def redeemed_coupon=(_) + params( + redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon, Orb::Util::AnyHash)) + ) + .void end + attr_writer :redeemed_coupon # The date Orb starts billing for this subscription. sig { returns(Time) } - def start_date - end + attr_accessor :start_date - sig { params(_: Time).returns(Time) } - def start_date=(_) - end - - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo) } - def trial_info - end + attr_reader :trial_info sig do - params(_: Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo) - .returns(Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo) - end - def trial_info=(_) + params( + trial_info: T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo, Orb::Util::AnyHash) + ) + .void end + attr_writer :trial_info sig do params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval], + adjustment_intervals: T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval, Orb::Util::AnyHash)], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ), 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, + customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash), default_invoice_memo: T.nilable(String), discount_intervals: T::Array[ T.any( Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, + Orb::Util::AnyHash, 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], + fixed_fee_quantity_schedule: T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule, Orb::Util::AnyHash)], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval], + maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval, Orb::Util::AnyHash)], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval], + minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval, Orb::Util::AnyHash)], net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon), + plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash), + price_intervals: T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval, Orb::Util::AnyHash)], + redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon, Orb::Util::AnyHash)), start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo + status: Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::OrSymbol, + trial_info: T.any(Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -409,7 +278,7 @@ module Orb price_intervals: T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval], redeemed_coupon: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon), start_date: Time, - status: Symbol, + status: Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol, trial_info: Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo } ) @@ -419,12 +288,7 @@ module Orb class AdjustmentInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig do returns( @@ -437,64 +301,26 @@ module Orb ) ) end - def adjustment - end - - sig do - params( - _: T.any( - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - .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 + attr_accessor :adjustment # The price interval IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the adjustment interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the adjustment interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( id: String, adjustment: T.any( Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, @@ -530,84 +356,50 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union - Variants = type_template(:out) do - { - fixed: 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 + Variants = + type_template(:out) do + { + fixed: 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 class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -652,67 +444,32 @@ module Orb class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -757,67 +514,32 @@ module Orb class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -862,76 +584,36 @@ module Orb class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -979,67 +661,32 @@ module Orb class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1081,6 +728,17 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [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 variants + end + end end end @@ -1090,33 +748,18 @@ module Orb # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def day - end - - sig { params(_: Integer).returns(Integer) } - def day=(_) - end + attr_accessor :day # The month on which the billing cycle is anchored (e.g. a quarterly price # anchored in February would have cycles starting February, May, August, and # November). sig { returns(T.nilable(Integer)) } - def month - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def month=(_) - end + attr_accessor :month # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). sig { returns(T.nilable(Integer)) } - def year - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def year=(_) - end + attr_accessor :year sig do params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) @@ -1129,72 +772,43 @@ module Orb end end - class DiscountInterval < Orb::Union - abstract! + module DiscountInterval + extend Orb::Union - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval + ) + } + end class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1237,57 +851,27 @@ module Orb class PercentageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # Only available if discount_type is `percentage`.This is a number between 0 # and 1. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1330,57 +914,27 @@ module Orb class UsageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -1419,40 +973,31 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def variants + end + end end class FixedFeeQuantitySchedule < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) @@ -1471,49 +1016,24 @@ module Orb class MaximumInterval < Orb::BaseModel # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the maximum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The maximum amount to charge in a given billing period for the price intervals # this transform applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The start date of the maximum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1547,49 +1067,24 @@ module Orb class MinimumInterval < Orb::BaseModel # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the minimum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The minimum amount to charge in a given billing period for the price intervals # this minimum applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The start date of the minimum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1622,62 +1117,32 @@ module Orb class PriceInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The day of the month that Orb bills for this price sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is exactly the end of the billing period. Set to null if # this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # The end date of the price interval. This is the date that Orb stops billing for # this price. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter to apply to usage queries. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # The fixed fee quantity transitions for this price interval. This is only # relevant for fixed fees. @@ -1688,23 +1153,7 @@ module Orb ) ) 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] - ) - ) - end - def fixed_fee_quantity_transitions=(_) - end + attr_accessor :fixed_fee_quantity_transitions # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -1750,97 +1199,17 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .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 + attr_accessor :price # The start date of the price interval. This is the date that Orb starts billing # for this price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids # The Price Interval resource represents a period of time for which a price will # bill on a subscription. A subscription’s price intervals define its billing @@ -1854,10 +1223,16 @@ module Orb end_date: T.nilable(Time), filter: T.nilable(String), fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition] + T::Array[ + T.any( + Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Util::AnyHash + ) + ] ), price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -1958,28 +1333,13 @@ module Orb class FixedFeeQuantityTransition < Orb::BaseModel sig { returns(Time) } - def effective_date - end - - sig { params(_: Time).returns(Time) } - def effective_date=(_) - end + attr_accessor :effective_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Integer) } - def quantity - end - - sig { params(_: Integer).returns(Integer) } - def quantity=(_) - end + attr_accessor :quantity sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } def self.new(effective_date:, price_id:, quantity:) @@ -1993,28 +1353,13 @@ module Orb class RedeemedCoupon < Orb::BaseModel sig { returns(String) } - def coupon_id - end - - sig { params(_: String).returns(String) } - def coupon_id=(_) - end + attr_accessor :coupon_id sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) @@ -2027,24 +1372,28 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ACTIVE = T.let(:active, Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol) + ENDED = T.let(:ended, Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol) + UPCOMING = T.let(:upcoming, Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol) - ACTIVE = :active - ENDED = :ended - UPCOMING = :upcoming + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol]) } + def values + end + end end class TrialInfo < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } def self.new(end_date:) diff --git a/rbi/lib/orb/models/subscription_trigger_phase_params.rbi b/rbi/lib/orb/models/subscription_trigger_phase_params.rbi index 60e78a95..2a396d38 100644 --- a/rbi/lib/orb/models/subscription_trigger_phase_params.rbi +++ b/rbi/lib/orb/models/subscription_trigger_phase_params.rbi @@ -10,28 +10,18 @@ module Orb # credit note. Consider using this as a safety mechanism if you do not expect # existing invoices to be changed. sig { returns(T.nilable(T::Boolean)) } - def allow_invoice_credit_or_void - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def allow_invoice_credit_or_void=(_) - end + attr_accessor :allow_invoice_credit_or_void # The date on which the phase change should take effect. If not provided, defaults # to today in the customer's timezone. sig { returns(T.nilable(Date)) } - def effective_date - end - - sig { params(_: T.nilable(Date)).returns(T.nilable(Date)) } - def effective_date=(_) - end + attr_accessor :effective_date sig do params( allow_invoice_credit_or_void: T.nilable(T::Boolean), effective_date: T.nilable(Date), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/subscription_trigger_phase_response.rbi b/rbi/lib/orb/models/subscription_trigger_phase_response.rbi index 442a2e9b..c1cf4d2a 100644 --- a/rbi/lib/orb/models/subscription_trigger_phase_response.rbi +++ b/rbi/lib/orb/models/subscription_trigger_phase_response.rbi @@ -4,99 +4,56 @@ module Orb module Models class SubscriptionTriggerPhaseResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The current plan phase that is active, only if the subscription's plan has # phases. sig { returns(T.nilable(Integer)) } - def active_plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def active_plan_phase_order=(_) - end + attr_accessor :active_plan_phase_order # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. sig { returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval]) } - def adjustment_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval]) - .returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval]) - end - def adjustment_intervals=(_) - end + attr_accessor :adjustment_intervals # Determines whether issued invoices for this subscription will automatically be # charged with the saved payment method on the due date. This property defaults to # the plan's behavior. If null, defaults to the customer's setting. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration) } - def billing_cycle_anchor_configuration - end + attr_reader :billing_cycle_anchor_configuration sig do - params(_: Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration) - .returns(Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration) - end - def billing_cycle_anchor_configuration=(_) + params( + billing_cycle_anchor_configuration: T.any(Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_anchor_configuration # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is not part of the billing period. Set to null for # subscriptions that are not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if the subscription is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # A customer is a buyer of your products, and the other party to the billing # relationship. @@ -117,22 +74,15 @@ module Orb # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. sig { returns(Orb::Models::Customer) } - def customer - end + attr_reader :customer - sig { params(_: Orb::Models::Customer).returns(Orb::Models::Customer) } - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo # The discount intervals for this subscription sorted by the start_date. sig do @@ -146,204 +96,115 @@ module Orb ] ) end - def discount_intervals - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - .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 + attr_accessor :discount_intervals # The date Orb stops billing for this subscription. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule]) } - def fixed_fee_quantity_schedule - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule]) - .returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule]) - end - def fixed_fee_quantity_schedule=(_) - end + attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval]) } - def maximum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval]) - .returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval]) - end - def maximum_intervals=(_) - end + attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval]) } - def minimum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval]) - .returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval]) - end - def minimum_intervals=(_) - end + attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription # invoices as the date that they are due. A value of `0` here represents that the # invoice is due on issue, whereas a value of `30` represents that the customer # has a month to pay the invoice. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # subscribed to by a customer. Plans define the billing behavior of the # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). sig { returns(Orb::Models::Plan) } - def plan - end + attr_reader :plan - sig { params(_: Orb::Models::Plan).returns(Orb::Models::Plan) } - def plan=(_) - end + sig { params(plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash)).void } + attr_writer :plan # The price intervals for this subscription. sig { returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval]) } - def price_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval]) - .returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval]) - end - def price_intervals=(_) - end + attr_accessor :price_intervals sig { returns(T.nilable(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon)) } - def redeemed_coupon - end + attr_reader :redeemed_coupon sig do - params(_: T.nilable(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon)) - .returns(T.nilable(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon)) - end - def redeemed_coupon=(_) + params( + redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon, Orb::Util::AnyHash)) + ) + .void end + attr_writer :redeemed_coupon # The date Orb starts billing for this subscription. sig { returns(Time) } - def start_date - end + attr_accessor :start_date - sig { params(_: Time).returns(Time) } - def start_date=(_) - end - - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo) } - def trial_info - end + attr_reader :trial_info sig do - params(_: Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo) - .returns(Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo) - end - def trial_info=(_) + params(trial_info: T.any(Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo, Orb::Util::AnyHash)) + .void end + attr_writer :trial_info sig do params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval], + adjustment_intervals: T::Array[T.any(Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval, Orb::Util::AnyHash)], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: T.any(Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration, Orb::Util::AnyHash), 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, + customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash), default_invoice_memo: T.nilable(String), discount_intervals: T::Array[ T.any( Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, + Orb::Util::AnyHash, 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], + fixed_fee_quantity_schedule: T::Array[T.any(Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule, Orb::Util::AnyHash)], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval], + maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval, Orb::Util::AnyHash)], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval], + minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval, Orb::Util::AnyHash)], net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon), + plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash), + price_intervals: T::Array[T.any(Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval, Orb::Util::AnyHash)], + redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon, Orb::Util::AnyHash)), start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo + status: Orb::Models::SubscriptionTriggerPhaseResponse::Status::OrSymbol, + trial_info: T.any(Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -409,7 +270,7 @@ module Orb price_intervals: T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval], redeemed_coupon: T.nilable(Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon), start_date: Time, - status: Symbol, + status: Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol, trial_info: Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo } ) @@ -419,12 +280,7 @@ module Orb class AdjustmentInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig do returns( @@ -437,64 +293,26 @@ module Orb ) ) end - def adjustment - end - - sig do - params( - _: T.any( - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - .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 + attr_accessor :adjustment # The price interval IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the adjustment interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the adjustment interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( id: String, adjustment: T.any( Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, @@ -530,84 +348,50 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union - Variants = type_template(:out) do - { - fixed: 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 + Variants = + type_template(:out) do + { + fixed: 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 class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -652,67 +436,32 @@ module Orb class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -757,67 +506,32 @@ module Orb class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -862,76 +576,36 @@ module Orb class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -979,67 +653,32 @@ module Orb class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1081,6 +720,17 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [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 variants + end + end end end @@ -1090,33 +740,18 @@ module Orb # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def day - end - - sig { params(_: Integer).returns(Integer) } - def day=(_) - end + attr_accessor :day # The month on which the billing cycle is anchored (e.g. a quarterly price # anchored in February would have cycles starting February, May, August, and # November). sig { returns(T.nilable(Integer)) } - def month - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def month=(_) - end + attr_accessor :month # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). sig { returns(T.nilable(Integer)) } - def year - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def year=(_) - end + attr_accessor :year sig do params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) @@ -1129,72 +764,43 @@ module Orb end end - class DiscountInterval < Orb::Union - abstract! + module DiscountInterval + extend Orb::Union - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval + ) + } + end class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1237,57 +843,27 @@ module Orb class PercentageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # Only available if discount_type is `percentage`.This is a number between 0 # and 1. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1330,57 +906,27 @@ module Orb class UsageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -1419,40 +965,31 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def variants + end + end end class FixedFeeQuantitySchedule < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) @@ -1471,49 +1008,24 @@ module Orb class MaximumInterval < Orb::BaseModel # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the maximum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The maximum amount to charge in a given billing period for the price intervals # this transform applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The start date of the maximum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1547,49 +1059,24 @@ module Orb class MinimumInterval < Orb::BaseModel # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the minimum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The minimum amount to charge in a given billing period for the price intervals # this minimum applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The start date of the minimum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1622,62 +1109,32 @@ module Orb class PriceInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The day of the month that Orb bills for this price sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is exactly the end of the billing period. Set to null if # this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # The end date of the price interval. This is the date that Orb stops billing for # this price. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter to apply to usage queries. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # The fixed fee quantity transitions for this price interval. This is only # relevant for fixed fees. @@ -1688,23 +1145,7 @@ module Orb ) ) 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] - ) - ) - end - def fixed_fee_quantity_transitions=(_) - end + attr_accessor :fixed_fee_quantity_transitions # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -1750,97 +1191,17 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .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 + attr_accessor :price # The start date of the price interval. This is the date that Orb starts billing # for this price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids # The Price Interval resource represents a period of time for which a price will # bill on a subscription. A subscription’s price intervals define its billing @@ -1854,10 +1215,16 @@ module Orb end_date: T.nilable(Time), filter: T.nilable(String), fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition] + T::Array[ + T.any( + Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Util::AnyHash + ) + ] ), price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -1958,28 +1325,13 @@ module Orb class FixedFeeQuantityTransition < Orb::BaseModel sig { returns(Time) } - def effective_date - end - - sig { params(_: Time).returns(Time) } - def effective_date=(_) - end + attr_accessor :effective_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Integer) } - def quantity - end - - sig { params(_: Integer).returns(Integer) } - def quantity=(_) - end + attr_accessor :quantity sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } def self.new(effective_date:, price_id:, quantity:) @@ -1993,28 +1345,13 @@ module Orb class RedeemedCoupon < Orb::BaseModel sig { returns(String) } - def coupon_id - end - - sig { params(_: String).returns(String) } - def coupon_id=(_) - end + attr_accessor :coupon_id sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) @@ -2027,24 +1364,27 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ACTIVE = T.let(:active, Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol) + ENDED = T.let(:ended, Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol) + UPCOMING = T.let(:upcoming, Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol) - ACTIVE = :active - ENDED = :ended - UPCOMING = :upcoming + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionTriggerPhaseResponse::Status::TaggedSymbol]) } + def values + end + end end class TrialInfo < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } def self.new(end_date:) diff --git a/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi b/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi index 453c72f2..8dba58ba 100644 --- a/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi b/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi index 7db22e01..d0c8eb8a 100644 --- a/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi @@ -4,99 +4,59 @@ module Orb module Models class SubscriptionUnscheduleCancellationResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The current plan phase that is active, only if the subscription's plan has # phases. sig { returns(T.nilable(Integer)) } - def active_plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def active_plan_phase_order=(_) - end + attr_accessor :active_plan_phase_order # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval]) } - def adjustment_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval]) - .returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval]) - end - def adjustment_intervals=(_) - end + attr_accessor :adjustment_intervals # Determines whether issued invoices for this subscription will automatically be # charged with the saved payment method on the due date. This property defaults to # the plan's behavior. If null, defaults to the customer's setting. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration) } - def billing_cycle_anchor_configuration - end + attr_reader :billing_cycle_anchor_configuration sig do - params(_: Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration) - .returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration) - end - def billing_cycle_anchor_configuration=(_) + params( + billing_cycle_anchor_configuration: T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :billing_cycle_anchor_configuration # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is not part of the billing period. Set to null for # subscriptions that are not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if the subscription is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # A customer is a buyer of your products, and the other party to the billing # relationship. @@ -117,22 +77,15 @@ module Orb # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. sig { returns(Orb::Models::Customer) } - def customer - end + attr_reader :customer - sig { params(_: Orb::Models::Customer).returns(Orb::Models::Customer) } - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo # The discount intervals for this subscription sorted by the start_date. sig do @@ -146,204 +99,129 @@ module Orb ] ) end - def discount_intervals - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - .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 + attr_accessor :discount_intervals # The date Orb stops billing for this subscription. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date 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]) - end - def fixed_fee_quantity_schedule=(_) - end + attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval]) } - def maximum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval]) - .returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval]) - end - def maximum_intervals=(_) - end + attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval]) } - def minimum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval]) - .returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval]) - end - def minimum_intervals=(_) - end + attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription # invoices as the date that they are due. A value of `0` here represents that the # invoice is due on issue, whereas a value of `30` represents that the customer # has a month to pay the invoice. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # subscribed to by a customer. Plans define the billing behavior of the # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). sig { returns(Orb::Models::Plan) } - def plan - end + attr_reader :plan - sig { params(_: Orb::Models::Plan).returns(Orb::Models::Plan) } - def plan=(_) - end + sig { params(plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash)).void } + attr_writer :plan # The price intervals for this subscription. sig { returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval]) } - def price_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval]) - .returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval]) - end - def price_intervals=(_) - end + attr_accessor :price_intervals sig { returns(T.nilable(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon)) } - def redeemed_coupon - end + attr_reader :redeemed_coupon sig do - params(_: T.nilable(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon)) - .returns(T.nilable(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon)) - end - def redeemed_coupon=(_) + params( + redeemed_coupon: T.nilable( + T.any(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :redeemed_coupon # The date Orb starts billing for this subscription. sig { returns(Time) } - def start_date - end + attr_accessor :start_date - sig { params(_: Time).returns(Time) } - def start_date=(_) - end - - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo) } - def trial_info - end + attr_reader :trial_info sig do - params(_: Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo) - .returns(Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo) - end - def trial_info=(_) + params( + trial_info: T.any(Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo, Orb::Util::AnyHash) + ) + .void end + attr_writer :trial_info sig do params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval], + adjustment_intervals: T::Array[T.any(Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval, Orb::Util::AnyHash)], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ), 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, + customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash), default_invoice_memo: T.nilable(String), discount_intervals: T::Array[ T.any( Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, + Orb::Util::AnyHash, 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], + fixed_fee_quantity_schedule: T::Array[ + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule, + Orb::Util::AnyHash + ) + ], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval], + maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval, Orb::Util::AnyHash)], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval], + minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval, Orb::Util::AnyHash)], net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon), + plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash), + price_intervals: T::Array[T.any(Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval, Orb::Util::AnyHash)], + redeemed_coupon: T.nilable( + T.any(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon, Orb::Util::AnyHash) + ), start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo + status: Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::OrSymbol, + trial_info: T.any(Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -409,7 +287,7 @@ module Orb price_intervals: T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval], redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon), start_date: Time, - status: Symbol, + status: Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::TaggedSymbol, trial_info: Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo } ) @@ -419,12 +297,7 @@ module Orb class AdjustmentInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig do returns( @@ -437,64 +310,26 @@ module Orb ) ) end - def adjustment - end - - sig do - params( - _: T.any( - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - .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 + attr_accessor :adjustment # The price interval IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the adjustment interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the adjustment interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( id: String, adjustment: T.any( Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, @@ -530,84 +365,50 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union - Variants = type_template(:out) do - { - fixed: 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 + Variants = + type_template(:out) do + { + fixed: 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 class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -652,67 +453,32 @@ module Orb class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -757,67 +523,32 @@ module Orb class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -862,76 +593,36 @@ module Orb class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -979,67 +670,32 @@ module Orb class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1081,6 +737,17 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [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 variants + end + end end end @@ -1090,33 +757,18 @@ module Orb # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def day - end - - sig { params(_: Integer).returns(Integer) } - def day=(_) - end + attr_accessor :day # The month on which the billing cycle is anchored (e.g. a quarterly price # anchored in February would have cycles starting February, May, August, and # November). sig { returns(T.nilable(Integer)) } - def month - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def month=(_) - end + attr_accessor :month # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). sig { returns(T.nilable(Integer)) } - def year - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def year=(_) - end + attr_accessor :year sig do params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) @@ -1129,72 +781,43 @@ module Orb end end - class DiscountInterval < Orb::Union - abstract! + module DiscountInterval + extend Orb::Union - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval + ) + } + end class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1237,57 +860,27 @@ module Orb class PercentageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # Only available if discount_type is `percentage`.This is a number between 0 # and 1. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1330,57 +923,27 @@ module Orb class UsageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -1419,40 +982,31 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def variants + end + end end class FixedFeeQuantitySchedule < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) @@ -1471,49 +1025,24 @@ module Orb class MaximumInterval < Orb::BaseModel # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the maximum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The maximum amount to charge in a given billing period for the price intervals # this transform applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The start date of the maximum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1547,49 +1076,24 @@ module Orb class MinimumInterval < Orb::BaseModel # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the minimum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The minimum amount to charge in a given billing period for the price intervals # this minimum applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The start date of the minimum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1622,62 +1126,32 @@ module Orb class PriceInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The day of the month that Orb bills for this price sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is exactly the end of the billing period. Set to null if # this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # The end date of the price interval. This is the date that Orb stops billing for # this price. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter to apply to usage queries. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # The fixed fee quantity transitions for this price interval. This is only # relevant for fixed fees. @@ -1688,23 +1162,7 @@ module Orb ) ) 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] - ) - ) - end - def fixed_fee_quantity_transitions=(_) - end + attr_accessor :fixed_fee_quantity_transitions # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -1750,97 +1208,17 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .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 + attr_accessor :price # The start date of the price interval. This is the date that Orb starts billing # for this price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids # The Price Interval resource represents a period of time for which a price will # bill on a subscription. A subscription’s price intervals define its billing @@ -1854,10 +1232,16 @@ module Orb end_date: T.nilable(Time), filter: T.nilable(String), fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition] + T::Array[ + T.any( + Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Util::AnyHash + ) + ] ), price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -1958,28 +1342,13 @@ module Orb class FixedFeeQuantityTransition < Orb::BaseModel sig { returns(Time) } - def effective_date - end - - sig { params(_: Time).returns(Time) } - def effective_date=(_) - end + attr_accessor :effective_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Integer) } - def quantity - end - - sig { params(_: Integer).returns(Integer) } - def quantity=(_) - end + attr_accessor :quantity sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } def self.new(effective_date:, price_id:, quantity:) @@ -1993,28 +1362,13 @@ module Orb class RedeemedCoupon < Orb::BaseModel sig { returns(String) } - def coupon_id - end - - sig { params(_: String).returns(String) } - def coupon_id=(_) - end + attr_accessor :coupon_id sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) @@ -2027,24 +1381,29 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ACTIVE = T.let(:active, Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::TaggedSymbol) + ENDED = T.let(:ended, Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::TaggedSymbol) + UPCOMING = + T.let(:upcoming, Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::TaggedSymbol) - ACTIVE = :active - ENDED = :ended - UPCOMING = :upcoming + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::Status::TaggedSymbol]) } + def values + end + end end class TrialInfo < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } def self.new(end_date:) diff --git a/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi b/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi index 8e24e278..b89bd2d7 100644 --- a/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi @@ -8,15 +8,10 @@ module Orb # Price for which the updates should be cleared. Must be a fixed fee. sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig do - params(price_id: String, request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + params(price_id: String, request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)) .returns(T.attached_class) end def self.new(price_id:, request_options: {}) 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 bdafeae5..e904801e 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 @@ -4,109 +4,63 @@ module Orb module Models class SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The current plan phase that is active, only if the subscription's plan has # phases. sig { returns(T.nilable(Integer)) } - def active_plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def active_plan_phase_order=(_) - end + attr_accessor :active_plan_phase_order # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. 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]) - end - def adjustment_intervals=(_) - end + attr_accessor :adjustment_intervals # Determines whether issued invoices for this subscription will automatically be # charged with the saved payment method on the due date. This property defaults to # the plan's behavior. If null, defaults to the customer's setting. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig do returns( Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration ) end - def billing_cycle_anchor_configuration - end + attr_reader :billing_cycle_anchor_configuration sig do params( - _: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration - ) - .returns( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration + billing_cycle_anchor_configuration: T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash ) + ) + .void end - def billing_cycle_anchor_configuration=(_) - end + attr_writer :billing_cycle_anchor_configuration # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is not part of the billing period. Set to null for # subscriptions that are not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if the subscription is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # A customer is a buyer of your products, and the other party to the billing # relationship. @@ -127,22 +81,15 @@ module Orb # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. sig { returns(Orb::Models::Customer) } - def customer - end + attr_reader :customer - sig { params(_: Orb::Models::Customer).returns(Orb::Models::Customer) } - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo # The discount intervals for this subscription sorted by the start_date. sig do @@ -156,212 +103,159 @@ module Orb ] ) end - def discount_intervals - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - .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 + attr_accessor :discount_intervals # The date Orb stops billing for this subscription. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig do returns( T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule] ) end - def fixed_fee_quantity_schedule - end - - sig do - params( - _: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule] - ) - .returns( - T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule] - ) - end - def fixed_fee_quantity_schedule=(_) - end + attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. 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]) - end - def maximum_intervals=(_) - end + attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. 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]) - end - def minimum_intervals=(_) - end + attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription # invoices as the date that they are due. A value of `0` here represents that the # invoice is due on issue, whereas a value of `30` represents that the customer # has a month to pay the invoice. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # subscribed to by a customer. Plans define the billing behavior of the # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). sig { returns(Orb::Models::Plan) } - def plan - end + attr_reader :plan - sig { params(_: Orb::Models::Plan).returns(Orb::Models::Plan) } - def plan=(_) - end + sig { params(plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash)).void } + attr_writer :plan # The price intervals for this subscription. 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]) - end - def price_intervals=(_) - end + attr_accessor :price_intervals sig { returns(T.nilable(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon)) } - def redeemed_coupon - end + attr_reader :redeemed_coupon sig do - params(_: T.nilable(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon)) - .returns(T.nilable(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon)) - end - def redeemed_coupon=(_) + params( + redeemed_coupon: T.nilable( + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon, + Orb::Util::AnyHash + ) + ) + ) + .void end + attr_writer :redeemed_coupon # The date Orb starts billing for this subscription. sig { returns(Time) } - def start_date - end + attr_accessor :start_date - sig { params(_: Time).returns(Time) } - def start_date=(_) - end - - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo) } - def trial_info - end + attr_reader :trial_info sig do - params(_: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo) - .returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo) - end - def trial_info=(_) + params( + trial_info: T.any(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo, Orb::Util::AnyHash) + ) + .void end + attr_writer :trial_info sig do params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval], + adjustment_intervals: T::Array[ + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval, + Orb::Util::AnyHash + ) + ], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ), 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, + customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash), default_invoice_memo: T.nilable(String), discount_intervals: T::Array[ T.any( Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, + Orb::Util::AnyHash, 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], + fixed_fee_quantity_schedule: T::Array[ + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule, + Orb::Util::AnyHash + ) + ], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval], + maximum_intervals: T::Array[ + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval, + Orb::Util::AnyHash + ) + ], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval], + minimum_intervals: T::Array[ + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval, + Orb::Util::AnyHash + ) + ], net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon), + plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash), + price_intervals: T::Array[ + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval, + Orb::Util::AnyHash + ) + ], + redeemed_coupon: T.nilable( + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon, + Orb::Util::AnyHash + ) + ), start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo + status: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::OrSymbol, + trial_info: T.any(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -427,7 +321,7 @@ module Orb price_intervals: T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval], redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon), start_date: Time, - status: Symbol, + status: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol, trial_info: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo } ) @@ -437,12 +331,7 @@ module Orb class AdjustmentInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig do returns( @@ -455,64 +344,26 @@ module Orb ) ) end - def adjustment - end - - sig do - params( - _: T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - .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 + attr_accessor :adjustment # The price interval IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the adjustment interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the adjustment interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( id: String, adjustment: T.any( Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, @@ -548,84 +399,50 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union - Variants = type_template(:out) do - { - fixed: 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 + Variants = + type_template(:out) do + { + fixed: 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 class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -670,67 +487,32 @@ module Orb class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -775,67 +557,32 @@ module Orb class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -880,76 +627,36 @@ module Orb class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -997,67 +704,32 @@ module Orb class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1099,6 +771,17 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [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 variants + end + end end end @@ -1108,33 +791,18 @@ module Orb # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def day - end - - sig { params(_: Integer).returns(Integer) } - def day=(_) - end + attr_accessor :day # The month on which the billing cycle is anchored (e.g. a quarterly price # anchored in February would have cycles starting February, May, August, and # November). sig { returns(T.nilable(Integer)) } - def month - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def month=(_) - end + attr_accessor :month # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). sig { returns(T.nilable(Integer)) } - def year - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def year=(_) - end + attr_accessor :year sig do params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) @@ -1147,72 +815,43 @@ module Orb end end - class DiscountInterval < Orb::Union - abstract! + module DiscountInterval + extend Orb::Union - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval + ) + } + end class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1255,57 +894,27 @@ module Orb class PercentageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # Only available if discount_type is `percentage`.This is a number between 0 # and 1. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1348,57 +957,27 @@ module Orb class UsageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -1437,40 +1016,31 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def variants + end + end end class FixedFeeQuantitySchedule < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) @@ -1489,49 +1059,24 @@ module Orb class MaximumInterval < Orb::BaseModel # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the maximum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The maximum amount to charge in a given billing period for the price intervals # this transform applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The start date of the maximum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1565,49 +1110,24 @@ module Orb class MinimumInterval < Orb::BaseModel # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the minimum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The minimum amount to charge in a given billing period for the price intervals # this minimum applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The start date of the minimum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1640,62 +1160,32 @@ module Orb class PriceInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The day of the month that Orb bills for this price sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is exactly the end of the billing period. Set to null if # this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # The end date of the price interval. This is the date that Orb stops billing for # this price. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter to apply to usage queries. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # The fixed fee quantity transitions for this price interval. This is only # relevant for fixed fees. @@ -1708,27 +1198,7 @@ module Orb ) ) 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 - ] - ) - ) - end - def fixed_fee_quantity_transitions=(_) - end + attr_accessor :fixed_fee_quantity_transitions # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -1774,97 +1244,17 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .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 + attr_accessor :price # The start date of the price interval. This is the date that Orb starts billing # for this price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids # The Price Interval resource represents a period of time for which a price will # bill on a subscription. A subscription’s price intervals define its billing @@ -1879,11 +1269,15 @@ module Orb filter: T.nilable(String), fixed_fee_quantity_transitions: T.nilable( T::Array[ - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition + T.any( + Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Util::AnyHash + ) ] ), price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -1986,28 +1380,13 @@ module Orb class FixedFeeQuantityTransition < Orb::BaseModel sig { returns(Time) } - def effective_date - end - - sig { params(_: Time).returns(Time) } - def effective_date=(_) - end + attr_accessor :effective_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Integer) } - def quantity - end - - sig { params(_: Integer).returns(Integer) } - def quantity=(_) - end + attr_accessor :quantity sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } def self.new(effective_date:, price_id:, quantity:) @@ -2021,28 +1400,13 @@ module Orb class RedeemedCoupon < Orb::BaseModel sig { returns(String) } - def coupon_id - end - - sig { params(_: String).returns(String) } - def coupon_id=(_) - end + attr_accessor :coupon_id sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) @@ -2055,24 +1419,36 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ACTIVE = + T.let(:active, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol) + ENDED = + T.let(:ended, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol) + UPCOMING = + T.let(:upcoming, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol) - ACTIVE = :active - ENDED = :ended - UPCOMING = :upcoming + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::Status::TaggedSymbol] + ) + end + def values + end + end end class TrialInfo < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } def self.new(end_date:) diff --git a/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rbi b/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rbi index 19f23250..172dfc61 100644 --- a/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +++ b/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi b/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi index e7ee633d..fa3c2827 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 @@ -4,99 +4,59 @@ module Orb module Models class SubscriptionUnschedulePendingPlanChangesResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The current plan phase that is active, only if the subscription's plan has # phases. sig { returns(T.nilable(Integer)) } - def active_plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def active_plan_phase_order=(_) - end + attr_accessor :active_plan_phase_order # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. 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]) - end - def adjustment_intervals=(_) - end + attr_accessor :adjustment_intervals # Determines whether issued invoices for this subscription will automatically be # charged with the saved payment method on the due date. This property defaults to # the plan's behavior. If null, defaults to the customer's setting. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration) } - def billing_cycle_anchor_configuration - end + attr_reader :billing_cycle_anchor_configuration sig do - params(_: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration) - .returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration) - end - def billing_cycle_anchor_configuration=(_) + params( + billing_cycle_anchor_configuration: T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :billing_cycle_anchor_configuration # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is not part of the billing period. Set to null for # subscriptions that are not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if the subscription is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # A customer is a buyer of your products, and the other party to the billing # relationship. @@ -117,22 +77,15 @@ module Orb # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. sig { returns(Orb::Models::Customer) } - def customer - end + attr_reader :customer - sig { params(_: Orb::Models::Customer).returns(Orb::Models::Customer) } - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo # The discount intervals for this subscription sorted by the start_date. sig do @@ -146,206 +99,134 @@ module Orb ] ) end - def discount_intervals - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - .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 + attr_accessor :discount_intervals # The date Orb stops billing for this subscription. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date 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]) - end - def fixed_fee_quantity_schedule=(_) - end + attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. 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]) - end - def maximum_intervals=(_) - end + attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. 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]) - end - def minimum_intervals=(_) - end + attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription # invoices as the date that they are due. A value of `0` here represents that the # invoice is due on issue, whereas a value of `30` represents that the customer # has a month to pay the invoice. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # subscribed to by a customer. Plans define the billing behavior of the # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). sig { returns(Orb::Models::Plan) } - def plan - end + attr_reader :plan - sig { params(_: Orb::Models::Plan).returns(Orb::Models::Plan) } - def plan=(_) - end + sig { params(plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash)).void } + attr_writer :plan # The price intervals for this subscription. sig { returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval]) } - def price_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval]) - .returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval]) - end - def price_intervals=(_) - end + attr_accessor :price_intervals sig { returns(T.nilable(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon)) } - def redeemed_coupon - end + attr_reader :redeemed_coupon sig do - params(_: T.nilable(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon)) - .returns(T.nilable(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon)) - end - def redeemed_coupon=(_) + params( + redeemed_coupon: T.nilable( + T.any(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :redeemed_coupon # The date Orb starts billing for this subscription. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end - - sig { returns(Symbol) } - def status - end + attr_accessor :start_date - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo) } - def trial_info - end + attr_reader :trial_info sig do - params(_: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo) - .returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo) - end - def trial_info=(_) + params( + trial_info: T.any(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo, Orb::Util::AnyHash) + ) + .void end + attr_writer :trial_info sig do params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval], + adjustment_intervals: T::Array[ + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval, + Orb::Util::AnyHash + ) + ], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ), 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, + customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash), default_invoice_memo: T.nilable(String), discount_intervals: T::Array[ T.any( Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, + Orb::Util::AnyHash, 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], + fixed_fee_quantity_schedule: T::Array[ + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule, + Orb::Util::AnyHash + ) + ], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval], + maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval, Orb::Util::AnyHash)], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval], + minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval, Orb::Util::AnyHash)], net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon), + plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash), + price_intervals: T::Array[T.any(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval, Orb::Util::AnyHash)], + redeemed_coupon: T.nilable( + T.any(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon, Orb::Util::AnyHash) + ), start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo + status: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::OrSymbol, + trial_info: T.any(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -411,7 +292,7 @@ module Orb price_intervals: T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval], redeemed_coupon: T.nilable(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon), start_date: Time, - status: Symbol, + status: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol, trial_info: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo } ) @@ -421,12 +302,7 @@ module Orb class AdjustmentInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig do returns( @@ -439,64 +315,26 @@ module Orb ) ) end - def adjustment - end - - sig do - params( - _: T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - .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 + attr_accessor :adjustment # The price interval IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the adjustment interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the adjustment interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( id: String, adjustment: T.any( Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, @@ -532,84 +370,50 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union - Variants = type_template(:out) do - { - fixed: 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 + Variants = + type_template(:out) do + { + fixed: 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 class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -654,67 +458,32 @@ module Orb class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -759,67 +528,32 @@ module Orb class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -864,76 +598,36 @@ module Orb class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -981,67 +675,32 @@ module Orb class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1083,6 +742,17 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [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 variants + end + end end end @@ -1092,33 +762,18 @@ module Orb # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def day - end - - sig { params(_: Integer).returns(Integer) } - def day=(_) - end + attr_accessor :day # The month on which the billing cycle is anchored (e.g. a quarterly price # anchored in February would have cycles starting February, May, August, and # November). sig { returns(T.nilable(Integer)) } - def month - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def month=(_) - end + attr_accessor :month # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). sig { returns(T.nilable(Integer)) } - def year - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def year=(_) - end + attr_accessor :year sig do params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) @@ -1131,72 +786,43 @@ module Orb end end - class DiscountInterval < Orb::Union - abstract! + module DiscountInterval + extend Orb::Union - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval + ) + } + end class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1239,57 +865,27 @@ module Orb class PercentageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # Only available if discount_type is `percentage`.This is a number between 0 # and 1. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1332,57 +928,27 @@ module Orb class UsageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -1421,40 +987,31 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def variants + end + end end class FixedFeeQuantitySchedule < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) @@ -1473,49 +1030,24 @@ module Orb class MaximumInterval < Orb::BaseModel # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the maximum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The maximum amount to charge in a given billing period for the price intervals # this transform applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The start date of the maximum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1549,49 +1081,24 @@ module Orb class MinimumInterval < Orb::BaseModel # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the minimum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The minimum amount to charge in a given billing period for the price intervals # this minimum applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The start date of the minimum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1624,62 +1131,32 @@ module Orb class PriceInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The day of the month that Orb bills for this price sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is exactly the end of the billing period. Set to null if # this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # The end date of the price interval. This is the date that Orb stops billing for # this price. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter to apply to usage queries. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # The fixed fee quantity transitions for this price interval. This is only # relevant for fixed fees. @@ -1690,23 +1167,7 @@ module Orb ) ) 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] - ) - ) - end - def fixed_fee_quantity_transitions=(_) - end + attr_accessor :fixed_fee_quantity_transitions # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -1752,97 +1213,17 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .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 + attr_accessor :price # The start date of the price interval. This is the date that Orb starts billing # for this price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids # The Price Interval resource represents a period of time for which a price will # bill on a subscription. A subscription’s price intervals define its billing @@ -1856,10 +1237,16 @@ module Orb end_date: T.nilable(Time), filter: T.nilable(String), fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition] + T::Array[ + T.any( + Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Util::AnyHash + ) + ] ), price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -1960,28 +1347,13 @@ module Orb class FixedFeeQuantityTransition < Orb::BaseModel sig { returns(Time) } - def effective_date - end - - sig { params(_: Time).returns(Time) } - def effective_date=(_) - end + attr_accessor :effective_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Integer) } - def quantity - end - - sig { params(_: Integer).returns(Integer) } - def quantity=(_) - end + attr_accessor :quantity sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } def self.new(effective_date:, price_id:, quantity:) @@ -1995,28 +1367,13 @@ module Orb class RedeemedCoupon < Orb::BaseModel sig { returns(String) } - def coupon_id - end - - sig { params(_: String).returns(String) } - def coupon_id=(_) - end + attr_accessor :coupon_id sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) @@ -2029,24 +1386,34 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol) } - ACTIVE = :active - ENDED = :ended - UPCOMING = :upcoming + ACTIVE = + T.let(:active, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol) + ENDED = + T.let(:ended, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol) + UPCOMING = + T.let(:upcoming, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::Status::TaggedSymbol]) + end + def values + end + end end class TrialInfo < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } def self.new(end_date:) 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 f368fa4b..7c8971de 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 @@ -8,62 +8,40 @@ module Orb # Price for which the quantity should be updated. Must be a fixed fee. sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity # If false, this request will fail if it would void an issued invoice or create a # credit note. Consider using this as a safety mechanism if you do not expect # existing invoices to be changed. sig { returns(T.nilable(T::Boolean)) } - def allow_invoice_credit_or_void - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def allow_invoice_credit_or_void=(_) - end + attr_accessor :allow_invoice_credit_or_void # Determines when the change takes effect. Note that if `effective_date` is # specified, this defaults to `effective_date`. Otherwise, this defaults to # `immediate` unless it's explicitly set to `upcoming_invoice`. - sig { returns(T.nilable(Symbol)) } - def change_option - end + sig { returns(T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::OrSymbol)) } + attr_reader :change_option - sig { params(_: Symbol).returns(Symbol) } - def change_option=(_) - end + sig { params(change_option: Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::OrSymbol).void } + attr_writer :change_option # The date that the quantity change should take effect, localized to the # customer's timezone. Ifthis parameter is not passed in, the quantity change is # effective according to `change_option`. sig { returns(T.nilable(Date)) } - def effective_date - end - - sig { params(_: T.nilable(Date)).returns(T.nilable(Date)) } - def effective_date=(_) - end + attr_accessor :effective_date sig do params( price_id: String, quantity: Float, allow_invoice_credit_or_void: T.nilable(T::Boolean), - change_option: Symbol, + change_option: Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::OrSymbol, effective_date: T.nilable(Date), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -84,7 +62,7 @@ module Orb price_id: String, quantity: Float, allow_invoice_credit_or_void: T.nilable(T::Boolean), - change_option: Symbol, + change_option: Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::OrSymbol, effective_date: T.nilable(Date), request_options: Orb::RequestOptions } @@ -96,14 +74,32 @@ module Orb # Determines when the change takes effect. Note that if `effective_date` is # specified, this defaults to `effective_date`. Otherwise, this defaults to # `immediate` unless it's explicitly set to `upcoming_invoice`. - class ChangeOption < Orb::Enum - abstract! - - Value = type_template(:out) { {fixed: Symbol} } - - IMMEDIATE = :immediate - UPCOMING_INVOICE = :upcoming_invoice - EFFECTIVE_DATE = :effective_date + module ChangeOption + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::TaggedSymbol) } + + IMMEDIATE = + T.let(:immediate, Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::TaggedSymbol) + UPCOMING_INVOICE = + T.let( + :upcoming_invoice, + Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::TaggedSymbol + ) + EFFECTIVE_DATE = + T.let(:effective_date, Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::TaggedSymbol) + + class << self + sig do + override + .returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::TaggedSymbol]) + end + def values + end + end end end 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 a0deab96..eeb1d649 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 @@ -4,99 +4,59 @@ module Orb module Models class SubscriptionUpdateFixedFeeQuantityResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The current plan phase that is active, only if the subscription's plan has # phases. sig { returns(T.nilable(Integer)) } - def active_plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def active_plan_phase_order=(_) - end + attr_accessor :active_plan_phase_order # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. sig { returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval]) } - def adjustment_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval]) - .returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval]) - end - def adjustment_intervals=(_) - end + attr_accessor :adjustment_intervals # Determines whether issued invoices for this subscription will automatically be # charged with the saved payment method on the due date. This property defaults to # the plan's behavior. If null, defaults to the customer's setting. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration) } - def billing_cycle_anchor_configuration - end + attr_reader :billing_cycle_anchor_configuration sig do - params(_: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration) - .returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration) - end - def billing_cycle_anchor_configuration=(_) + params( + billing_cycle_anchor_configuration: T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :billing_cycle_anchor_configuration # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is not part of the billing period. Set to null for # subscriptions that are not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if the subscription is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # A customer is a buyer of your products, and the other party to the billing # relationship. @@ -117,22 +77,15 @@ module Orb # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. sig { returns(Orb::Models::Customer) } - def customer - end + attr_reader :customer - sig { params(_: Orb::Models::Customer).returns(Orb::Models::Customer) } - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo # The discount intervals for this subscription sorted by the start_date. sig do @@ -146,204 +99,129 @@ module Orb ] ) end - def discount_intervals - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - .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 + attr_accessor :discount_intervals # The date Orb stops billing for this subscription. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date 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]) - end - def fixed_fee_quantity_schedule=(_) - end + attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval]) } - def maximum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval]) - .returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval]) - end - def maximum_intervals=(_) - end + attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval]) } - def minimum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval]) - .returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval]) - end - def minimum_intervals=(_) - end + attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription # invoices as the date that they are due. A value of `0` here represents that the # invoice is due on issue, whereas a value of `30` represents that the customer # has a month to pay the invoice. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # subscribed to by a customer. Plans define the billing behavior of the # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). sig { returns(Orb::Models::Plan) } - def plan - end + attr_reader :plan - sig { params(_: Orb::Models::Plan).returns(Orb::Models::Plan) } - def plan=(_) - end + sig { params(plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash)).void } + attr_writer :plan # The price intervals for this subscription. sig { returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval]) } - def price_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval]) - .returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval]) - end - def price_intervals=(_) - end + attr_accessor :price_intervals sig { returns(T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon)) } - def redeemed_coupon - end + attr_reader :redeemed_coupon sig do - params(_: T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon)) - .returns(T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon)) - end - def redeemed_coupon=(_) + params( + redeemed_coupon: T.nilable( + T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon, Orb::Util::AnyHash) + ) + ) + .void end + attr_writer :redeemed_coupon # The date Orb starts billing for this subscription. sig { returns(Time) } - def start_date - end + attr_accessor :start_date - sig { params(_: Time).returns(Time) } - def start_date=(_) - end - - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo) } - def trial_info - end + attr_reader :trial_info sig do - params(_: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo) - .returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo) - end - def trial_info=(_) + params( + trial_info: T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo, Orb::Util::AnyHash) + ) + .void end + attr_writer :trial_info sig do params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval], + adjustment_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval, Orb::Util::AnyHash)], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ), 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, + customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash), default_invoice_memo: T.nilable(String), discount_intervals: T::Array[ T.any( Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, + Orb::Util::AnyHash, 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], + fixed_fee_quantity_schedule: T::Array[ + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule, + Orb::Util::AnyHash + ) + ], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval], + maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval, Orb::Util::AnyHash)], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval], + minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval, Orb::Util::AnyHash)], net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon), + plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash), + price_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval, Orb::Util::AnyHash)], + redeemed_coupon: T.nilable( + T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon, Orb::Util::AnyHash) + ), start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo + status: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::OrSymbol, + trial_info: T.any(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -409,7 +287,7 @@ module Orb price_intervals: T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval], redeemed_coupon: T.nilable(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon), start_date: Time, - status: Symbol, + status: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol, trial_info: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo } ) @@ -419,12 +297,7 @@ module Orb class AdjustmentInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig do returns( @@ -437,64 +310,26 @@ module Orb ) ) end - def adjustment - end - - sig do - params( - _: T.any( - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - .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 + attr_accessor :adjustment # The price interval IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the adjustment interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the adjustment interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( id: String, adjustment: T.any( Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, @@ -530,84 +365,50 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union - Variants = type_template(:out) do - { - fixed: 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 + Variants = + type_template(:out) do + { + fixed: 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 class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -652,67 +453,32 @@ module Orb class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -757,67 +523,32 @@ module Orb class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -862,76 +593,36 @@ module Orb class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -979,67 +670,32 @@ module Orb class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1081,6 +737,17 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [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 variants + end + end end end @@ -1090,33 +757,18 @@ module Orb # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def day - end - - sig { params(_: Integer).returns(Integer) } - def day=(_) - end + attr_accessor :day # The month on which the billing cycle is anchored (e.g. a quarterly price # anchored in February would have cycles starting February, May, August, and # November). sig { returns(T.nilable(Integer)) } - def month - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def month=(_) - end + attr_accessor :month # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). sig { returns(T.nilable(Integer)) } - def year - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def year=(_) - end + attr_accessor :year sig do params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) @@ -1129,72 +781,43 @@ module Orb end end - class DiscountInterval < Orb::Union - abstract! + module DiscountInterval + extend Orb::Union - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval + ) + } + end class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1237,57 +860,27 @@ module Orb class PercentageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # Only available if discount_type is `percentage`.This is a number between 0 # and 1. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1330,57 +923,27 @@ module Orb class UsageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -1419,40 +982,31 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def variants + end + end end class FixedFeeQuantitySchedule < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) @@ -1471,49 +1025,24 @@ module Orb class MaximumInterval < Orb::BaseModel # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the maximum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The maximum amount to charge in a given billing period for the price intervals # this transform applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The start date of the maximum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1547,49 +1076,24 @@ module Orb class MinimumInterval < Orb::BaseModel # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the minimum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The minimum amount to charge in a given billing period for the price intervals # this minimum applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The start date of the minimum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1622,62 +1126,32 @@ module Orb class PriceInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The day of the month that Orb bills for this price sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is exactly the end of the billing period. Set to null if # this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # The end date of the price interval. This is the date that Orb stops billing for # this price. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter to apply to usage queries. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # The fixed fee quantity transitions for this price interval. This is only # relevant for fixed fees. @@ -1688,23 +1162,7 @@ module Orb ) ) 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] - ) - ) - end - def fixed_fee_quantity_transitions=(_) - end + attr_accessor :fixed_fee_quantity_transitions # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -1750,97 +1208,17 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .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 + attr_accessor :price # The start date of the price interval. This is the date that Orb starts billing # for this price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids # The Price Interval resource represents a period of time for which a price will # bill on a subscription. A subscription’s price intervals define its billing @@ -1854,10 +1232,16 @@ module Orb end_date: T.nilable(Time), filter: T.nilable(String), fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition] + T::Array[ + T.any( + Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Util::AnyHash + ) + ] ), price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -1958,28 +1342,13 @@ module Orb class FixedFeeQuantityTransition < Orb::BaseModel sig { returns(Time) } - def effective_date - end - - sig { params(_: Time).returns(Time) } - def effective_date=(_) - end + attr_accessor :effective_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Integer) } - def quantity - end - - sig { params(_: Integer).returns(Integer) } - def quantity=(_) - end + attr_accessor :quantity sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } def self.new(effective_date:, price_id:, quantity:) @@ -1993,28 +1362,13 @@ module Orb class RedeemedCoupon < Orb::BaseModel sig { returns(String) } - def coupon_id - end - - sig { params(_: String).returns(String) } - def coupon_id=(_) - end + attr_accessor :coupon_id sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) @@ -2027,24 +1381,29 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ACTIVE = T.let(:active, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol) + ENDED = T.let(:ended, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol) + UPCOMING = + T.let(:upcoming, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol) - ACTIVE = :active - ENDED = :ended - UPCOMING = :upcoming + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::Status::TaggedSymbol]) } + def values + end + end end class TrialInfo < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } def self.new(end_date:) diff --git a/rbi/lib/orb/models/subscription_update_params.rbi b/rbi/lib/orb/models/subscription_update_params.rbi index 32083d1f..00fae942 100644 --- a/rbi/lib/orb/models/subscription_update_params.rbi +++ b/rbi/lib/orb/models/subscription_update_params.rbi @@ -10,59 +10,31 @@ module Orb # charged with the saved payment method on the due date. This property defaults to # the plan's behavior. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection # Determines the default memo on this subscription's invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo # When this subscription's accrued usage reaches this threshold, an invoice will # be issued for the subscription. If not specified, invoices will only be issued # at the end of the billing period. sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - def metadata - end - - sig do - params(_: T.nilable(T::Hash[Symbol, T.nilable(String)])) - .returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) - end - def metadata=(_) - end + attr_accessor :metadata # Determines the difference between the invoice issue date for subscription # invoices as the date that they are due. A value of `0` here represents that the # invoice is due on issue, whereas a value of `30` represents that the customer # has a month to pay the invoice. sig { returns(T.nilable(Integer)) } - def net_terms - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def net_terms=(_) - end + attr_accessor :net_terms sig do params( @@ -71,7 +43,7 @@ module Orb invoicing_threshold: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), net_terms: T.nilable(Integer), - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end diff --git a/rbi/lib/orb/models/subscription_update_trial_params.rbi b/rbi/lib/orb/models/subscription_update_trial_params.rbi index 8b58fbd3..46c83d47 100644 --- a/rbi/lib/orb/models/subscription_update_trial_params.rbi +++ b/rbi/lib/orb/models/subscription_update_trial_params.rbi @@ -8,29 +8,22 @@ module Orb # The new date that the trial should end, or the literal string `immediate` to end # the trial immediately. - sig { returns(T.any(Time, Symbol)) } - def trial_end_date - end - - sig { params(_: T.any(Time, Symbol)).returns(T.any(Time, Symbol)) } - def trial_end_date=(_) - end + sig { returns(T.any(Time, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::OrSymbol)) } + attr_accessor :trial_end_date # If true, shifts subsequent price and adjustment intervals (preserving their # durations, but adjusting their absolute dates). sig { returns(T.nilable(T::Boolean)) } - def shift - end + attr_reader :shift - sig { params(_: T::Boolean).returns(T::Boolean) } - def shift=(_) - end + sig { params(shift: T::Boolean).void } + attr_writer :shift sig do params( - trial_end_date: T.any(Time, Symbol), + trial_end_date: T.any(Time, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::OrSymbol), shift: T::Boolean, - request_options: T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]) + request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -39,28 +32,35 @@ module Orb sig do override - .returns({ - trial_end_date: T.any(Time, Symbol), - shift: T::Boolean, - request_options: Orb::RequestOptions - }) + .returns( + { + trial_end_date: T.any(Time, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::OrSymbol), + shift: T::Boolean, + request_options: Orb::RequestOptions + } + ) end def to_hash end # The new date that the trial should end, or the literal string `immediate` to end # the trial immediately. - class TrialEndDate < Orb::Union - abstract! + module TrialEndDate + extend Orb::Union - Variants = type_template(:out) { {fixed: T.any(Time, Symbol)} } + Variants = + type_template(:out) { {fixed: T.any(Time, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::OrSymbol)} } - class UnionMember1 < Orb::Enum - abstract! + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + IMMEDIATE = T.let(:immediate, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::TaggedSymbol) - IMMEDIATE = :immediate + class << self + sig { override.returns([Time, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::OrSymbol]) } + def variants + end end end end diff --git a/rbi/lib/orb/models/subscription_update_trial_response.rbi b/rbi/lib/orb/models/subscription_update_trial_response.rbi index de6b282f..344d1fc2 100644 --- a/rbi/lib/orb/models/subscription_update_trial_response.rbi +++ b/rbi/lib/orb/models/subscription_update_trial_response.rbi @@ -4,99 +4,56 @@ module Orb module Models class SubscriptionUpdateTrialResponse < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The current plan phase that is active, only if the subscription's plan has # phases. sig { returns(T.nilable(Integer)) } - def active_plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def active_plan_phase_order=(_) - end + attr_accessor :active_plan_phase_order # The adjustment intervals for this subscription sorted by the start_date of the # adjustment interval. sig { returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval]) } - def adjustment_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval]) - .returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval]) - end - def adjustment_intervals=(_) - end + attr_accessor :adjustment_intervals # Determines whether issued invoices for this subscription will automatically be # charged with the saved payment method on the due date. This property defaults to # the plan's behavior. If null, defaults to the customer's setting. sig { returns(T.nilable(T::Boolean)) } - def auto_collection - end - - sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } - def auto_collection=(_) - end + attr_accessor :auto_collection sig { returns(Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration) } - def billing_cycle_anchor_configuration - end + attr_reader :billing_cycle_anchor_configuration sig do - params(_: Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration) - .returns(Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration) - end - def billing_cycle_anchor_configuration=(_) + params( + billing_cycle_anchor_configuration: T.any(Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration, Orb::Util::AnyHash) + ) + .void end + attr_writer :billing_cycle_anchor_configuration # The day of the month on which the billing cycle is anchored. If the maximum # number of days in a month is greater than this value, the last day of the month # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day sig { returns(Time) } - def created_at - end - - sig { params(_: Time).returns(Time) } - def created_at=(_) - end + attr_accessor :created_at # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is not part of the billing period. Set to null for # subscriptions that are not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if the subscription is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # A customer is a buyer of your products, and the other party to the billing # relationship. @@ -117,22 +74,15 @@ module Orb # your account's timezone. See [Timezone localization](/essentials/timezones) for # information on what this timezone parameter influences within Orb. sig { returns(Orb::Models::Customer) } - def customer - end + attr_reader :customer - sig { params(_: Orb::Models::Customer).returns(Orb::Models::Customer) } - def customer=(_) - end + sig { params(customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash)).void } + attr_writer :customer # Determines the default memo on this subscriptions' invoices. Note that if this # is not provided, it is determined by the plan configuration. sig { returns(T.nilable(String)) } - def default_invoice_memo - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def default_invoice_memo=(_) - end + attr_accessor :default_invoice_memo # The discount intervals for this subscription sorted by the start_date. sig do @@ -146,204 +96,112 @@ module Orb ] ) end - def discount_intervals - end - - sig do - params( - _: T::Array[ - T.any( - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval - ) - ] - ) - .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 + attr_accessor :discount_intervals # The date Orb stops billing for this subscription. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule]) } - def fixed_fee_quantity_schedule - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule]) - .returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule]) - end - def fixed_fee_quantity_schedule=(_) - end + attr_accessor :fixed_fee_quantity_schedule sig { returns(T.nilable(String)) } - def invoicing_threshold - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def invoicing_threshold=(_) - end + attr_accessor :invoicing_threshold # The maximum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval]) } - def maximum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval]) - .returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval]) - end - def maximum_intervals=(_) - end + attr_accessor :maximum_intervals # User specified key-value pairs for the resource. If not present, this defaults # to an empty dictionary. Individual keys can be removed by setting the value to # `null`, and the entire metadata mapping can be cleared by setting `metadata` to # `null`. sig { returns(T::Hash[Symbol, String]) } - def metadata - end - - sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) } - def metadata=(_) - end + attr_accessor :metadata # The minimum intervals for this subscription sorted by the start_date. sig { returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval]) } - def minimum_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval]) - .returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval]) - end - def minimum_intervals=(_) - end + attr_accessor :minimum_intervals # Determines the difference between the invoice issue date for subscription # invoices as the date that they are due. A value of `0` here represents that the # invoice is due on issue, whereas a value of `30` represents that the customer # has a month to pay the invoice. sig { returns(Integer) } - def net_terms - end - - sig { params(_: Integer).returns(Integer) } - def net_terms=(_) - end + attr_accessor :net_terms # The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be # subscribed to by a customer. Plans define the billing behavior of the # subscription. You can see more about how to configure prices in the # [Price resource](/reference/price). sig { returns(Orb::Models::Plan) } - def plan - end + attr_reader :plan - sig { params(_: Orb::Models::Plan).returns(Orb::Models::Plan) } - def plan=(_) - end + sig { params(plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash)).void } + attr_writer :plan # The price intervals for this subscription. sig { returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval]) } - def price_intervals - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval]) - .returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval]) - end - def price_intervals=(_) - end + attr_accessor :price_intervals sig { returns(T.nilable(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon)) } - def redeemed_coupon - end + attr_reader :redeemed_coupon sig do - params(_: T.nilable(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon)) - .returns(T.nilable(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon)) - end - def redeemed_coupon=(_) + params( + redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon, Orb::Util::AnyHash)) + ) + .void end + attr_writer :redeemed_coupon # The date Orb starts billing for this subscription. sig { returns(Time) } - def start_date - end + attr_accessor :start_date - sig { params(_: Time).returns(Time) } - def start_date=(_) - end - - sig { returns(Symbol) } - def status - end - - sig { params(_: Symbol).returns(Symbol) } - def status=(_) - end + sig { returns(Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol) } + attr_accessor :status sig { returns(Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo) } - def trial_info - end + attr_reader :trial_info - sig do - params(_: Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo) - .returns(Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo) - end - def trial_info=(_) - end + sig { params(trial_info: T.any(Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo, Orb::Util::AnyHash)).void } + attr_writer :trial_info sig do params( id: String, active_plan_phase_order: T.nilable(Integer), - adjustment_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval], + adjustment_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval, Orb::Util::AnyHash)], auto_collection: T.nilable(T::Boolean), - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration, + billing_cycle_anchor_configuration: T.any(Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration, Orb::Util::AnyHash), 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, + customer: T.any(Orb::Models::Customer, Orb::Util::AnyHash), default_invoice_memo: T.nilable(String), discount_intervals: T::Array[ T.any( Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, + Orb::Util::AnyHash, 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], + fixed_fee_quantity_schedule: T::Array[T.any(Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule, Orb::Util::AnyHash)], invoicing_threshold: T.nilable(String), - maximum_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval], + maximum_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval, Orb::Util::AnyHash)], metadata: T::Hash[Symbol, String], - minimum_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval], + minimum_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval, Orb::Util::AnyHash)], net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval], - redeemed_coupon: T.nilable(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon), + plan: T.any(Orb::Models::Plan, Orb::Util::AnyHash), + price_intervals: T::Array[T.any(Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval, Orb::Util::AnyHash)], + redeemed_coupon: T.nilable(T.any(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon, Orb::Util::AnyHash)), start_date: Time, - status: Symbol, - trial_info: Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo + status: Orb::Models::SubscriptionUpdateTrialResponse::Status::OrSymbol, + trial_info: T.any(Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo, Orb::Util::AnyHash) ) .returns(T.attached_class) end @@ -409,7 +267,7 @@ module Orb price_intervals: T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval], redeemed_coupon: T.nilable(Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon), start_date: Time, - status: Symbol, + status: Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol, trial_info: Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo } ) @@ -419,12 +277,7 @@ module Orb class AdjustmentInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig do returns( @@ -437,64 +290,26 @@ module Orb ) ) end - def adjustment - end - - sig do - params( - _: T.any( - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, - Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - ) - ) - .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 + attr_accessor :adjustment # The price interval IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the adjustment interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the adjustment interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( id: String, adjustment: T.any( Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseUsageDiscountAdjustment, + Orb::Util::AnyHash, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseAmountDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhasePercentageDiscountAdjustment, Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment, @@ -530,84 +345,50 @@ module Orb def to_hash end - class Adjustment < Orb::Union - abstract! + module Adjustment + extend Orb::Union - Variants = type_template(:out) do - { - fixed: 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 + Variants = + type_template(:out) do + { + fixed: 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 class PlanPhaseUsageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # The number of usage units by which to discount the price this adjustment applies # to in a given billing period. sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -652,67 +433,32 @@ module Orb class PlanPhaseAmountDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The amount by which to discount the prices this adjustment applies to in a given # billing period. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -757,67 +503,32 @@ module Orb class PlanPhasePercentageDiscountAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -862,76 +573,36 @@ module Orb class PlanPhaseMinimumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The item ID that revenue from this minimum will be attributed to. sig { returns(String) } - def item_id - end - - sig { params(_: String).returns(String) } - def item_id=(_) - end + attr_accessor :item_id # The minimum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -979,67 +650,32 @@ module Orb class PlanPhaseMaximumAdjustment < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(Symbol) } - def adjustment_type - end - - sig { params(_: Symbol).returns(Symbol) } - def adjustment_type=(_) - end + attr_accessor :adjustment_type # The price IDs that this adjustment applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # True for adjustments that apply to an entire invocice, false for adjustments # that apply to only one price. sig { returns(T::Boolean) } - def is_invoice_level - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def is_invoice_level=(_) - end + attr_accessor :is_invoice_level # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The plan phase in which this adjustment is active. sig { returns(T.nilable(Integer)) } - def plan_phase_order - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def plan_phase_order=(_) - end + attr_accessor :plan_phase_order # The reason for the adjustment. sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( @@ -1081,6 +717,17 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [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 variants + end + end end end @@ -1090,33 +737,18 @@ module Orb # is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing # period begins on the 30th. sig { returns(Integer) } - def day - end - - sig { params(_: Integer).returns(Integer) } - def day=(_) - end + attr_accessor :day # The month on which the billing cycle is anchored (e.g. a quarterly price # anchored in February would have cycles starting February, May, August, and # November). sig { returns(T.nilable(Integer)) } - def month - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def month=(_) - end + attr_accessor :month # The year on which the billing cycle is anchored (e.g. a 2 year billing cycle # anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.). sig { returns(T.nilable(Integer)) } - def year - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def year=(_) - end + attr_accessor :year sig do params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class) @@ -1129,72 +761,43 @@ module Orb end end - class DiscountInterval < Orb::Union - abstract! + module DiscountInterval + extend Orb::Union - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, - Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval - ) - } - end + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, + Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval + ) + } + end class AmountDiscountInterval < Orb::BaseModel # Only available if discount_type is `amount`. sig { returns(String) } - def amount_discount - end - - sig { params(_: String).returns(String) } - def amount_discount=(_) - end + attr_accessor :amount_discount # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1237,57 +840,27 @@ module Orb class PercentageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # Only available if discount_type is `percentage`.This is a number between 0 # and 1. sig { returns(Float) } - def percentage_discount - end - - sig { params(_: Float).returns(Float) } - def percentage_discount=(_) - end + attr_accessor :percentage_discount # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1330,57 +903,27 @@ module Orb class UsageDiscountInterval < Orb::BaseModel # The price ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this discount interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + attr_accessor :discount_type # The end date of the discount interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The start date of the discount interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig do params( @@ -1419,40 +962,31 @@ module Orb def to_hash end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval] + ) + end + def variants + end + end end class FixedFeeQuantitySchedule < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(end_date: T.nilable(Time), price_id: String, quantity: Float, start_date: Time) @@ -1471,49 +1005,24 @@ module Orb class MaximumInterval < Orb::BaseModel # The price ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this maximum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the maximum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The maximum amount to charge in a given billing period for the price intervals # this transform applies to. sig { returns(String) } - def maximum_amount - end - - sig { params(_: String).returns(String) } - def maximum_amount=(_) - end + attr_accessor :maximum_amount # The start date of the maximum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1547,49 +1056,24 @@ module Orb class MinimumInterval < Orb::BaseModel # The price ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids # The price interval ids that this minimum interval applies to. sig { returns(T::Array[String]) } - def applies_to_price_interval_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_interval_ids=(_) - end + attr_accessor :applies_to_price_interval_ids # The end date of the minimum interval. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # The minimum amount to charge in a given billing period for the price intervals # this minimum applies to. sig { returns(String) } - def minimum_amount - end - - sig { params(_: String).returns(String) } - def minimum_amount=(_) - end + attr_accessor :minimum_amount # The start date of the minimum interval. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params( @@ -1622,62 +1106,32 @@ module Orb class PriceInterval < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id # The day of the month that Orb bills for this price sig { returns(Integer) } - def billing_cycle_day - end - - sig { params(_: Integer).returns(Integer) } - def billing_cycle_day=(_) - end + attr_accessor :billing_cycle_day # The end of the current billing period. This is an exclusive timestamp, such that # the instant returned is exactly the end of the billing period. Set to null if # this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_end_date=(_) - end + attr_accessor :current_billing_period_end_date # The start date of the current billing period. This is an inclusive timestamp; # the instant returned is exactly the beginning of the billing period. Set to null # if this price interval is not currently active. sig { returns(T.nilable(Time)) } - def current_billing_period_start_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def current_billing_period_start_date=(_) - end + attr_accessor :current_billing_period_start_date # The end date of the price interval. This is the date that Orb stops billing for # this price. sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date # An additional filter to apply to usage queries. sig { returns(T.nilable(String)) } - def filter - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def filter=(_) - end + attr_accessor :filter # The fixed fee quantity transitions for this price interval. This is only # relevant for fixed fees. @@ -1688,23 +1142,7 @@ module Orb ) ) 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] - ) - ) - end - def fixed_fee_quantity_transitions=(_) - end + attr_accessor :fixed_fee_quantity_transitions # The Price resource represents a price that can be billed on a subscription, # resulting in a charge on an invoice in the form of an invoice line item. Prices @@ -1750,97 +1188,17 @@ module Orb ) ) end - def price - end - - sig do - params( - _: T.any( - Orb::Models::Price::UnitPrice, - Orb::Models::Price::PackagePrice, - Orb::Models::Price::MatrixPrice, - Orb::Models::Price::TieredPrice, - Orb::Models::Price::TieredBpsPrice, - Orb::Models::Price::BpsPrice, - Orb::Models::Price::BulkBpsPrice, - Orb::Models::Price::BulkPrice, - Orb::Models::Price::ThresholdTotalAmountPrice, - Orb::Models::Price::TieredPackagePrice, - Orb::Models::Price::GroupedTieredPrice, - Orb::Models::Price::TieredWithMinimumPrice, - Orb::Models::Price::TieredPackageWithMinimumPrice, - Orb::Models::Price::PackageWithAllocationPrice, - Orb::Models::Price::UnitWithPercentPrice, - Orb::Models::Price::MatrixWithAllocationPrice, - Orb::Models::Price::TieredWithProrationPrice, - Orb::Models::Price::UnitWithProrationPrice, - Orb::Models::Price::GroupedAllocationPrice, - Orb::Models::Price::GroupedWithProratedMinimumPrice, - Orb::Models::Price::GroupedWithMeteredMinimumPrice, - Orb::Models::Price::MatrixWithDisplayNamePrice, - Orb::Models::Price::BulkWithProrationPrice, - Orb::Models::Price::GroupedTieredPackagePrice, - Orb::Models::Price::MaxGroupTieredPackagePrice, - Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, - Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, - Orb::Models::Price::CumulativeGroupedBulkPrice - ) - ) - .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 + attr_accessor :price # The start date of the price interval. This is the date that Orb starts billing # for this price. sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date # A list of customer IDs whose usage events will be aggregated and billed under # this price interval. sig { returns(T.nilable(T::Array[String])) } - def usage_customer_ids - end - - sig { params(_: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def usage_customer_ids=(_) - end + attr_accessor :usage_customer_ids # The Price Interval resource represents a period of time for which a price will # bill on a subscription. A subscription’s price intervals define its billing @@ -1854,10 +1212,16 @@ module Orb end_date: T.nilable(Time), filter: T.nilable(String), fixed_fee_quantity_transitions: T.nilable( - T::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition] + T::Array[ + T.any( + Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition, + Orb::Util::AnyHash + ) + ] ), price: T.any( Orb::Models::Price::UnitPrice, + Orb::Util::AnyHash, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, @@ -1958,28 +1322,13 @@ module Orb class FixedFeeQuantityTransition < Orb::BaseModel sig { returns(Time) } - def effective_date - end - - sig { params(_: Time).returns(Time) } - def effective_date=(_) - end + attr_accessor :effective_date sig { returns(String) } - def price_id - end - - sig { params(_: String).returns(String) } - def price_id=(_) - end + attr_accessor :price_id sig { returns(Integer) } - def quantity - end - - sig { params(_: Integer).returns(Integer) } - def quantity=(_) - end + attr_accessor :quantity sig { params(effective_date: Time, price_id: String, quantity: Integer).returns(T.attached_class) } def self.new(effective_date:, price_id:, quantity:) @@ -1993,28 +1342,13 @@ module Orb class RedeemedCoupon < Orb::BaseModel sig { returns(String) } - def coupon_id - end - - sig { params(_: String).returns(String) } - def coupon_id=(_) - end + attr_accessor :coupon_id sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { returns(Time) } - def start_date - end - - sig { params(_: Time).returns(Time) } - def start_date=(_) - end + attr_accessor :start_date sig do params(coupon_id: String, end_date: T.nilable(Time), start_date: Time).returns(T.attached_class) @@ -2027,24 +1361,27 @@ module Orb end end - class Status < Orb::Enum - abstract! + module Status + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUpdateTrialResponse::Status) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + ACTIVE = T.let(:active, Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol) + ENDED = T.let(:ended, Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol) + UPCOMING = T.let(:upcoming, Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol) - ACTIVE = :active - ENDED = :ended - UPCOMING = :upcoming + class << self + sig { override.returns(T::Array[Orb::Models::SubscriptionUpdateTrialResponse::Status::TaggedSymbol]) } + def values + end + end end class TrialInfo < Orb::BaseModel sig { returns(T.nilable(Time)) } - def end_date - end - - sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) } - def end_date=(_) - end + attr_accessor :end_date sig { params(end_date: T.nilable(Time)).returns(T.attached_class) } def self.new(end_date:) diff --git a/rbi/lib/orb/models/subscription_usage.rbi b/rbi/lib/orb/models/subscription_usage.rbi index 11afacc9..77dee42c 100644 --- a/rbi/lib/orb/models/subscription_usage.rbi +++ b/rbi/lib/orb/models/subscription_usage.rbi @@ -2,32 +2,27 @@ module Orb module Models - class SubscriptionUsage < Orb::Union - abstract! - - Variants = type_template(:out) do - { - fixed: T.any( - Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage, - Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage - ) - } - end + module SubscriptionUsage + extend Orb::Union + + Variants = + type_template(:out) do + { + fixed: T.any( + Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage, + Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage + ) + } + end class UngroupedSubscriptionUsage < Orb::BaseModel sig { returns(T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data]) } - def data - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data]) - .returns(T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data]) - end - def data=(_) - end + attr_accessor :data sig do - params(data: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data]) + params( + data: T::Array[T.any(Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data, Orb::Util::AnyHash)] + ) .returns(T.attached_class) end def self.new(data:) @@ -39,40 +34,33 @@ module Orb class Data < Orb::BaseModel sig { returns(Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric) - .returns(Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric) - end - def billable_metric=(_) + params( + billable_metric: T.any( + Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, + Orb::Util::AnyHash + ) + ) + .void end + attr_writer :billable_metric sig { returns(T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage]) } - def usage - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage]) - .returns(T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage]) - end - def usage=(_) - end + attr_accessor :usage - sig { returns(Symbol) } - def view_mode - end - - sig { params(_: Symbol).returns(Symbol) } - def view_mode=(_) - end + sig { returns(Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol) } + attr_accessor :view_mode sig do params( - billable_metric: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, - usage: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage], - view_mode: Symbol + billable_metric: T.any( + Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, + Orb::Util::AnyHash + ), + usage: T::Array[T.any(Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage, Orb::Util::AnyHash)], + view_mode: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::OrSymbol ) .returns(T.attached_class) end @@ -85,7 +73,7 @@ module Orb { billable_metric: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, usage: T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage], - view_mode: Symbol + view_mode: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol } ) end @@ -94,20 +82,10 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -120,28 +98,13 @@ module Orb class Usage < Orb::BaseModel sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Time) } - def timeframe_end - end - - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start sig do params(quantity: Float, timeframe_end: Time, timeframe_start: Time).returns(T.attached_class) @@ -154,41 +117,50 @@ module Orb end end - class ViewMode < Orb::Enum - abstract! + module ViewMode + extend Orb::Enum - Value = type_template(:out) { {fixed: Symbol} } + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol) } - PERIODIC = :periodic - CUMULATIVE = :cumulative + PERIODIC = + T.let(:periodic, Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol) + CUMULATIVE = + T.let( + :cumulative, + Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol + ) + + class << self + sig do + override + .returns( + T::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol] + ) + end + def values + end + end end end end class GroupedSubscriptionUsage < Orb::BaseModel sig { returns(T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data]) } - def data - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data]) - .returns(T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data]) - end - def data=(_) - end + attr_accessor :data sig { returns(T.nilable(Orb::Models::PaginationMetadata)) } - def pagination_metadata - end + attr_reader :pagination_metadata - sig { params(_: T.nilable(Orb::Models::PaginationMetadata)).returns(T.nilable(Orb::Models::PaginationMetadata)) } - def pagination_metadata=(_) - end + sig { params(pagination_metadata: T.nilable(T.any(Orb::Models::PaginationMetadata, Orb::Util::AnyHash))).void } + attr_writer :pagination_metadata sig do params( - data: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data], - pagination_metadata: T.nilable(Orb::Models::PaginationMetadata) + data: T::Array[T.any(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data, Orb::Util::AnyHash)], + pagination_metadata: T.nilable(T.any(Orb::Models::PaginationMetadata, Orb::Util::AnyHash)) ) .returns(T.attached_class) end @@ -209,52 +181,39 @@ module Orb class Data < Orb::BaseModel sig { returns(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric) } - def billable_metric - end + attr_reader :billable_metric sig do - params(_: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric) - .returns(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric) - end - def billable_metric=(_) + params( + billable_metric: T.any(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric, Orb::Util::AnyHash) + ) + .void end + attr_writer :billable_metric sig { returns(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup) } - def metric_group - end + attr_reader :metric_group sig do - params(_: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup) - .returns(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup) - end - def metric_group=(_) + params( + metric_group: T.any(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup, Orb::Util::AnyHash) + ) + .void end + attr_writer :metric_group sig { returns(T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage]) } - def usage - end - - sig do - params(_: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage]) - .returns(T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage]) - end - def usage=(_) - end - - sig { returns(Symbol) } - def view_mode - end + attr_accessor :usage - sig { params(_: Symbol).returns(Symbol) } - def view_mode=(_) - end + sig { returns(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol) } + attr_accessor :view_mode sig do params( - billable_metric: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric, - metric_group: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup, - usage: T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage], - view_mode: Symbol + billable_metric: T.any(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric, Orb::Util::AnyHash), + metric_group: T.any(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup, Orb::Util::AnyHash), + usage: T::Array[T.any(Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage, Orb::Util::AnyHash)], + view_mode: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::OrSymbol ) .returns(T.attached_class) end @@ -268,7 +227,7 @@ module Orb 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 + view_mode: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol } ) end @@ -277,20 +236,10 @@ module Orb class BillableMetric < Orb::BaseModel sig { returns(String) } - def id - end - - sig { params(_: String).returns(String) } - def id=(_) - end + attr_accessor :id sig { returns(String) } - def name - end - - sig { params(_: String).returns(String) } - def name=(_) - end + attr_accessor :name sig { params(id: String, name: String).returns(T.attached_class) } def self.new(id:, name:) @@ -303,20 +252,10 @@ module Orb class MetricGroup < Orb::BaseModel sig { returns(String) } - def property_key - end - - sig { params(_: String).returns(String) } - def property_key=(_) - end + attr_accessor :property_key sig { returns(String) } - def property_value - end - - sig { params(_: String).returns(String) } - def property_value=(_) - end + attr_accessor :property_value sig { params(property_key: String, property_value: String).returns(T.attached_class) } def self.new(property_key:, property_value:) @@ -329,28 +268,13 @@ module Orb class Usage < Orb::BaseModel sig { returns(Float) } - def quantity - end - - sig { params(_: Float).returns(Float) } - def quantity=(_) - end + attr_accessor :quantity sig { returns(Time) } - def timeframe_end - end - - sig { params(_: Time).returns(Time) } - def timeframe_end=(_) - end + attr_accessor :timeframe_end sig { returns(Time) } - def timeframe_start - end - - sig { params(_: Time).returns(Time) } - def timeframe_start=(_) - end + attr_accessor :timeframe_start sig do params(quantity: Float, timeframe_end: Time, timeframe_start: Time).returns(T.attached_class) @@ -363,16 +287,41 @@ module Orb end end - class ViewMode < Orb::Enum - abstract! + module ViewMode + extend Orb::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode) } + OrSymbol = + T.type_alias { T.any(Symbol, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + PERIODIC = + T.let(:periodic, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol) + CUMULATIVE = + T.let(:cumulative, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol) - PERIODIC = :periodic - CUMULATIVE = :cumulative + class << self + sig do + override + .returns(T::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::ViewMode::TaggedSymbol]) + end + def values + end + end end end end + + class << self + sig do + override + .returns( + [Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage] + ) + end + def variants + end + end end end end diff --git a/rbi/lib/orb/models/subscriptions.rbi b/rbi/lib/orb/models/subscriptions.rbi index 8aad6c17..a91bc205 100644 --- a/rbi/lib/orb/models/subscriptions.rbi +++ b/rbi/lib/orb/models/subscriptions.rbi @@ -4,23 +4,19 @@ module Orb module Models class SubscriptionsAPI < Orb::BaseModel sig { returns(T::Array[Orb::Models::Subscription]) } - def data - end - - sig { params(_: T::Array[Orb::Models::Subscription]).returns(T::Array[Orb::Models::Subscription]) } - def data=(_) - end + attr_accessor :data sig { returns(Orb::Models::PaginationMetadata) } - def pagination_metadata - end + attr_reader :pagination_metadata - sig { params(_: Orb::Models::PaginationMetadata).returns(Orb::Models::PaginationMetadata) } - def pagination_metadata=(_) - end + sig { params(pagination_metadata: T.any(Orb::Models::PaginationMetadata, Orb::Util::AnyHash)).void } + attr_writer :pagination_metadata sig do - params(data: T::Array[Orb::Models::Subscription], pagination_metadata: Orb::Models::PaginationMetadata) + params( + data: T::Array[T.any(Orb::Models::Subscription, Orb::Util::AnyHash)], + pagination_metadata: T.any(Orb::Models::PaginationMetadata, Orb::Util::AnyHash) + ) .returns(T.attached_class) end def self.new(data:, pagination_metadata:) diff --git a/rbi/lib/orb/models/top_level_ping_params.rbi b/rbi/lib/orb/models/top_level_ping_params.rbi index c6826ab9..e9e87d54 100644 --- a/rbi/lib/orb/models/top_level_ping_params.rbi +++ b/rbi/lib/orb/models/top_level_ping_params.rbi @@ -7,12 +7,7 @@ module Orb include Orb::RequestParameters sig do - params( - request_options: T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ).returns(T.attached_class) + params(request_options: T.any(Orb::RequestOptions, Orb::Util::AnyHash)).returns(T.attached_class) end def self.new(request_options: {}) end diff --git a/rbi/lib/orb/models/top_level_ping_response.rbi b/rbi/lib/orb/models/top_level_ping_response.rbi index 2a04fd69..f9b5f3d1 100644 --- a/rbi/lib/orb/models/top_level_ping_response.rbi +++ b/rbi/lib/orb/models/top_level_ping_response.rbi @@ -4,12 +4,7 @@ module Orb module Models class TopLevelPingResponse < Orb::BaseModel sig { returns(String) } - def response - end - - sig { params(_: String).returns(String) } - def response=(_) - end + attr_accessor :response sig { params(response: String).returns(T.attached_class) } def self.new(response:) diff --git a/rbi/lib/orb/models/trial_discount.rbi b/rbi/lib/orb/models/trial_discount.rbi index 2b1804e3..a769483a 100644 --- a/rbi/lib/orb/models/trial_discount.rbi +++ b/rbi/lib/orb/models/trial_discount.rbi @@ -6,51 +6,26 @@ module Orb # List of price_ids that this discount applies to. For plan/plan phase discounts, # this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end - - sig { returns(Symbol) } - def discount_type - end + attr_accessor :applies_to_price_ids - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + sig { returns(Orb::Models::TrialDiscount::DiscountType::OrSymbol) } + attr_accessor :discount_type sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason # Only available if discount_type is `trial` sig { returns(T.nilable(String)) } - def trial_amount_discount - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def trial_amount_discount=(_) - end + attr_accessor :trial_amount_discount # Only available if discount_type is `trial` sig { returns(T.nilable(Float)) } - def trial_percentage_discount - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def trial_percentage_discount=(_) - end + attr_accessor :trial_percentage_discount sig do params( applies_to_price_ids: T::Array[String], - discount_type: Symbol, + discount_type: Orb::Models::TrialDiscount::DiscountType::OrSymbol, reason: T.nilable(String), trial_amount_discount: T.nilable(String), trial_percentage_discount: T.nilable(Float) @@ -71,7 +46,7 @@ module Orb .returns( { applies_to_price_ids: T::Array[String], - discount_type: Symbol, + discount_type: Orb::Models::TrialDiscount::DiscountType::OrSymbol, reason: T.nilable(String), trial_amount_discount: T.nilable(String), trial_percentage_discount: T.nilable(Float) @@ -81,12 +56,19 @@ module Orb def to_hash end - class DiscountType < Orb::Enum - abstract! + module DiscountType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::TrialDiscount::DiscountType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::TrialDiscount::DiscountType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + TRIAL = T.let(:trial, Orb::Models::TrialDiscount::DiscountType::TaggedSymbol) - TRIAL = :trial + class << self + sig { override.returns(T::Array[Orb::Models::TrialDiscount::DiscountType::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/models/usage_discount.rbi b/rbi/lib/orb/models/usage_discount.rbi index 1226c599..816e586a 100644 --- a/rbi/lib/orb/models/usage_discount.rbi +++ b/rbi/lib/orb/models/usage_discount.rbi @@ -6,43 +6,23 @@ module Orb # List of price_ids that this discount applies to. For plan/plan phase discounts, # this can be a subset of prices. sig { returns(T::Array[String]) } - def applies_to_price_ids - end - - sig { params(_: T::Array[String]).returns(T::Array[String]) } - def applies_to_price_ids=(_) - end + attr_accessor :applies_to_price_ids - sig { returns(Symbol) } - def discount_type - end - - sig { params(_: Symbol).returns(Symbol) } - def discount_type=(_) - end + sig { returns(Orb::Models::UsageDiscount::DiscountType::OrSymbol) } + attr_accessor :discount_type # Only available if discount_type is `usage`. Number of usage units that this # discount is for sig { returns(Float) } - def usage_discount - end - - sig { params(_: Float).returns(Float) } - def usage_discount=(_) - end + attr_accessor :usage_discount sig { returns(T.nilable(String)) } - def reason - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def reason=(_) - end + attr_accessor :reason sig do params( applies_to_price_ids: T::Array[String], - discount_type: Symbol, + discount_type: Orb::Models::UsageDiscount::DiscountType::OrSymbol, usage_discount: Float, reason: T.nilable(String) ) @@ -56,7 +36,7 @@ module Orb .returns( { applies_to_price_ids: T::Array[String], - discount_type: Symbol, + discount_type: Orb::Models::UsageDiscount::DiscountType::OrSymbol, usage_discount: Float, reason: T.nilable(String) } @@ -65,12 +45,19 @@ module Orb def to_hash end - class DiscountType < Orb::Enum - abstract! + module DiscountType + extend Orb::Enum + + TaggedSymbol = T.type_alias { T.all(Symbol, Orb::Models::UsageDiscount::DiscountType) } + OrSymbol = T.type_alias { T.any(Symbol, Orb::Models::UsageDiscount::DiscountType::TaggedSymbol) } - Value = type_template(:out) { {fixed: Symbol} } + USAGE = T.let(:usage, Orb::Models::UsageDiscount::DiscountType::TaggedSymbol) - USAGE = :usage + class << self + sig { override.returns(T::Array[Orb::Models::UsageDiscount::DiscountType::TaggedSymbol]) } + def values + end + end end end end diff --git a/rbi/lib/orb/page.rbi b/rbi/lib/orb/page.rbi index f0498a6c..8b84f232 100644 --- a/rbi/lib/orb/page.rbi +++ b/rbi/lib/orb/page.rbi @@ -7,37 +7,21 @@ module Orb Elem = type_member sig { returns(T.nilable(T::Array[Elem])) } - def data - end - - sig { params(_: T.nilable(T::Array[Elem])).returns(T.nilable(T::Array[Elem])) } - def data=(_) - end + attr_accessor :data sig { returns(PaginationMetadata) } - def pagination_metadata - end + attr_accessor :pagination_metadata - sig { params(_: PaginationMetadata).returns(PaginationMetadata) } - def pagination_metadata=(_) + sig { returns(String) } + def inspect end class PaginationMetadata < Orb::BaseModel sig { returns(T::Boolean) } - def has_more - end - - sig { params(_: T::Boolean).returns(T::Boolean) } - def has_more=(_) - end + attr_accessor :has_more sig { returns(T.nilable(String)) } - def next_cursor - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def next_cursor=(_) - end + attr_accessor :next_cursor sig { params(has_more: T::Boolean, next_cursor: T.nilable(String)).returns(T.attached_class) } def self.new(has_more:, next_cursor:) diff --git a/rbi/lib/orb/pooled_net_requester.rbi b/rbi/lib/orb/pooled_net_requester.rbi index c6a2a39d..c508597c 100644 --- a/rbi/lib/orb/pooled_net_requester.rbi +++ b/rbi/lib/orb/pooled_net_requester.rbi @@ -3,9 +3,20 @@ module Orb # @api private class PooledNetRequester - RequestShape = T.type_alias do - {method: Symbol, url: URI::Generic, headers: T::Hash[String, String], body: T.anything, deadline: Float} - end + RequestShape = + T.type_alias do + { + method: Symbol, + url: URI::Generic, + headers: T::Hash[String, String], + body: T.anything, + deadline: Float + } + end + + # from the golang stdlib + # https://github.com/golang/go/blob/c8eced8580028328fde7c03cbfcb720ce15b2358/src/net/http/transport.go#L49 + KEEP_ALIVE_TIMEOUT = 30 class << self # @api private diff --git a/rbi/lib/orb/request_options.rbi b/rbi/lib/orb/request_options.rbi index 37e6f48a..6982a9e3 100644 --- a/rbi/lib/orb/request_options.rbi +++ b/rbi/lib/orb/request_options.rbi @@ -4,21 +4,13 @@ module Orb # @api private module RequestParameters # Options to specify HTTP behaviour for this request. - sig { returns(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) } - def request_options - end - - sig do - 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 + sig { returns(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) } + attr_accessor :request_options # @api private module Converter # @api private - sig { params(params: T.anything).returns([T.anything, T::Hash[Symbol, T.anything]]) } + sig { params(params: T.anything).returns([T.anything, Orb::Util::AnyHash]) } def dump_request(params) end end @@ -38,69 +30,33 @@ module Orb # Idempotency key to send with request and all associated retries. Will only be # sent for write requests. sig { returns(T.nilable(String)) } - def idempotency_key - end - - sig { params(_: T.nilable(String)).returns(T.nilable(String)) } - def idempotency_key=(_) - end + attr_accessor :idempotency_key # Extra query params to send with the request. These are `.merge`’d into any # `query` given at the client level. sig { returns(T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))])) } - def extra_query - 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))])) - end - def extra_query=(_) - end + attr_accessor :extra_query # Extra headers to send with the request. These are `.merged`’d into any # `extra_headers` given at the client level. sig { returns(T.nilable(T::Hash[String, T.nilable(String)])) } - def extra_headers - end - - sig do - params(_: T.nilable(T::Hash[String, T.nilable(String)])) - .returns(T.nilable(T::Hash[String, T.nilable(String)])) - end - def extra_headers=(_) - end + attr_accessor :extra_headers # Extra data to send with the request. These are deep merged into any data # generated as part of the normal request. - sig { returns(T.nilable(T::Hash[Symbol, T.anything])) } - def extra_body - end - - sig { params(_: T.nilable(T::Hash[Symbol, T.anything])).returns(T.nilable(T::Hash[Symbol, T.anything])) } - def extra_body=(_) - end + sig { returns(T.nilable(T.anything)) } + attr_accessor :extra_body # Maximum number of retries to attempt after a failed initial request. sig { returns(T.nilable(Integer)) } - def max_retries - end - - sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) } - def max_retries=(_) - end + attr_accessor :max_retries # Request timeout in seconds. sig { returns(T.nilable(Float)) } - def timeout - end - - sig { params(_: T.nilable(Float)).returns(T.nilable(Float)) } - def timeout=(_) - end + attr_accessor :timeout # Returns a new instance of RequestOptions. - sig { params(values: T::Hash[Symbol, T.anything]).returns(T.attached_class) } + sig { params(values: Orb::Util::AnyHash).returns(T.attached_class) } def self.new(values = {}) end end diff --git a/rbi/lib/orb/resources/alerts.rbi b/rbi/lib/orb/resources/alerts.rbi index d2293b52..4adf9589 100644 --- a/rbi/lib/orb/resources/alerts.rbi +++ b/rbi/lib/orb/resources/alerts.rbi @@ -5,10 +5,7 @@ module Orb class Alerts # This endpoint retrieves an alert by its ID. sig do - params( - alert_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ) + params(alert_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash))) .returns(Orb::Models::Alert) end def retrieve(alert_id, request_options: {}) @@ -18,8 +15,8 @@ module Orb sig do params( alert_configuration_id: String, - thresholds: T::Array[Orb::Models::AlertUpdateParams::Threshold], - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + thresholds: T::Array[T.any(Orb::Models::AlertUpdateParams::Threshold, Orb::Util::AnyHash)], + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Alert) end @@ -53,7 +50,7 @@ module Orb external_customer_id: T.nilable(String), limit: Integer, subscription_id: T.nilable(String), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Alert]) end @@ -89,9 +86,9 @@ module Orb params( customer_id: String, currency: String, - type: Symbol, - thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + type: Orb::Models::AlertCreateForCustomerParams::Type::OrSymbol, + thresholds: T.nilable(T::Array[T.any(Orb::Models::AlertCreateForCustomerParams::Threshold, Orb::Util::AnyHash)]), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Alert) end @@ -119,9 +116,11 @@ module Orb params( external_customer_id: String, currency: String, - type: Symbol, - thresholds: T.nilable(T::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + type: Orb::Models::AlertCreateForExternalCustomerParams::Type::OrSymbol, + thresholds: T.nilable( + T::Array[T.any(Orb::Models::AlertCreateForExternalCustomerParams::Threshold, Orb::Util::AnyHash)] + ), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Alert) end @@ -151,10 +150,10 @@ module Orb sig do params( subscription_id: String, - thresholds: T::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], - type: Symbol, + thresholds: T::Array[T.any(Orb::Models::AlertCreateForSubscriptionParams::Threshold, Orb::Util::AnyHash)], + type: Orb::Models::AlertCreateForSubscriptionParams::Type::OrSymbol, metric_id: T.nilable(String), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Alert) end @@ -177,7 +176,7 @@ module Orb params( alert_configuration_id: String, subscription_id: T.nilable(String), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Alert) end @@ -196,7 +195,7 @@ module Orb params( alert_configuration_id: String, subscription_id: T.nilable(String), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Alert) end diff --git a/rbi/lib/orb/resources/coupons.rbi b/rbi/lib/orb/resources/coupons.rbi index f4e13bb5..34810f16 100644 --- a/rbi/lib/orb/resources/coupons.rbi +++ b/rbi/lib/orb/resources/coupons.rbi @@ -4,8 +4,7 @@ module Orb module Resources class Coupons sig { returns(Orb::Resources::Coupons::Subscriptions) } - def subscriptions - end + attr_reader :subscriptions # This endpoint allows the creation of coupons, which can then be redeemed at # subscription creation or plan change. @@ -13,12 +12,13 @@ module Orb params( discount: T.any( Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, + Orb::Util::AnyHash, Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount ), redemption_code: String, duration_in_months: T.nilable(Integer), max_redemptions: T.nilable(Integer), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Coupon) end @@ -48,7 +48,7 @@ module Orb limit: Integer, redemption_code: T.nilable(String), show_archived: T.nilable(T::Boolean), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Coupon]) end @@ -71,10 +71,7 @@ module Orb # redeemed, and will be hidden from lists of active coupons. Additionally, once a # coupon is archived, its redemption code can be reused for a different coupon. sig do - params( - coupon_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ) + params(coupon_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash))) .returns(Orb::Models::Coupon) end def archive(coupon_id, request_options: {}) @@ -84,10 +81,7 @@ module Orb # code, use the [List coupons](list-coupons) endpoint with the redemption_code # parameter. sig do - params( - coupon_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ) + params(coupon_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash))) .returns(Orb::Models::Coupon) end def fetch(coupon_id, request_options: {}) diff --git a/rbi/lib/orb/resources/coupons/subscriptions.rbi b/rbi/lib/orb/resources/coupons/subscriptions.rbi index b15f851f..d7caad01 100644 --- a/rbi/lib/orb/resources/coupons/subscriptions.rbi +++ b/rbi/lib/orb/resources/coupons/subscriptions.rbi @@ -13,7 +13,7 @@ module Orb coupon_id: String, cursor: T.nilable(String), limit: Integer, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Subscription]) end diff --git a/rbi/lib/orb/resources/credit_notes.rbi b/rbi/lib/orb/resources/credit_notes.rbi index c64b7bb5..bdffc687 100644 --- a/rbi/lib/orb/resources/credit_notes.rbi +++ b/rbi/lib/orb/resources/credit_notes.rbi @@ -7,10 +7,10 @@ module Orb # [`Credit Note`](/invoicing/credit-notes). sig do params( - line_items: T::Array[Orb::Models::CreditNoteCreateParams::LineItem], + line_items: T::Array[T.any(Orb::Models::CreditNoteCreateParams::LineItem, Orb::Util::AnyHash)], memo: T.nilable(String), - reason: T.nilable(Symbol), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + reason: T.nilable(Orb::Models::CreditNoteCreateParams::Reason::OrSymbol), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::CreditNote) end @@ -35,7 +35,7 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::CreditNote]) end @@ -58,7 +58,7 @@ module Orb sig do params( credit_note_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::CreditNote) end diff --git a/rbi/lib/orb/resources/customers.rbi b/rbi/lib/orb/resources/customers.rbi index ac6620fc..fd2bef5d 100644 --- a/rbi/lib/orb/resources/customers.rbi +++ b/rbi/lib/orb/resources/customers.rbi @@ -4,16 +4,13 @@ module Orb module Resources class Customers sig { returns(Orb::Resources::Customers::Costs) } - def costs - end + attr_reader :costs sig { returns(Orb::Resources::Customers::Credits) } - def credits - end + attr_reader :credits sig { returns(Orb::Resources::Customers::BalanceTransactions) } - def balance_transactions - end + attr_reader :balance_transactions # This operation is used to create an Orb customer, who is party to the core # billing relationship. See [Customer](/core-concepts##customer) for an overview @@ -31,28 +28,29 @@ module Orb params( email: String, name: String, - accounting_sync_configuration: T.nilable(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration), + accounting_sync_configuration: T.nilable(T.any(Orb::Models::CustomerCreateParams::AccountingSyncConfiguration, Orb::Util::AnyHash)), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(Orb::Models::CustomerCreateParams::BillingAddress), + billing_address: T.nilable(T.any(Orb::Models::CustomerCreateParams::BillingAddress, Orb::Util::AnyHash)), currency: T.nilable(String), email_delivery: T.nilable(T::Boolean), external_customer_id: T.nilable(String), - hierarchy: T.nilable(Orb::Models::CustomerCreateParams::Hierarchy), + hierarchy: T.nilable(T.any(Orb::Models::CustomerCreateParams::Hierarchy, Orb::Util::AnyHash)), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - payment_provider: T.nilable(Symbol), + payment_provider: T.nilable(Orb::Models::CustomerCreateParams::PaymentProvider::OrSymbol), payment_provider_id: T.nilable(String), - reporting_configuration: T.nilable(Orb::Models::CustomerCreateParams::ReportingConfiguration), - shipping_address: T.nilable(Orb::Models::CustomerCreateParams::ShippingAddress), + reporting_configuration: T.nilable(T.any(Orb::Models::CustomerCreateParams::ReportingConfiguration, Orb::Util::AnyHash)), + shipping_address: T.nilable(T.any(Orb::Models::CustomerCreateParams::ShippingAddress, Orb::Util::AnyHash)), tax_configuration: T.nilable( T.any( Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Util::AnyHash, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration ) ), - tax_id: T.nilable(Orb::Models::CustomerCreateParams::TaxID), + tax_id: T.nilable(T.any(Orb::Models::CustomerCreateParams::TaxID, Orb::Util::AnyHash)), timezone: T.nilable(String), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Customer) end @@ -218,29 +216,30 @@ module Orb sig do params( customer_id: String, - accounting_sync_configuration: T.nilable(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration), + accounting_sync_configuration: T.nilable(T.any(Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration, Orb::Util::AnyHash)), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(Orb::Models::CustomerUpdateParams::BillingAddress), + billing_address: T.nilable(T.any(Orb::Models::CustomerUpdateParams::BillingAddress, Orb::Util::AnyHash)), currency: T.nilable(String), email: T.nilable(String), email_delivery: T.nilable(T::Boolean), external_customer_id: T.nilable(String), - hierarchy: T.nilable(Orb::Models::CustomerUpdateParams::Hierarchy), + hierarchy: T.nilable(T.any(Orb::Models::CustomerUpdateParams::Hierarchy, Orb::Util::AnyHash)), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), name: T.nilable(String), - payment_provider: T.nilable(Symbol), + payment_provider: T.nilable(Orb::Models::CustomerUpdateParams::PaymentProvider::OrSymbol), payment_provider_id: T.nilable(String), - reporting_configuration: T.nilable(Orb::Models::CustomerUpdateParams::ReportingConfiguration), - shipping_address: T.nilable(Orb::Models::CustomerUpdateParams::ShippingAddress), + reporting_configuration: T.nilable(T.any(Orb::Models::CustomerUpdateParams::ReportingConfiguration, Orb::Util::AnyHash)), + shipping_address: T.nilable(T.any(Orb::Models::CustomerUpdateParams::ShippingAddress, Orb::Util::AnyHash)), tax_configuration: T.nilable( T.any( Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Util::AnyHash, 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])) + tax_id: T.nilable(T.any(Orb::Models::CustomerUpdateParams::TaxID, Orb::Util::AnyHash)), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Customer) end @@ -410,7 +409,7 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Customer]) end @@ -446,7 +445,7 @@ module Orb sig do params( customer_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .void end @@ -462,7 +461,7 @@ module Orb sig do params( customer_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Customer) end @@ -477,7 +476,7 @@ module Orb sig do params( external_customer_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Customer) end @@ -493,7 +492,7 @@ module Orb sig do params( external_customer_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .void end @@ -509,7 +508,7 @@ module Orb sig do params( customer_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .void end @@ -523,29 +522,34 @@ module Orb sig do params( id: String, - accounting_sync_configuration: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration), + accounting_sync_configuration: T.nilable( + T.any(Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration, Orb::Util::AnyHash) + ), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), - billing_address: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress), + billing_address: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress, Orb::Util::AnyHash)), currency: T.nilable(String), email: T.nilable(String), email_delivery: T.nilable(T::Boolean), external_customer_id: T.nilable(String), - hierarchy: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy), + hierarchy: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy, Orb::Util::AnyHash)), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), name: T.nilable(String), - payment_provider: T.nilable(Symbol), + payment_provider: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::PaymentProvider::OrSymbol), payment_provider_id: T.nilable(String), - reporting_configuration: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration), - shipping_address: T.nilable(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress), + reporting_configuration: T.nilable( + T.any(Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration, Orb::Util::AnyHash) + ), + shipping_address: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress, Orb::Util::AnyHash)), tax_configuration: T.nilable( T.any( Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, + Orb::Util::AnyHash, 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])) + tax_id: T.nilable(T.any(Orb::Models::CustomerUpdateByExternalIDParams::TaxID, Orb::Util::AnyHash)), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Customer) end diff --git a/rbi/lib/orb/resources/customers/balance_transactions.rbi b/rbi/lib/orb/resources/customers/balance_transactions.rbi index 92b5541b..6669f879 100644 --- a/rbi/lib/orb/resources/customers/balance_transactions.rbi +++ b/rbi/lib/orb/resources/customers/balance_transactions.rbi @@ -10,9 +10,9 @@ module Orb params( customer_id: String, amount: String, - type: Symbol, + type: Orb::Models::Customers::BalanceTransactionCreateParams::Type::OrSymbol, description: T.nilable(String), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Customers::BalanceTransactionCreateResponse) end @@ -63,7 +63,7 @@ module Orb operation_time_gte: T.nilable(Time), 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])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Customers::BalanceTransactionListResponse]) end diff --git a/rbi/lib/orb/resources/customers/costs.rbi b/rbi/lib/orb/resources/customers/costs.rbi index 360b4fae..42a33027 100644 --- a/rbi/lib/orb/resources/customers/costs.rbi +++ b/rbi/lib/orb/resources/customers/costs.rbi @@ -127,8 +127,8 @@ module Orb currency: T.nilable(String), timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - view_mode: T.nilable(Symbol), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + view_mode: T.nilable(Orb::Models::Customers::CostListParams::ViewMode::OrSymbol), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Customers::CostListResponse) end @@ -272,8 +272,8 @@ module Orb currency: T.nilable(String), timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - view_mode: T.nilable(Symbol), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + view_mode: T.nilable(Orb::Models::Customers::CostListByExternalIDParams::ViewMode::OrSymbol), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Customers::CostListByExternalIDResponse) end diff --git a/rbi/lib/orb/resources/customers/credits.rbi b/rbi/lib/orb/resources/customers/credits.rbi index a20dd1a7..0242a83e 100644 --- a/rbi/lib/orb/resources/customers/credits.rbi +++ b/rbi/lib/orb/resources/customers/credits.rbi @@ -5,12 +5,10 @@ module Orb class Customers class Credits sig { returns(Orb::Resources::Customers::Credits::Ledger) } - def ledger - end + attr_reader :ledger sig { returns(Orb::Resources::Customers::Credits::TopUps) } - def top_ups - end + attr_reader :top_ups # Returns a paginated list of unexpired, non-zero credit blocks for a customer. # @@ -26,7 +24,7 @@ module Orb cursor: T.nilable(String), include_all_blocks: T::Boolean, limit: Integer, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Customers::CreditListResponse]) end @@ -60,7 +58,7 @@ module Orb cursor: T.nilable(String), include_all_blocks: T::Boolean, limit: Integer, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Customers::CreditListByExternalIDResponse]) end diff --git a/rbi/lib/orb/resources/customers/credits/ledger.rbi b/rbi/lib/orb/resources/customers/credits/ledger.rbi index 8df68064..759b9b53 100644 --- a/rbi/lib/orb/resources/customers/credits/ledger.rbi +++ b/rbi/lib/orb/resources/customers/credits/ledger.rbi @@ -95,11 +95,11 @@ module Orb created_at_lte: T.nilable(Time), currency: T.nilable(String), cursor: T.nilable(String), - entry_status: T.nilable(Symbol), - entry_type: T.nilable(Symbol), + entry_status: T.nilable(Orb::Models::Customers::Credits::LedgerListParams::EntryStatus::OrSymbol), + entry_type: T.nilable(Orb::Models::Customers::Credits::LedgerListParams::EntryType::OrSymbol), limit: Integer, minimum_amount: T.nilable(String), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns( Orb::Page[ @@ -249,18 +249,20 @@ module Orb params( customer_id: String, amount: Float, - entry_type: Symbol, + entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryParams::EntryType::OrSymbol, expiry_date: T.nilable(Time), target_expiry_date: Date, block_id: String, currency: T.nilable(String), description: T.nilable(String), effective_date: T.nilable(Time), - invoice_settings: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings), + invoice_settings: T.nilable( + T.any(Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings, Orb::Util::AnyHash) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), 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])) + void_reason: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryParams::VoidReason::OrSymbol), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns( T.any( @@ -430,18 +432,23 @@ module Orb params( external_customer_id: String, amount: Float, - entry_type: Symbol, + entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::EntryType::OrSymbol, expiry_date: T.nilable(Time), target_expiry_date: Date, block_id: String, currency: T.nilable(String), description: T.nilable(String), effective_date: T.nilable(Time), - invoice_settings: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings), + invoice_settings: T.nilable( + T.any( + Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings, + Orb::Util::AnyHash + ) + ), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), 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])) + void_reason: T.nilable(Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::VoidReason::OrSymbol), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns( T.any( @@ -587,11 +594,11 @@ module Orb created_at_lte: T.nilable(Time), currency: T.nilable(String), cursor: T.nilable(String), - entry_status: T.nilable(Symbol), - entry_type: T.nilable(Symbol), + entry_status: T.nilable(Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryStatus::OrSymbol), + entry_type: T.nilable(Orb::Models::Customers::Credits::LedgerListByExternalIDParams::EntryType::OrSymbol), limit: Integer, minimum_amount: T.nilable(String), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns( Orb::Page[ diff --git a/rbi/lib/orb/resources/customers/credits/top_ups.rbi b/rbi/lib/orb/resources/customers/credits/top_ups.rbi index d7aa4c80..7501a295 100644 --- a/rbi/lib/orb/resources/customers/credits/top_ups.rbi +++ b/rbi/lib/orb/resources/customers/credits/top_ups.rbi @@ -17,13 +17,13 @@ module Orb customer_id: String, amount: String, currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, + invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, Orb::Util::AnyHash), per_unit_cost_basis: String, threshold: String, active_from: T.nilable(Time), expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateParams::ExpiresAfterUnit::OrSymbol), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Customers::Credits::TopUpCreateResponse) end @@ -59,7 +59,7 @@ module Orb customer_id: String, cursor: T.nilable(String), limit: Integer, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Customers::Credits::TopUpListResponse]) end @@ -80,7 +80,7 @@ module Orb params( top_up_id: String, customer_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .void end @@ -99,13 +99,13 @@ module Orb external_customer_id: String, amount: String, currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, + invoice_settings: T.any(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, Orb::Util::AnyHash), per_unit_cost_basis: String, threshold: String, active_from: T.nilable(Time), expires_after: T.nilable(Integer), - expires_after_unit: T.nilable(Symbol), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + expires_after_unit: T.nilable(Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::ExpiresAfterUnit::OrSymbol), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse) end @@ -141,7 +141,7 @@ module Orb params( top_up_id: String, external_customer_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .void end @@ -154,7 +154,7 @@ module Orb external_customer_id: String, cursor: T.nilable(String), limit: Integer, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Customers::Credits::TopUpListByExternalIDResponse]) end diff --git a/rbi/lib/orb/resources/dimensional_price_groups.rbi b/rbi/lib/orb/resources/dimensional_price_groups.rbi index e39ecae2..3c8f325f 100644 --- a/rbi/lib/orb/resources/dimensional_price_groups.rbi +++ b/rbi/lib/orb/resources/dimensional_price_groups.rbi @@ -4,8 +4,7 @@ module Orb module Resources class DimensionalPriceGroups sig { returns(Orb::Resources::DimensionalPriceGroups::ExternalDimensionalPriceGroupID) } - def external_dimensional_price_group_id - end + attr_reader :external_dimensional_price_group_id # A dimensional price group is used to partition the result of a billable metric # by a set of dimensions. Prices in a price group must specify the parition used @@ -22,7 +21,7 @@ module Orb name: String, 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])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::DimensionalPriceGroup) end @@ -44,7 +43,7 @@ module Orb sig do params( dimensional_price_group_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::DimensionalPriceGroup) end @@ -56,7 +55,7 @@ module Orb params( cursor: T.nilable(String), limit: Integer, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::DimensionalPriceGroup]) 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 e2fb7899..3151880d 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,7 @@ module Orb sig do params( external_dimensional_price_group_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::DimensionalPriceGroup) end diff --git a/rbi/lib/orb/resources/events.rbi b/rbi/lib/orb/resources/events.rbi index d3cb5876..e3b90f09 100644 --- a/rbi/lib/orb/resources/events.rbi +++ b/rbi/lib/orb/resources/events.rbi @@ -4,12 +4,10 @@ module Orb module Resources class Events sig { returns(Orb::Resources::Events::Backfills) } - def backfills - end + attr_reader :backfills sig { returns(Orb::Resources::Events::Volume) } - def volume - end + attr_reader :volume # This endpoint is used to amend a single usage event with a given `event_id`. # `event_id` refers to the `idempotency_key` passed in during ingestion. The event @@ -64,7 +62,7 @@ module Orb timestamp: Time, customer_id: T.nilable(String), external_customer_id: T.nilable(String), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::EventUpdateResponse) end @@ -129,10 +127,7 @@ module Orb # a 100 day period. For higher volume updates, consider using the # [event backfill](create-backfill) endpoint. sig do - params( - event_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ) + params(event_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash))) .returns(Orb::Models::EventDeprecateResponse) end def deprecate(event_id, request_options: {}) @@ -344,10 +339,10 @@ module Orb # ``` sig do params( - events: T::Array[Orb::Models::EventIngestParams::Event], + events: T::Array[T.any(Orb::Models::EventIngestParams::Event, Orb::Util::AnyHash)], backfill_id: T.nilable(String), debug: T::Boolean, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::EventIngestResponse) end @@ -384,7 +379,7 @@ module Orb event_ids: T::Array[String], timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::EventSearchResponse) end diff --git a/rbi/lib/orb/resources/events/backfills.rbi b/rbi/lib/orb/resources/events/backfills.rbi index badd5cf0..f1aef9fe 100644 --- a/rbi/lib/orb/resources/events/backfills.rbi +++ b/rbi/lib/orb/resources/events/backfills.rbi @@ -50,7 +50,7 @@ module Orb deprecation_filter: T.nilable(String), external_customer_id: T.nilable(String), replace_existing_events: T::Boolean, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Events::BackfillCreateResponse) end @@ -95,7 +95,7 @@ module Orb params( cursor: T.nilable(String), limit: Integer, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Events::BackfillListResponse]) end @@ -116,7 +116,7 @@ module Orb sig do params( backfill_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Events::BackfillCloseResponse) end @@ -127,7 +127,7 @@ module Orb sig do params( backfill_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Events::BackfillFetchResponse) end @@ -144,7 +144,7 @@ module Orb sig do params( backfill_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Events::BackfillRevertResponse) end diff --git a/rbi/lib/orb/resources/events/volume.rbi b/rbi/lib/orb/resources/events/volume.rbi index 923fef33..3cf15169 100644 --- a/rbi/lib/orb/resources/events/volume.rbi +++ b/rbi/lib/orb/resources/events/volume.rbi @@ -23,7 +23,7 @@ module Orb cursor: T.nilable(String), limit: Integer, timeframe_end: Time, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Events::EventVolumes) end diff --git a/rbi/lib/orb/resources/invoice_line_items.rbi b/rbi/lib/orb/resources/invoice_line_items.rbi index 62402c02..f57b326f 100644 --- a/rbi/lib/orb/resources/invoice_line_items.rbi +++ b/rbi/lib/orb/resources/invoice_line_items.rbi @@ -13,7 +13,7 @@ module Orb name: String, quantity: Float, start_date: Date, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::InvoiceLineItemCreateResponse) end diff --git a/rbi/lib/orb/resources/invoices.rbi b/rbi/lib/orb/resources/invoices.rbi index 605cf98f..18db847d 100644 --- a/rbi/lib/orb/resources/invoices.rbi +++ b/rbi/lib/orb/resources/invoices.rbi @@ -8,12 +8,13 @@ module Orb params( currency: String, invoice_date: Time, - line_items: T::Array[Orb::Models::InvoiceCreateParams::LineItem], + line_items: T::Array[T.any(Orb::Models::InvoiceCreateParams::LineItem, Orb::Util::AnyHash)], net_terms: Integer, customer_id: T.nilable(String), discount: T.nilable( T.any( Orb::Models::PercentageDiscount, + Orb::Util::AnyHash, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount @@ -23,7 +24,7 @@ module Orb memo: T.nilable(String), 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])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Invoice) end @@ -70,7 +71,7 @@ module Orb params( 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])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Invoice) end @@ -104,7 +105,7 @@ module Orb amount_lt: T.nilable(String), cursor: T.nilable(String), customer_id: T.nilable(String), - date_type: T.nilable(Symbol), + date_type: T.nilable(Orb::Models::InvoiceListParams::DateType::OrSymbol), due_date: T.nilable(Date), due_date_window: T.nilable(String), due_date_gt: T.nilable(Date), @@ -116,9 +117,9 @@ module Orb invoice_date_lte: T.nilable(Time), is_recurring: T.nilable(T::Boolean), limit: Integer, - status: T.nilable(T::Array[Symbol]), + status: T.nilable(T::Array[Orb::Models::InvoiceListParams::Status::OrSymbol]), subscription_id: T.nilable(String), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Invoice]) end @@ -156,10 +157,7 @@ module Orb # This endpoint is used to fetch an [`Invoice`](/core-concepts#invoice) given an # identifier. sig do - params( - invoice_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ) + params(invoice_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash))) .returns(Orb::Models::Invoice) end def fetch(invoice_id, request_options: {}) @@ -171,7 +169,7 @@ module Orb sig do params( subscription_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::InvoiceFetchUpcomingResponse) end @@ -188,7 +186,7 @@ module Orb params( invoice_id: String, synchronous: T::Boolean, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Invoice) end @@ -212,7 +210,7 @@ module Orb payment_received_date: Date, external_id: T.nilable(String), notes: T.nilable(String), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Invoice) end @@ -231,10 +229,7 @@ module Orb # This endpoint collects payment for an invoice using the customer's default # payment method. This action can only be taken on invoices with status "issued". sig do - params( - invoice_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ) + params(invoice_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash))) .returns(Orb::Models::Invoice) end def pay(invoice_id, request_options: {}) @@ -252,10 +247,7 @@ module Orb # paid, the credit block will be voided. If the invoice was created due to a # top-up, the top-up will be disabled. sig do - params( - invoice_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ) + params(invoice_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash))) .returns(Orb::Models::Invoice) end def void(invoice_id, request_options: {}) diff --git a/rbi/lib/orb/resources/items.rbi b/rbi/lib/orb/resources/items.rbi index 41af89c2..bdce9a5e 100644 --- a/rbi/lib/orb/resources/items.rbi +++ b/rbi/lib/orb/resources/items.rbi @@ -5,15 +5,7 @@ module Orb class Items # This endpoint is used to create an [Item](/core-concepts#item). sig do - params( - name: String, - request_options: T.nilable( - T.any( - Orb::RequestOptions, - T::Hash[Symbol, T.anything] - ) - ) - ) + params(name: String, request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash))) .returns(Orb::Models::Item) end def create( @@ -27,9 +19,9 @@ module Orb sig do params( item_id: String, - external_connections: T.nilable(T::Array[Orb::Models::ItemUpdateParams::ExternalConnection]), + external_connections: T.nilable(T::Array[T.any(Orb::Models::ItemUpdateParams::ExternalConnection, Orb::Util::AnyHash)]), name: T.nilable(String), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Item) end @@ -42,7 +34,7 @@ module Orb params( cursor: T.nilable(String), limit: Integer, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Item]) end @@ -58,10 +50,7 @@ module Orb # This endpoint returns an item identified by its item_id. sig do - params( - item_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ) + params(item_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash))) .returns(Orb::Models::Item) end def fetch(item_id, request_options: {}) diff --git a/rbi/lib/orb/resources/metrics.rbi b/rbi/lib/orb/resources/metrics.rbi index ad1f72b1..1ac63c15 100644 --- a/rbi/lib/orb/resources/metrics.rbi +++ b/rbi/lib/orb/resources/metrics.rbi @@ -13,7 +13,7 @@ module Orb name: String, sql: String, metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::BillableMetric) end @@ -41,7 +41,7 @@ module Orb params( 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])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::BillableMetric) end @@ -66,7 +66,7 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::BillableMetric]) end @@ -87,10 +87,7 @@ module Orb # This endpoint is used to list [metrics](/core-concepts#metric). It returns # information about the metrics including its name, description, and item. sig do - params( - metric_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ) + params(metric_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash))) .returns(Orb::Models::BillableMetric) end def fetch(metric_id, request_options: {}) diff --git a/rbi/lib/orb/resources/plans.rbi b/rbi/lib/orb/resources/plans.rbi index 06d4302f..92feb998 100644 --- a/rbi/lib/orb/resources/plans.rbi +++ b/rbi/lib/orb/resources/plans.rbi @@ -4,8 +4,7 @@ module Orb module Resources class Plans sig { returns(Orb::Resources::Plans::ExternalPlanID) } - def external_plan_id - end + attr_reader :external_plan_id # This endpoint allows creation of plans including their prices. sig do @@ -15,6 +14,7 @@ module Orb prices: T::Array[ T.any( Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice, + Orb::Util::AnyHash, Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice, Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice, Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice, @@ -45,8 +45,8 @@ module Orb 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])) + status: Orb::Models::PlanCreateParams::Status::OrSymbol, + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Plan) end @@ -85,7 +85,7 @@ module Orb plan_id: String, 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])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Plan) end @@ -116,8 +116,8 @@ module Orb created_at_lte: T.nilable(Time), cursor: T.nilable(String), limit: Integer, - status: Symbol, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + status: Orb::Models::PlanListParams::Status::OrSymbol, + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Plan]) end @@ -155,10 +155,7 @@ module Orb # Orb supports plan phases, also known as contract ramps. For plans with phases, # the serialized prices refer to all prices across all phases. sig do - params( - plan_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ) + params(plan_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash))) .returns(Orb::Models::Plan) end def fetch(plan_id, request_options: {}) diff --git a/rbi/lib/orb/resources/plans/external_plan_id.rbi b/rbi/lib/orb/resources/plans/external_plan_id.rbi index 8e94ff53..a1cdc66f 100644 --- a/rbi/lib/orb/resources/plans/external_plan_id.rbi +++ b/rbi/lib/orb/resources/plans/external_plan_id.rbi @@ -13,7 +13,7 @@ module Orb other_external_plan_id: String, 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])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Plan) end @@ -50,7 +50,7 @@ module Orb sig do params( external_plan_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Plan) end diff --git a/rbi/lib/orb/resources/prices.rbi b/rbi/lib/orb/resources/prices.rbi index a6e8db97..087e9385 100644 --- a/rbi/lib/orb/resources/prices.rbi +++ b/rbi/lib/orb/resources/prices.rbi @@ -4,8 +4,7 @@ module Orb module Resources class Prices sig { returns(Orb::Resources::Prices::ExternalPriceID) } - def external_price_id - end + attr_reader :external_price_id # This endpoint is used to create a [price](/product-catalog/price-configuration). # A price created using this endpoint is always an add-on, meaning that it’s not @@ -19,20 +18,20 @@ module Orb # specification of different price model configurations possible in this endpoint. sig do params( - cadence: Symbol, + cadence: Orb::Models::PriceCreateParams::Cadence::OrSymbol, currency: String, item_id: String, - model_type: Symbol, + model_type: Orb::Models::PriceCreateParams::ModelType::OrSymbol, name: String, - unit_config: Orb::Models::PriceCreateParams::UnitConfig, - 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, + unit_config: T.any(Orb::Models::PriceCreateParams::UnitConfig, Orb::Util::AnyHash), + package_config: T.any(Orb::Models::PriceCreateParams::PackageConfig, Orb::Util::AnyHash), + matrix_config: T.any(Orb::Models::PriceCreateParams::MatrixConfig, Orb::Util::AnyHash), + matrix_with_allocation_config: T.any(Orb::Models::PriceCreateParams::MatrixWithAllocationConfig, Orb::Util::AnyHash), + tiered_config: T.any(Orb::Models::PriceCreateParams::TieredConfig, Orb::Util::AnyHash), + tiered_bps_config: T.any(Orb::Models::PriceCreateParams::TieredBpsConfig, Orb::Util::AnyHash), + bps_config: T.any(Orb::Models::PriceCreateParams::BpsConfig, Orb::Util::AnyHash), + bulk_bps_config: T.any(Orb::Models::PriceCreateParams::BulkBpsConfig, Orb::Util::AnyHash), + bulk_config: T.any(Orb::Models::PriceCreateParams::BulkConfig, Orb::Util::AnyHash), 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], @@ -54,14 +53,14 @@ module Orb cumulative_grouped_bulk_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::PriceCreateParams::BillingCycleConfiguration), + billing_cycle_configuration: T.nilable(T.any(Orb::Models::PriceCreateParams::BillingCycleConfiguration, Orb::Util::AnyHash)), 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), + invoicing_cycle_configuration: T.nilable(T.any(Orb::Models::PriceCreateParams::InvoicingCycleConfiguration, Orb::Util::AnyHash)), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns( T.any( @@ -170,7 +169,7 @@ module Orb params( 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])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns( T.any( @@ -221,7 +220,7 @@ module Orb params( cursor: T.nilable(String), limit: Integer, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns( Orb::Page[ @@ -298,7 +297,7 @@ module Orb external_customer_id: T.nilable(String), filter: T.nilable(String), grouping_keys: T::Array[String], - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::PriceEvaluateResponse) end @@ -326,10 +325,7 @@ module Orb # This endpoint returns a price given an identifier. sig do - params( - price_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) - ) + params(price_id: String, request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash))) .returns( T.any( Orb::Models::Price::UnitPrice, diff --git a/rbi/lib/orb/resources/prices/external_price_id.rbi b/rbi/lib/orb/resources/prices/external_price_id.rbi index 373a567a..0d23469d 100644 --- a/rbi/lib/orb/resources/prices/external_price_id.rbi +++ b/rbi/lib/orb/resources/prices/external_price_id.rbi @@ -11,7 +11,7 @@ module Orb params( 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])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns( T.any( @@ -62,7 +62,7 @@ module Orb sig do params( external_price_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns( T.any( diff --git a/rbi/lib/orb/resources/subscriptions.rbi b/rbi/lib/orb/resources/subscriptions.rbi index 97dfe8e8..8b154e07 100644 --- a/rbi/lib/orb/resources/subscriptions.rbi +++ b/rbi/lib/orb/resources/subscriptions.rbi @@ -261,19 +261,21 @@ module Orb # $10.00 for a subscription that invoices in USD. sig do params( - add_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]), - add_prices: T.nilable(T::Array[Orb::Models::SubscriptionCreateParams::AddPrice]), + add_adjustments: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::AddAdjustment, Orb::Util::AnyHash)]), + add_prices: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::AddPrice, Orb::Util::AnyHash)]), 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), + billing_cycle_anchor_configuration: T.nilable( + T.any(Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration, Orb::Util::AnyHash) + ), 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: T.nilable(Orb::Models::SubscriptionCreateParams::ExternalMarketplace::OrSymbol), external_marketplace_reporting_id: T.nilable(String), external_plan_id: T.nilable(String), filter: T.nilable(String), @@ -285,14 +287,14 @@ module Orb 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]), + remove_adjustments: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::RemoveAdjustment, Orb::Util::AnyHash)]), + remove_prices: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::RemovePrice, Orb::Util::AnyHash)]), + replace_adjustments: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::ReplaceAdjustment, Orb::Util::AnyHash)]), + replace_prices: T.nilable(T::Array[T.any(Orb::Models::SubscriptionCreateParams::ReplacePrice, Orb::Util::AnyHash)]), start_date: T.nilable(Time), trial_duration_days: T.nilable(Integer), usage_customer_ids: T.nilable(T::Array[String]), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::SubscriptionCreateResponse) end @@ -394,7 +396,7 @@ module Orb invoicing_threshold: T.nilable(String), 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])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Subscription) end @@ -443,8 +445,8 @@ module Orb customer_id: T.nilable(T::Array[String]), external_customer_id: T.nilable(T::Array[String]), limit: Integer, - status: T.nilable(Symbol), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + status: T.nilable(Orb::Models::SubscriptionListParams::Status::OrSymbol), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::Subscription]) end @@ -529,10 +531,10 @@ module Orb sig do params( subscription_id: String, - cancel_option: Symbol, + cancel_option: Orb::Models::SubscriptionCancelParams::CancelOption::OrSymbol, 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])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::SubscriptionCancelResponse) end @@ -556,7 +558,7 @@ module Orb sig do params( subscription_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::Subscription) end @@ -579,8 +581,8 @@ module Orb currency: T.nilable(String), timeframe_end: T.nilable(Time), timeframe_start: T.nilable(Time), - view_mode: T.nilable(Symbol), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + view_mode: T.nilable(Orb::Models::SubscriptionFetchCostsParams::ViewMode::OrSymbol), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::SubscriptionFetchCostsResponse) end @@ -614,7 +616,7 @@ module Orb start_date_gte: T.nilable(Time), 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])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Page[Orb::Models::SubscriptionFetchScheduleResponse]) end @@ -833,14 +835,14 @@ module Orb billable_metric_id: T.nilable(String), first_dimension_key: T.nilable(String), first_dimension_value: T.nilable(String), - granularity: T.nilable(Symbol), + granularity: T.nilable(Orb::Models::SubscriptionFetchUsageParams::Granularity::OrSymbol), 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: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + view_mode: T.nilable(Orb::Models::SubscriptionFetchUsageParams::ViewMode::OrSymbol), + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns( T.any( @@ -951,12 +953,12 @@ module Orb sig do params( subscription_id: String, - add: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add], - add_adjustments: T::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], + add: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::Add, Orb::Util::AnyHash)], + add_adjustments: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment, Orb::Util::AnyHash)], 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: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + edit: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::Edit, Orb::Util::AnyHash)], + edit_adjustments: T::Array[T.any(Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment, Orb::Util::AnyHash)], + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::SubscriptionPriceIntervalsResponse) end @@ -1164,13 +1166,22 @@ module Orb sig do params( subscription_id: String, - change_option: Symbol, - add_adjustments: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment]), - add_prices: T.nilable(T::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice]), + change_option: Orb::Models::SubscriptionSchedulePlanChangeParams::ChangeOption::OrSymbol, + add_adjustments: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment, Orb::Util::AnyHash)] + ), + add_prices: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice, Orb::Util::AnyHash)] + ), 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), + billing_cycle_alignment: T.nilable(Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::OrSymbol), + billing_cycle_anchor_configuration: T.nilable( + T.any( + Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration, + Orb::Util::AnyHash + ) + ), change_date: T.nilable(Time), coupon_redemption_code: T.nilable(String), credits_overage_rate: T.nilable(Float), @@ -1184,13 +1195,21 @@ module Orb 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]), + remove_adjustments: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment, Orb::Util::AnyHash)] + ), + remove_prices: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice, Orb::Util::AnyHash)] + ), + replace_adjustments: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment, Orb::Util::AnyHash)] + ), + replace_prices: T.nilable( + T::Array[T.any(Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice, Orb::Util::AnyHash)] + ), trial_duration_days: T.nilable(Integer), usage_customer_ids: T.nilable(T::Array[String]), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::SubscriptionSchedulePlanChangeResponse) end @@ -1289,7 +1308,7 @@ module Orb subscription_id: String, 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])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::SubscriptionTriggerPhaseResponse) end @@ -1315,7 +1334,7 @@ module Orb sig do params( subscription_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::SubscriptionUnscheduleCancellationResponse) end @@ -1331,7 +1350,7 @@ module Orb params( subscription_id: String, price_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse) end @@ -1348,7 +1367,7 @@ module Orb sig do params( subscription_id: String, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse) end @@ -1375,9 +1394,9 @@ module Orb price_id: String, quantity: Float, allow_invoice_credit_or_void: T.nilable(T::Boolean), - change_option: Symbol, + change_option: Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::ChangeOption::OrSymbol, effective_date: T.nilable(Date), - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse) end @@ -1423,9 +1442,9 @@ module Orb sig do params( subscription_id: String, - trial_end_date: T.any(Time, Symbol), + trial_end_date: T.any(Time, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::OrSymbol), shift: T::Boolean, - request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything])) + request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash)) ) .returns(Orb::Models::SubscriptionUpdateTrialResponse) end diff --git a/rbi/lib/orb/resources/top_level.rbi b/rbi/lib/orb/resources/top_level.rbi index 87cb277d..5e888789 100644 --- a/rbi/lib/orb/resources/top_level.rbi +++ b/rbi/lib/orb/resources/top_level.rbi @@ -10,7 +10,7 @@ module Orb # # This API does not have any side-effects or return any Orb resources. sig do - params(request_options: T.nilable(T.any(Orb::RequestOptions, T::Hash[Symbol, T.anything]))) + params(request_options: T.nilable(T.any(Orb::RequestOptions, Orb::Util::AnyHash))) .returns(Orb::Models::TopLevelPingResponse) end def ping(request_options: {}) diff --git a/rbi/lib/orb/util.rbi b/rbi/lib/orb/util.rbi index 1f2ab94a..690f8209 100644 --- a/rbi/lib/orb/util.rbi +++ b/rbi/lib/orb/util.rbi @@ -3,6 +3,10 @@ module Orb # @api private module Util + # Due to the current WIP status of Shapes support in Sorbet, types referencing + # this alias might be refined in the future. + AnyHash = T.type_alias { T::Hash[Symbol, T.anything] } + # @api private sig { returns(Float) } def self.monotonic_secs @@ -52,6 +56,11 @@ module Orb end end + # Use this to indicate that a value should be explicitly removed from a data + # structure when using `Orb::Util.deep_merge`. + # + # e.g. merging `{a: 1}` and `{a: OMIT}` should produce `{}`, where merging + # `{a: 1}` and `{}` would produce `{a: 1}`. OMIT = T.let(T.anything, T.anything) class << self @@ -80,7 +89,7 @@ module Orb # @api private sig do params( - data: T.any(T::Hash[Symbol, T.anything], T::Array[T.anything], T.anything), + data: T.any(Orb::Util::AnyHash, T::Array[T.anything], T.anything), 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)) @@ -118,15 +127,16 @@ module Orb end end - ParsedUriShape = T.type_alias do - { - scheme: T.nilable(String), - host: T.nilable(String), - port: T.nilable(Integer), - path: T.nilable(String), - query: T::Hash[String, T::Array[String]] - } - end + ParsedUriShape = + T.type_alias do + { + scheme: T.nilable(String), + host: T.nilable(String), + port: T.nilable(Integer), + path: T.nilable(String), + query: T::Hash[String, T::Array[String]] + } + end class << self # @api private @@ -246,9 +256,10 @@ module Orb end end - ServerSentEvent = T.type_alias do - {event: T.nilable(String), data: T.nilable(String), id: T.nilable(String), retry: T.nilable(Integer)} - end + ServerSentEvent = + T.type_alias do + {event: T.nilable(String), data: T.nilable(String), id: T.nilable(String), retry: T.nilable(Integer)} + end class << self # @api private diff --git a/rbi/lib/orb/version.rbi b/rbi/lib/orb/version.rbi index e45a11f8..9feb2b8e 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.28" + VERSION = "0.1.0-alpha.29" end diff --git a/sig/orb/base_client.rbs b/sig/orb/base_client.rbs index 517d6692..e87f1342 100644 --- a/sig/orb/base_client.rbs +++ b/sig/orb/base_client.rbs @@ -53,14 +53,14 @@ module Orb def initialize: ( base_url: String, - timeout: Float, - max_retries: Integer, - initial_retry_delay: Float, - max_retry_delay: Float, - headers: ::Hash[String, (String + ?timeout: Float, + ?max_retries: Integer, + ?initial_retry_delay: Float, + ?max_retry_delay: Float, + ?headers: ::Hash[String, (String | Integer | ::Array[(String | Integer)?])?], - idempotency_header: String? + ?idempotency_header: String? ) -> void private def auth_headers: -> ::Hash[String, String] @@ -88,16 +88,16 @@ module Orb ( Symbol method, String | ::Array[String] path, - query: ::Hash[String, (::Array[String] | String)?]?, - headers: ::Hash[String, (String + ?query: ::Hash[String, (::Array[String] | String)?]?, + ?headers: ::Hash[String, (String | Integer | ::Array[(String | Integer)?])?]?, - body: top?, - unwrap: Symbol?, - page: Class?, - stream: Class?, - model: Orb::Converter::input?, - options: Orb::request_opts? + ?body: top?, + ?unwrap: Symbol?, + ?page: Class?, + ?stream: Class?, + ?model: Orb::Converter::input?, + ?options: Orb::request_opts? ) -> top | (Orb::BaseClient::request_components req) -> top diff --git a/sig/orb/base_model.rbs b/sig/orb/base_model.rbs index e51131d6..81ce6a23 100644 --- a/sig/orb/base_model.rbs +++ b/sig/orb/base_model.rbs @@ -59,28 +59,28 @@ module Orb ) -> ([true, top, nil] | [false, bool, Integer]) end - class Enum - extend Orb::Converter + module Enum + include Orb::Converter def self.values: -> ::Array[(nil | bool | Integer | Float | Symbol)] private def self.finalize!: -> void - def self.===: (top other) -> bool + def ===: (top other) -> bool - def self.==: (top other) -> bool + def ==: (top other) -> bool - def self.coerce: (String | Symbol | top value) -> (Symbol | top) + def coerce: (String | Symbol | top value) -> (Symbol | top) - def self.dump: (Symbol | top value) -> (Symbol | top) + def dump: (Symbol | top value) -> (Symbol | top) - def self.try_strict_coerce: ( + def try_strict_coerce: ( top value ) -> ([true, top, nil] | [false, bool, Integer]) end - class Union - extend Orb::Converter + module Union + include Orb::Converter private def self.known_variants: -> ::Array[[Symbol?, (^-> Orb::Converter::input)]] @@ -102,22 +102,29 @@ module Orb private def self.resolve_variant: (top value) -> Orb::Converter::input? - def self.===: (top other) -> bool + def ===: (top other) -> bool - def self.==: (top other) -> bool + def ==: (top other) -> bool - def self.coerce: (top value) -> top + def coerce: (top value) -> top - def self.dump: (top value) -> top + def dump: (top value) -> top - def self.try_strict_coerce: ( + def try_strict_coerce: ( top value ) -> ([true, top, nil] | [false, bool, Integer]) end - class ArrayOf[Elem] + class ArrayOf include Orb::Converter + def self.[]: ( + ::Hash[Symbol, top] + | ^-> Orb::Converter::input + | Orb::Converter::input type_info, + ?::Hash[Symbol, top] spec + ) -> instance + def ===: (top other) -> bool def ==: (top other) -> bool @@ -130,7 +137,7 @@ module Orb top value ) -> ([true, top, nil] | [false, bool, Integer]) - def item_type: -> Elem + def item_type: -> top def initialize: ( ::Hash[Symbol, top] @@ -140,9 +147,16 @@ module Orb ) -> void end - class HashOf[Elem] + class HashOf include Orb::Converter + def self.[]: ( + ::Hash[Symbol, top] + | ^-> Orb::Converter::input + | Orb::Converter::input type_info, + ?::Hash[Symbol, top] spec + ) -> instance + def ===: (top other) -> bool def ==: (top other) -> bool @@ -155,7 +169,7 @@ module Orb top value ) -> ([true, top, nil] | [false, bool, Integer]) - def item_type: -> Elem + def item_type: -> top def initialize: ( ::Hash[Symbol, top] diff --git a/sig/orb/client.rbs b/sig/orb/client.rbs index 5607ce56..e6da014c 100644 --- a/sig/orb/client.rbs +++ b/sig/orb/client.rbs @@ -41,13 +41,13 @@ module Orb private def auth_headers: -> ::Hash[String, String] def initialize: ( - base_url: String?, - api_key: String?, - max_retries: Integer, - timeout: Float, - initial_retry_delay: Float, - max_retry_delay: Float, - idempotency_header: String + ?base_url: String?, + ?api_key: String?, + ?max_retries: Integer, + ?timeout: Float, + ?initial_retry_delay: Float, + ?max_retry_delay: Float, + ?idempotency_header: String ) -> void end end diff --git a/sig/orb/errors.rbs b/sig/orb/errors.rbs index 74fa9d68..b12bd045 100644 --- a/sig/orb/errors.rbs +++ b/sig/orb/errors.rbs @@ -15,33 +15,33 @@ module Orb def initialize: ( url: URI::Generic, - status: Integer?, - body: Object?, - request: nil, - response: nil, - message: String? + ?status: Integer?, + ?body: Object?, + ?request: nil, + ?response: nil, + ?message: String? ) -> void end class APIConnectionError < Orb::APIError def initialize: ( url: URI::Generic, - status: nil, - body: nil, - request: nil, - response: nil, - message: String? + ?status: nil, + ?body: nil, + ?request: nil, + ?response: nil, + ?message: String? ) -> void end class APITimeoutError < Orb::APIConnectionError def initialize: ( url: URI::Generic, - status: nil, - body: nil, - request: nil, - response: nil, - message: String? + ?status: nil, + ?body: nil, + ?request: nil, + ?response: nil, + ?message: String? ) -> void end @@ -52,7 +52,7 @@ module Orb body: Object?, request: nil, response: nil, - message: String? + ?message: String? ) -> instance def initialize: ( @@ -61,7 +61,7 @@ module Orb body: Object?, request: nil, response: nil, - message: String? + ?message: String? ) -> void end diff --git a/sig/orb/models/alert.rbs b/sig/orb/models/alert.rbs index 4d4f535c..6a648a12 100644 --- a/sig/orb/models/alert.rbs +++ b/sig/orb/models/alert.rbs @@ -35,20 +35,18 @@ module Orb attr_accessor type: Orb::Models::Alert::type_ - def initialize: - ( - id: String, - created_at: Time, - currency: String?, - customer: Orb::Models::Alert::Customer?, - enabled: bool, - metric: Orb::Models::Alert::Metric?, - plan: Orb::Models::Alert::Plan?, - subscription: Orb::Models::Alert::Subscription?, - thresholds: ::Array[Orb::Models::Alert::Threshold]?, - type: Orb::Models::Alert::type_ - ) -> void - | (?Orb::Models::alert | Orb::BaseModel data) -> void + def initialize: ( + id: String, + created_at: Time, + currency: String?, + customer: Orb::Models::Alert::Customer?, + enabled: bool, + metric: Orb::Models::Alert::Metric?, + plan: Orb::Models::Alert::Plan?, + subscription: Orb::Models::Alert::Subscription?, + thresholds: ::Array[Orb::Models::Alert::Threshold]?, + type: Orb::Models::Alert::type_ + ) -> void def to_hash: -> Orb::Models::alert @@ -59,9 +57,7 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | (?Orb::Models::Alert::customer | Orb::BaseModel data) -> void + def initialize: (id: String, external_customer_id: String?) -> void def to_hash: -> Orb::Models::Alert::customer end @@ -71,9 +67,7 @@ module Orb class Metric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | (?Orb::Models::Alert::metric | Orb::BaseModel data) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Alert::metric end @@ -95,14 +89,12 @@ module Orb attr_accessor plan_version: String - def initialize: - ( - id: String?, - external_plan_id: String?, - name: String?, - plan_version: String - ) -> void - | (?Orb::Models::Alert::plan | Orb::BaseModel data) -> void + def initialize: ( + id: String?, + external_plan_id: String?, + name: String?, + plan_version: String + ) -> void def to_hash: -> Orb::Models::Alert::plan end @@ -112,9 +104,7 @@ module Orb class Subscription < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | (?Orb::Models::Alert::subscription | Orb::BaseModel data) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Alert::subscription end @@ -124,9 +114,7 @@ module Orb class Threshold < Orb::BaseModel attr_accessor value: Float - def initialize: - (value: Float) -> void - | (?Orb::Models::Alert::threshold | Orb::BaseModel data) -> void + def initialize: (value: Float) -> void def to_hash: -> Orb::Models::Alert::threshold end @@ -138,14 +126,16 @@ module Orb | :usage_exceeded | :cost_exceeded - class Type < Orb::Enum + module Type + extend Orb::Enum + CREDIT_BALANCE_DEPLETED: :credit_balance_depleted CREDIT_BALANCE_DROPPED: :credit_balance_dropped CREDIT_BALANCE_RECOVERED: :credit_balance_recovered USAGE_EXCEEDED: :usage_exceeded COST_EXCEEDED: :cost_exceeded - def self.values: -> ::Array[Orb::Models::Alert::type_] + def self?.values: -> ::Array[Orb::Models::Alert::type_] end end end diff --git a/sig/orb/models/alert_create_for_customer_params.rbs b/sig/orb/models/alert_create_for_customer_params.rbs index ed968995..a9d84f24 100644 --- a/sig/orb/models/alert_create_for_customer_params.rbs +++ b/sig/orb/models/alert_create_for_customer_params.rbs @@ -18,16 +18,12 @@ module Orb attr_accessor thresholds: ::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]? - def initialize: - ( - currency: String, - type: Orb::Models::AlertCreateForCustomerParams::type_, - thresholds: ::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::alert_create_for_customer_params | Orb::BaseModel data - ) -> void + def initialize: ( + currency: String, + type: Orb::Models::AlertCreateForCustomerParams::type_, + ?thresholds: ::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::alert_create_for_customer_params @@ -36,12 +32,14 @@ module Orb | :credit_balance_dropped | :credit_balance_recovered - class Type < Orb::Enum + module Type + extend Orb::Enum + CREDIT_BALANCE_DEPLETED: :credit_balance_depleted CREDIT_BALANCE_DROPPED: :credit_balance_dropped CREDIT_BALANCE_RECOVERED: :credit_balance_recovered - def self.values: -> ::Array[Orb::Models::AlertCreateForCustomerParams::type_] + def self?.values: -> ::Array[Orb::Models::AlertCreateForCustomerParams::type_] end type threshold = { value: Float } @@ -49,12 +47,7 @@ module Orb class Threshold < Orb::BaseModel attr_accessor value: Float - def initialize: - (value: Float) -> void - | ( - ?Orb::Models::AlertCreateForCustomerParams::threshold - | Orb::BaseModel data - ) -> void + def initialize: (value: Float) -> void def to_hash: -> Orb::Models::AlertCreateForCustomerParams::threshold end diff --git a/sig/orb/models/alert_create_for_external_customer_params.rbs b/sig/orb/models/alert_create_for_external_customer_params.rbs index 3f04d51b..4aa3ef4b 100644 --- a/sig/orb/models/alert_create_for_external_customer_params.rbs +++ b/sig/orb/models/alert_create_for_external_customer_params.rbs @@ -18,17 +18,12 @@ module Orb attr_accessor thresholds: ::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]? - def initialize: - ( - currency: String, - type: Orb::Models::AlertCreateForExternalCustomerParams::type_, - thresholds: ::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::alert_create_for_external_customer_params - | Orb::BaseModel data - ) -> void + def initialize: ( + currency: String, + type: Orb::Models::AlertCreateForExternalCustomerParams::type_, + ?thresholds: ::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::alert_create_for_external_customer_params @@ -37,12 +32,14 @@ module Orb | :credit_balance_dropped | :credit_balance_recovered - class Type < Orb::Enum + module Type + extend Orb::Enum + CREDIT_BALANCE_DEPLETED: :credit_balance_depleted CREDIT_BALANCE_DROPPED: :credit_balance_dropped CREDIT_BALANCE_RECOVERED: :credit_balance_recovered - def self.values: -> ::Array[Orb::Models::AlertCreateForExternalCustomerParams::type_] + def self?.values: -> ::Array[Orb::Models::AlertCreateForExternalCustomerParams::type_] end type threshold = { value: Float } @@ -50,12 +47,7 @@ module Orb class Threshold < Orb::BaseModel attr_accessor value: Float - def initialize: - (value: Float) -> void - | ( - ?Orb::Models::AlertCreateForExternalCustomerParams::threshold - | Orb::BaseModel data - ) -> void + def initialize: (value: Float) -> void def to_hash: -> Orb::Models::AlertCreateForExternalCustomerParams::threshold end diff --git a/sig/orb/models/alert_create_for_subscription_params.rbs b/sig/orb/models/alert_create_for_subscription_params.rbs index dac4a9f0..3dfc5ac3 100644 --- a/sig/orb/models/alert_create_for_subscription_params.rbs +++ b/sig/orb/models/alert_create_for_subscription_params.rbs @@ -18,17 +18,12 @@ module Orb attr_accessor metric_id: String? - def initialize: - ( - thresholds: ::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], - type: Orb::Models::AlertCreateForSubscriptionParams::type_, - metric_id: String?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::alert_create_for_subscription_params - | Orb::BaseModel data - ) -> void + def initialize: ( + thresholds: ::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], + type: Orb::Models::AlertCreateForSubscriptionParams::type_, + ?metric_id: String?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::alert_create_for_subscription_params @@ -37,23 +32,20 @@ module Orb class Threshold < Orb::BaseModel attr_accessor value: Float - def initialize: - (value: Float) -> void - | ( - ?Orb::Models::AlertCreateForSubscriptionParams::threshold - | Orb::BaseModel data - ) -> void + def initialize: (value: Float) -> void def to_hash: -> Orb::Models::AlertCreateForSubscriptionParams::threshold end type type_ = :usage_exceeded | :cost_exceeded - class Type < Orb::Enum + module Type + extend Orb::Enum + USAGE_EXCEEDED: :usage_exceeded COST_EXCEEDED: :cost_exceeded - def self.values: -> ::Array[Orb::Models::AlertCreateForSubscriptionParams::type_] + def self?.values: -> ::Array[Orb::Models::AlertCreateForSubscriptionParams::type_] end end end diff --git a/sig/orb/models/alert_disable_params.rbs b/sig/orb/models/alert_disable_params.rbs index 5d1aea20..a3e5f77c 100644 --- a/sig/orb/models/alert_disable_params.rbs +++ b/sig/orb/models/alert_disable_params.rbs @@ -9,9 +9,10 @@ module Orb attr_accessor subscription_id: String? - def initialize: - (subscription_id: String?, request_options: Orb::request_opts) -> void - | (?Orb::Models::alert_disable_params | Orb::BaseModel data) -> void + def initialize: ( + ?subscription_id: String?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::alert_disable_params end diff --git a/sig/orb/models/alert_enable_params.rbs b/sig/orb/models/alert_enable_params.rbs index f04d4537..6e3caf55 100644 --- a/sig/orb/models/alert_enable_params.rbs +++ b/sig/orb/models/alert_enable_params.rbs @@ -9,9 +9,10 @@ module Orb attr_accessor subscription_id: String? - def initialize: - (subscription_id: String?, request_options: Orb::request_opts) -> void - | (?Orb::Models::alert_enable_params | Orb::BaseModel data) -> void + def initialize: ( + ?subscription_id: String?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::alert_enable_params end diff --git a/sig/orb/models/alert_list_params.rbs b/sig/orb/models/alert_list_params.rbs index d86b5601..8ce96201 100644 --- a/sig/orb/models/alert_list_params.rbs +++ b/sig/orb/models/alert_list_params.rbs @@ -38,20 +38,18 @@ module Orb attr_accessor subscription_id: String? - def initialize: - ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - cursor: String?, - customer_id: String?, - external_customer_id: String?, - limit: Integer, - subscription_id: String?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::alert_list_params | Orb::BaseModel data) -> void + def initialize: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?cursor: String?, + ?customer_id: String?, + ?external_customer_id: String?, + ?limit: Integer, + ?subscription_id: String?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::alert_list_params end diff --git a/sig/orb/models/alert_retrieve_params.rbs b/sig/orb/models/alert_retrieve_params.rbs index b77c935f..13aa15b5 100644 --- a/sig/orb/models/alert_retrieve_params.rbs +++ b/sig/orb/models/alert_retrieve_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::alert_retrieve_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::alert_retrieve_params end diff --git a/sig/orb/models/alert_update_params.rbs b/sig/orb/models/alert_update_params.rbs index 04905921..1f120b52 100644 --- a/sig/orb/models/alert_update_params.rbs +++ b/sig/orb/models/alert_update_params.rbs @@ -10,12 +10,10 @@ module Orb attr_accessor thresholds: ::Array[Orb::Models::AlertUpdateParams::Threshold] - def initialize: - ( - thresholds: ::Array[Orb::Models::AlertUpdateParams::Threshold], - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::alert_update_params | Orb::BaseModel data) -> void + def initialize: ( + thresholds: ::Array[Orb::Models::AlertUpdateParams::Threshold], + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::alert_update_params @@ -24,11 +22,7 @@ module Orb class Threshold < Orb::BaseModel attr_accessor value: Float - def initialize: - (value: Float) -> void - | ( - ?Orb::Models::AlertUpdateParams::threshold | Orb::BaseModel data - ) -> void + def initialize: (value: Float) -> void def to_hash: -> Orb::Models::AlertUpdateParams::threshold end diff --git a/sig/orb/models/amount_discount.rbs b/sig/orb/models/amount_discount.rbs index 87e626d4..cd3aa286 100644 --- a/sig/orb/models/amount_discount.rbs +++ b/sig/orb/models/amount_discount.rbs @@ -17,23 +17,23 @@ module Orb attr_accessor reason: String? - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - discount_type: Orb::Models::AmountDiscount::discount_type, - reason: String? - ) -> void - | (?Orb::Models::amount_discount | Orb::BaseModel data) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + discount_type: Orb::Models::AmountDiscount::discount_type, + ?reason: String? + ) -> void def to_hash: -> Orb::Models::amount_discount type discount_type = :amount - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + AMOUNT: :amount - def self.values: -> ::Array[Orb::Models::AmountDiscount::discount_type] + def self?.values: -> ::Array[Orb::Models::AmountDiscount::discount_type] end end end diff --git a/sig/orb/models/billable_metric.rbs b/sig/orb/models/billable_metric.rbs index 61d1c789..cc4e31d3 100644 --- a/sig/orb/models/billable_metric.rbs +++ b/sig/orb/models/billable_metric.rbs @@ -23,27 +23,27 @@ module Orb attr_accessor status: Orb::Models::BillableMetric::status - def initialize: - ( - id: String, - description: String?, - item: Orb::Models::Item, - metadata: ::Hash[Symbol, String], - name: String, - status: Orb::Models::BillableMetric::status - ) -> void - | (?Orb::Models::billable_metric | Orb::BaseModel data) -> void + def initialize: ( + id: String, + description: String?, + item: Orb::Models::Item, + metadata: ::Hash[Symbol, String], + name: String, + status: Orb::Models::BillableMetric::status + ) -> void def to_hash: -> Orb::Models::billable_metric type status = :active | :draft | :archived - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active DRAFT: :draft ARCHIVED: :archived - def self.values: -> ::Array[Orb::Models::BillableMetric::status] + def self?.values: -> ::Array[Orb::Models::BillableMetric::status] end end end diff --git a/sig/orb/models/billing_cycle_relative_date.rbs b/sig/orb/models/billing_cycle_relative_date.rbs index fb4c5ff9..d41a3048 100644 --- a/sig/orb/models/billing_cycle_relative_date.rbs +++ b/sig/orb/models/billing_cycle_relative_date.rbs @@ -2,11 +2,13 @@ module Orb module Models type billing_cycle_relative_date = :start_of_term | :end_of_term - class BillingCycleRelativeDate < Orb::Enum + module BillingCycleRelativeDate + extend Orb::Enum + START_OF_TERM: :start_of_term END_OF_TERM: :end_of_term - def self.values: -> ::Array[Orb::Models::billing_cycle_relative_date] + def self?.values: -> ::Array[Orb::Models::billing_cycle_relative_date] end end end diff --git a/sig/orb/models/coupon.rbs b/sig/orb/models/coupon.rbs index e58785e8..e83943f8 100644 --- a/sig/orb/models/coupon.rbs +++ b/sig/orb/models/coupon.rbs @@ -26,25 +26,25 @@ module Orb attr_accessor times_redeemed: Integer - def initialize: - ( - id: String, - archived_at: Time?, - discount: Orb::Models::Coupon::discount, - duration_in_months: Integer?, - max_redemptions: Integer?, - redemption_code: String, - times_redeemed: Integer - ) -> void - | (?Orb::Models::coupon | Orb::BaseModel data) -> void + def initialize: ( + id: String, + archived_at: Time?, + discount: Orb::Models::Coupon::discount, + duration_in_months: Integer?, + max_redemptions: Integer?, + redemption_code: String, + times_redeemed: Integer + ) -> void def to_hash: -> Orb::Models::coupon type discount = Orb::Models::PercentageDiscount | Orb::Models::AmountDiscount - class Discount < Orb::Union - def self.variants: -> [Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount] + module Discount + extend Orb::Union + + def self?.variants: -> [Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount] end end end diff --git a/sig/orb/models/coupon_archive_params.rbs b/sig/orb/models/coupon_archive_params.rbs index aa71c8cf..ed551585 100644 --- a/sig/orb/models/coupon_archive_params.rbs +++ b/sig/orb/models/coupon_archive_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::coupon_archive_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::coupon_archive_params end diff --git a/sig/orb/models/coupon_create_params.rbs b/sig/orb/models/coupon_create_params.rbs index edf8c7f3..a37c51f9 100644 --- a/sig/orb/models/coupon_create_params.rbs +++ b/sig/orb/models/coupon_create_params.rbs @@ -21,15 +21,13 @@ module Orb attr_accessor max_redemptions: Integer? - def initialize: - ( - discount: Orb::Models::CouponCreateParams::discount, - redemption_code: String, - duration_in_months: Integer?, - max_redemptions: Integer?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::coupon_create_params | Orb::BaseModel data) -> void + def initialize: ( + discount: Orb::Models::CouponCreateParams::discount, + redemption_code: String, + ?duration_in_months: Integer?, + ?max_redemptions: Integer?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::coupon_create_params @@ -37,7 +35,9 @@ module Orb Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount | Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount - class Discount < Orb::Union + module Discount + extend Orb::Union + type new_coupon_percentage_discount = { discount_type: :percentage, percentage_discount: Float } @@ -46,12 +46,10 @@ module Orb attr_accessor percentage_discount: Float - def initialize: - (percentage_discount: Float, discount_type: :percentage) -> void - | ( - ?Orb::Models::CouponCreateParams::Discount::new_coupon_percentage_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + percentage_discount: Float, + ?discount_type: :percentage + ) -> void def to_hash: -> Orb::Models::CouponCreateParams::Discount::new_coupon_percentage_discount end @@ -64,17 +62,15 @@ module Orb attr_accessor discount_type: :amount - def initialize: - (amount_discount: String, discount_type: :amount) -> void - | ( - ?Orb::Models::CouponCreateParams::Discount::new_coupon_amount_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + ?discount_type: :amount + ) -> void def to_hash: -> Orb::Models::CouponCreateParams::Discount::new_coupon_amount_discount end - def self.variants: -> [Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount] + def self?.variants: -> [Orb::Models::CouponCreateParams::Discount::NewCouponPercentageDiscount, Orb::Models::CouponCreateParams::Discount::NewCouponAmountDiscount] end end end diff --git a/sig/orb/models/coupon_fetch_params.rbs b/sig/orb/models/coupon_fetch_params.rbs index 209c91e5..0abbd80e 100644 --- a/sig/orb/models/coupon_fetch_params.rbs +++ b/sig/orb/models/coupon_fetch_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::coupon_fetch_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::coupon_fetch_params end diff --git a/sig/orb/models/coupon_list_params.rbs b/sig/orb/models/coupon_list_params.rbs index c9525543..813ae6af 100644 --- a/sig/orb/models/coupon_list_params.rbs +++ b/sig/orb/models/coupon_list_params.rbs @@ -23,15 +23,13 @@ module Orb attr_accessor show_archived: bool? - def initialize: - ( - cursor: String?, - limit: Integer, - redemption_code: String?, - show_archived: bool?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::coupon_list_params | Orb::BaseModel data) -> void + def initialize: ( + ?cursor: String?, + ?limit: Integer, + ?redemption_code: String?, + ?show_archived: bool?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::coupon_list_params end diff --git a/sig/orb/models/coupons/subscription_list_params.rbs b/sig/orb/models/coupons/subscription_list_params.rbs index 75d747fb..b0474e0d 100644 --- a/sig/orb/models/coupons/subscription_list_params.rbs +++ b/sig/orb/models/coupons/subscription_list_params.rbs @@ -14,16 +14,11 @@ module Orb def limit=: (Integer) -> Integer - def initialize: - ( - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Coupons::subscription_list_params - | Orb::BaseModel data - ) -> void + def initialize: ( + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Coupons::subscription_list_params end diff --git a/sig/orb/models/credit_note.rbs b/sig/orb/models/credit_note.rbs index 32ade134..e99fd476 100644 --- a/sig/orb/models/credit_note.rbs +++ b/sig/orb/models/credit_note.rbs @@ -57,26 +57,24 @@ module Orb ::Array[Orb::Models::CreditNote::Discount] ) -> ::Array[Orb::Models::CreditNote::Discount] - def initialize: - ( - id: String, - created_at: Time, - credit_note_number: String, - credit_note_pdf: String?, - customer: Orb::Models::CreditNote::Customer, - invoice_id: String, - line_items: ::Array[Orb::Models::CreditNote::LineItem], - maximum_amount_adjustment: Orb::Models::CreditNote::MaximumAmountAdjustment?, - memo: String?, - minimum_amount_refunded: String?, - reason: Orb::Models::CreditNote::reason?, - subtotal: String, - total: String, - type: Orb::Models::CreditNote::type_, - voided_at: Time?, - discounts: ::Array[Orb::Models::CreditNote::Discount] - ) -> void - | (?Orb::Models::credit_note | Orb::BaseModel data) -> void + def initialize: ( + id: String, + created_at: Time, + credit_note_number: String, + credit_note_pdf: String?, + customer: Orb::Models::CreditNote::Customer, + invoice_id: String, + line_items: ::Array[Orb::Models::CreditNote::LineItem], + maximum_amount_adjustment: Orb::Models::CreditNote::MaximumAmountAdjustment?, + memo: String?, + minimum_amount_refunded: String?, + reason: Orb::Models::CreditNote::reason?, + subtotal: String, + total: String, + type: Orb::Models::CreditNote::type_, + voided_at: Time?, + ?discounts: ::Array[Orb::Models::CreditNote::Discount] + ) -> void def to_hash: -> Orb::Models::credit_note @@ -87,9 +85,7 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | (?Orb::Models::CreditNote::customer | Orb::BaseModel data) -> void + def initialize: (id: String, external_customer_id: String?) -> void def to_hash: -> Orb::Models::CreditNote::customer end @@ -127,18 +123,16 @@ module Orb ::Array[Orb::Models::CreditNote::LineItem::Discount] ) -> ::Array[Orb::Models::CreditNote::LineItem::Discount] - def initialize: - ( - id: String, - amount: String, - item_id: String, - name: String, - quantity: Float?, - subtotal: String, - tax_amounts: ::Array[Orb::Models::CreditNote::LineItem::TaxAmount], - discounts: ::Array[Orb::Models::CreditNote::LineItem::Discount] - ) -> void - | (?Orb::Models::CreditNote::line_item | Orb::BaseModel data) -> void + def initialize: ( + id: String, + amount: String, + item_id: String, + name: String, + quantity: Float?, + subtotal: String, + tax_amounts: ::Array[Orb::Models::CreditNote::LineItem::TaxAmount], + ?discounts: ::Array[Orb::Models::CreditNote::LineItem::Discount] + ) -> void def to_hash: -> Orb::Models::CreditNote::line_item @@ -156,16 +150,11 @@ module Orb attr_accessor tax_rate_percentage: String? - def initialize: - ( - amount: String, - tax_rate_description: String, - tax_rate_percentage: String? - ) -> void - | ( - ?Orb::Models::CreditNote::LineItem::tax_amount - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + tax_rate_description: String, + tax_rate_percentage: String? + ) -> void def to_hash: -> Orb::Models::CreditNote::LineItem::tax_amount end @@ -196,29 +185,27 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount_applied: String, - applies_to_price_ids: ::Array[String], - discount_type: Orb::Models::CreditNote::LineItem::Discount::discount_type, - percentage_discount: Float, - amount_discount: String?, - reason: String? - ) -> void - | ( - ?Orb::Models::CreditNote::LineItem::discount | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_applied: String, + applies_to_price_ids: ::Array[String], + discount_type: Orb::Models::CreditNote::LineItem::Discount::discount_type, + percentage_discount: Float, + ?amount_discount: String?, + ?reason: String? + ) -> void def to_hash: -> Orb::Models::CreditNote::LineItem::discount type discount_type = :percentage | :amount - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE: :percentage AMOUNT: :amount - def self.values: -> ::Array[Orb::Models::CreditNote::LineItem::Discount::discount_type] + def self?.values: -> ::Array[Orb::Models::CreditNote::LineItem::Discount::discount_type] end end end @@ -243,27 +230,24 @@ module Orb attr_accessor reason: String? - def initialize: - ( - amount_applied: String, - discount_type: Orb::Models::CreditNote::MaximumAmountAdjustment::discount_type, - percentage_discount: Float, - applies_to_prices: ::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice]?, - reason: String? - ) -> void - | ( - ?Orb::Models::CreditNote::maximum_amount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_applied: String, + discount_type: Orb::Models::CreditNote::MaximumAmountAdjustment::discount_type, + percentage_discount: Float, + ?applies_to_prices: ::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::AppliesToPrice]?, + ?reason: String? + ) -> void def to_hash: -> Orb::Models::CreditNote::maximum_amount_adjustment type discount_type = :percentage - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE: :percentage - def self.values: -> ::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::discount_type] + def self?.values: -> ::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::discount_type] end type applies_to_price = { id: String, name: String } @@ -273,12 +257,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::CreditNote::MaximumAmountAdjustment::applies_to_price - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::CreditNote::MaximumAmountAdjustment::applies_to_price end @@ -287,22 +266,26 @@ module Orb type reason = :Duplicate | :Fraudulent | :"Order change" | :"Product unsatisfactory" - class Reason < Orb::Enum + module Reason + extend Orb::Enum + DUPLICATE: :Duplicate FRAUDULENT: :Fraudulent ORDER_CHANGE: :"Order change" PRODUCT_UNSATISFACTORY: :"Product unsatisfactory" - def self.values: -> ::Array[Orb::Models::CreditNote::reason] + def self?.values: -> ::Array[Orb::Models::CreditNote::reason] end type type_ = :refund | :adjustment - class Type < Orb::Enum + module Type + extend Orb::Enum + REFUND: :refund ADJUSTMENT: :adjustment - def self.values: -> ::Array[Orb::Models::CreditNote::type_] + def self?.values: -> ::Array[Orb::Models::CreditNote::type_] end type discount = @@ -325,24 +308,24 @@ module Orb attr_accessor reason: String? - def initialize: - ( - amount_applied: String, - discount_type: Orb::Models::CreditNote::Discount::discount_type, - percentage_discount: Float, - applies_to_prices: ::Array[Orb::Models::CreditNote::Discount::AppliesToPrice]?, - reason: String? - ) -> void - | (?Orb::Models::CreditNote::discount | Orb::BaseModel data) -> void + def initialize: ( + amount_applied: String, + discount_type: Orb::Models::CreditNote::Discount::discount_type, + percentage_discount: Float, + ?applies_to_prices: ::Array[Orb::Models::CreditNote::Discount::AppliesToPrice]?, + ?reason: String? + ) -> void def to_hash: -> Orb::Models::CreditNote::discount type discount_type = :percentage - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE: :percentage - def self.values: -> ::Array[Orb::Models::CreditNote::Discount::discount_type] + def self?.values: -> ::Array[Orb::Models::CreditNote::Discount::discount_type] end type applies_to_price = { id: String, name: String } @@ -352,12 +335,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::CreditNote::Discount::applies_to_price - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::CreditNote::Discount::applies_to_price end diff --git a/sig/orb/models/credit_note_create_params.rbs b/sig/orb/models/credit_note_create_params.rbs index 77f15609..10226ac9 100644 --- a/sig/orb/models/credit_note_create_params.rbs +++ b/sig/orb/models/credit_note_create_params.rbs @@ -18,16 +18,12 @@ module Orb attr_accessor reason: Orb::Models::CreditNoteCreateParams::reason? - def initialize: - ( - line_items: ::Array[Orb::Models::CreditNoteCreateParams::LineItem], - memo: String?, - reason: Orb::Models::CreditNoteCreateParams::reason?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::credit_note_create_params | Orb::BaseModel data - ) -> void + def initialize: ( + line_items: ::Array[Orb::Models::CreditNoteCreateParams::LineItem], + ?memo: String?, + ?reason: Orb::Models::CreditNoteCreateParams::reason?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::credit_note_create_params @@ -38,12 +34,7 @@ module Orb attr_accessor invoice_line_item_id: String - def initialize: - (amount: String, invoice_line_item_id: String) -> void - | ( - ?Orb::Models::CreditNoteCreateParams::line_item - | Orb::BaseModel data - ) -> void + def initialize: (amount: String, invoice_line_item_id: String) -> void def to_hash: -> Orb::Models::CreditNoteCreateParams::line_item end @@ -51,13 +42,15 @@ module Orb type reason = :duplicate | :fraudulent | :order_change | :product_unsatisfactory - class Reason < Orb::Enum + module Reason + extend Orb::Enum + DUPLICATE: :duplicate FRAUDULENT: :fraudulent ORDER_CHANGE: :order_change PRODUCT_UNSATISFACTORY: :product_unsatisfactory - def self.values: -> ::Array[Orb::Models::CreditNoteCreateParams::reason] + def self?.values: -> ::Array[Orb::Models::CreditNoteCreateParams::reason] end end end diff --git a/sig/orb/models/credit_note_fetch_params.rbs b/sig/orb/models/credit_note_fetch_params.rbs index 1e87972a..02c60f8b 100644 --- a/sig/orb/models/credit_note_fetch_params.rbs +++ b/sig/orb/models/credit_note_fetch_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::credit_note_fetch_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::credit_note_fetch_params end diff --git a/sig/orb/models/credit_note_list_params.rbs b/sig/orb/models/credit_note_list_params.rbs index 98d07a01..7dc52517 100644 --- a/sig/orb/models/credit_note_list_params.rbs +++ b/sig/orb/models/credit_note_list_params.rbs @@ -29,17 +29,15 @@ module Orb def limit=: (Integer) -> Integer - def initialize: - ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::credit_note_list_params | Orb::BaseModel data) -> void + def initialize: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::credit_note_list_params end diff --git a/sig/orb/models/customer.rbs b/sig/orb/models/customer.rbs index 5be47fb4..0a96610d 100644 --- a/sig/orb/models/customer.rbs +++ b/sig/orb/models/customer.rbs @@ -71,32 +71,30 @@ module Orb attr_accessor reporting_configuration: Orb::Models::Customer::ReportingConfiguration? - def initialize: - ( - id: String, - additional_emails: ::Array[String], - auto_collection: bool, - balance: String, - billing_address: Orb::Models::Customer::BillingAddress?, - created_at: Time, - currency: String?, - email: String, - email_delivery: bool, - exempt_from_automated_tax: bool?, - external_customer_id: String?, - hierarchy: Orb::Models::Customer::Hierarchy, - metadata: ::Hash[Symbol, String], - name: String, - payment_provider: Orb::Models::Customer::payment_provider?, - payment_provider_id: String?, - portal_url: String?, - shipping_address: Orb::Models::Customer::ShippingAddress?, - tax_id: Orb::Models::Customer::TaxID?, - timezone: String, - accounting_sync_configuration: Orb::Models::Customer::AccountingSyncConfiguration?, - reporting_configuration: Orb::Models::Customer::ReportingConfiguration? - ) -> void - | (?Orb::Models::customer | Orb::BaseModel data) -> void + def initialize: ( + id: String, + additional_emails: ::Array[String], + auto_collection: bool, + balance: String, + billing_address: Orb::Models::Customer::BillingAddress?, + created_at: Time, + currency: String?, + email: String, + email_delivery: bool, + exempt_from_automated_tax: bool?, + external_customer_id: String?, + hierarchy: Orb::Models::Customer::Hierarchy, + metadata: ::Hash[Symbol, String], + name: String, + payment_provider: Orb::Models::Customer::payment_provider?, + payment_provider_id: String?, + portal_url: String?, + shipping_address: Orb::Models::Customer::ShippingAddress?, + tax_id: Orb::Models::Customer::TaxID?, + timezone: String, + ?accounting_sync_configuration: Orb::Models::Customer::AccountingSyncConfiguration?, + ?reporting_configuration: Orb::Models::Customer::ReportingConfiguration? + ) -> void def to_hash: -> Orb::Models::customer @@ -123,18 +121,14 @@ module Orb attr_accessor state: String? - def initialize: - ( - city: String?, - country: String?, - line1: String?, - line2: String?, - postal_code: String?, - state: String? - ) -> void - | ( - ?Orb::Models::Customer::billing_address | Orb::BaseModel data - ) -> void + def initialize: ( + city: String?, + country: String?, + line1: String?, + line2: String?, + postal_code: String?, + state: String? + ) -> void def to_hash: -> Orb::Models::Customer::billing_address end @@ -150,12 +144,10 @@ module Orb attr_accessor parent: Orb::Models::Customer::Hierarchy::Parent? - def initialize: - ( - children: ::Array[Orb::Models::Customer::Hierarchy::Child], - parent: Orb::Models::Customer::Hierarchy::Parent? - ) -> void - | (?Orb::Models::Customer::hierarchy | Orb::BaseModel data) -> void + def initialize: ( + children: ::Array[Orb::Models::Customer::Hierarchy::Child], + parent: Orb::Models::Customer::Hierarchy::Parent? + ) -> void def to_hash: -> Orb::Models::Customer::hierarchy @@ -166,11 +158,7 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customer::Hierarchy::child | Orb::BaseModel data - ) -> void + def initialize: (id: String, external_customer_id: String?) -> void def to_hash: -> Orb::Models::Customer::Hierarchy::child end @@ -182,11 +170,7 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customer::Hierarchy::parent | Orb::BaseModel data - ) -> void + def initialize: (id: String, external_customer_id: String?) -> void def to_hash: -> Orb::Models::Customer::Hierarchy::parent end @@ -195,14 +179,16 @@ module Orb type payment_provider = :quickbooks | :"bill.com" | :stripe_charge | :stripe_invoice | :netsuite - class PaymentProvider < Orb::Enum + module PaymentProvider + extend Orb::Enum + QUICKBOOKS: :quickbooks BILL_COM: :"bill.com" STRIPE_CHARGE: :stripe_charge STRIPE_INVOICE: :stripe_invoice NETSUITE: :netsuite - def self.values: -> ::Array[Orb::Models::Customer::payment_provider] + def self?.values: -> ::Array[Orb::Models::Customer::payment_provider] end type shipping_address = @@ -228,18 +214,14 @@ module Orb attr_accessor state: String? - def initialize: - ( - city: String?, - country: String?, - line1: String?, - line2: String?, - postal_code: String?, - state: String? - ) -> void - | ( - ?Orb::Models::Customer::shipping_address | Orb::BaseModel data - ) -> void + def initialize: ( + city: String?, + country: String?, + line1: String?, + line2: String?, + postal_code: String?, + state: String? + ) -> void def to_hash: -> Orb::Models::Customer::shipping_address end @@ -258,13 +240,11 @@ module Orb attr_accessor value: String - def initialize: - ( - country: Orb::Models::Customer::TaxID::country, - type: Orb::Models::Customer::TaxID::type_, - value: String - ) -> void - | (?Orb::Models::Customer::tax_id | Orb::BaseModel data) -> void + def initialize: ( + country: Orb::Models::Customer::TaxID::country, + type: Orb::Models::Customer::TaxID::type_, + value: String + ) -> void def to_hash: -> Orb::Models::Customer::tax_id @@ -348,7 +328,9 @@ module Orb | :VN | :ZA - class Country < Orb::Enum + module Country + extend Orb::Enum + AD: :AD AE: :AE AR: :AR @@ -428,7 +410,7 @@ module Orb VN: :VN ZA: :ZA - def self.values: -> ::Array[Orb::Models::Customer::TaxID::country] + def self?.values: -> ::Array[Orb::Models::Customer::TaxID::country] end type type_ = @@ -504,7 +486,9 @@ module Orb | :vn_tin | :za_vat - class Type < Orb::Enum + module Type + extend Orb::Enum + AD_NRT: :ad_nrt AE_TRN: :ae_trn AR_CUIT: :ar_cuit @@ -577,7 +561,7 @@ module Orb VN_TIN: :vn_tin ZA_VAT: :za_vat - def self.values: -> ::Array[Orb::Models::Customer::TaxID::type_] + def self?.values: -> ::Array[Orb::Models::Customer::TaxID::type_] end end @@ -592,15 +576,10 @@ module Orb attr_accessor excluded: bool - def initialize: - ( - accounting_providers: ::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider], - excluded: bool - ) -> void - | ( - ?Orb::Models::Customer::accounting_sync_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + accounting_providers: ::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider], + excluded: bool + ) -> void def to_hash: -> Orb::Models::Customer::accounting_sync_configuration @@ -615,25 +594,22 @@ module Orb attr_accessor provider_type: Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type - def initialize: - ( - external_provider_id: String?, - provider_type: Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type - ) -> void - | ( - ?Orb::Models::Customer::AccountingSyncConfiguration::accounting_provider - | Orb::BaseModel data - ) -> void + def initialize: ( + external_provider_id: String?, + provider_type: Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type + ) -> void def to_hash: -> Orb::Models::Customer::AccountingSyncConfiguration::accounting_provider type provider_type = :quickbooks | :netsuite - class ProviderType < Orb::Enum + module ProviderType + extend Orb::Enum + QUICKBOOKS: :quickbooks NETSUITE: :netsuite - def self.values: -> ::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type] + def self?.values: -> ::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type] end end end @@ -643,12 +619,7 @@ module Orb class ReportingConfiguration < Orb::BaseModel attr_accessor exempt: bool - def initialize: - (exempt: bool) -> void - | ( - ?Orb::Models::Customer::reporting_configuration - | Orb::BaseModel data - ) -> void + def initialize: (exempt: bool) -> void def to_hash: -> Orb::Models::Customer::reporting_configuration end diff --git a/sig/orb/models/customer_create_params.rbs b/sig/orb/models/customer_create_params.rbs index b4d1c831..8d80f0a4 100644 --- a/sig/orb/models/customer_create_params.rbs +++ b/sig/orb/models/customer_create_params.rbs @@ -63,29 +63,27 @@ module Orb attr_accessor timezone: String? - def initialize: - ( - email: String, - name: String, - accounting_sync_configuration: Orb::Models::CustomerCreateParams::AccountingSyncConfiguration?, - additional_emails: ::Array[String]?, - auto_collection: bool?, - billing_address: Orb::Models::CustomerCreateParams::BillingAddress?, - currency: String?, - email_delivery: bool?, - external_customer_id: String?, - hierarchy: Orb::Models::CustomerCreateParams::Hierarchy?, - metadata: ::Hash[Symbol, String?]?, - payment_provider: Orb::Models::CustomerCreateParams::payment_provider?, - payment_provider_id: String?, - reporting_configuration: Orb::Models::CustomerCreateParams::ReportingConfiguration?, - shipping_address: Orb::Models::CustomerCreateParams::ShippingAddress?, - tax_configuration: Orb::Models::CustomerCreateParams::tax_configuration?, - tax_id: Orb::Models::CustomerCreateParams::TaxID?, - timezone: String?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::customer_create_params | Orb::BaseModel data) -> void + def initialize: ( + email: String, + name: String, + ?accounting_sync_configuration: Orb::Models::CustomerCreateParams::AccountingSyncConfiguration?, + ?additional_emails: ::Array[String]?, + ?auto_collection: bool?, + ?billing_address: Orb::Models::CustomerCreateParams::BillingAddress?, + ?currency: String?, + ?email_delivery: bool?, + ?external_customer_id: String?, + ?hierarchy: Orb::Models::CustomerCreateParams::Hierarchy?, + ?metadata: ::Hash[Symbol, String?]?, + ?payment_provider: Orb::Models::CustomerCreateParams::payment_provider?, + ?payment_provider_id: String?, + ?reporting_configuration: Orb::Models::CustomerCreateParams::ReportingConfiguration?, + ?shipping_address: Orb::Models::CustomerCreateParams::ShippingAddress?, + ?tax_configuration: Orb::Models::CustomerCreateParams::tax_configuration?, + ?tax_id: Orb::Models::CustomerCreateParams::TaxID?, + ?timezone: String?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::customer_create_params @@ -100,15 +98,10 @@ module Orb attr_accessor excluded: bool? - def initialize: - ( - accounting_providers: ::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]?, - excluded: bool? - ) -> void - | ( - ?Orb::Models::CustomerCreateParams::accounting_sync_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + ?accounting_providers: ::Array[Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::AccountingProvider]?, + ?excluded: bool? + ) -> void def to_hash: -> Orb::Models::CustomerCreateParams::accounting_sync_configuration @@ -120,12 +113,10 @@ module Orb attr_accessor provider_type: String - def initialize: - (external_provider_id: String, provider_type: String) -> void - | ( - ?Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::accounting_provider - | Orb::BaseModel data - ) -> void + def initialize: ( + external_provider_id: String, + provider_type: String + ) -> void def to_hash: -> Orb::Models::CustomerCreateParams::AccountingSyncConfiguration::accounting_provider end @@ -154,19 +145,14 @@ module Orb attr_accessor state: String? - def initialize: - ( - city: String?, - country: String?, - line1: String?, - line2: String?, - postal_code: String?, - state: String? - ) -> void - | ( - ?Orb::Models::CustomerCreateParams::billing_address - | Orb::BaseModel data - ) -> void + def initialize: ( + ?city: String?, + ?country: String?, + ?line1: String?, + ?line2: String?, + ?postal_code: String?, + ?state: String? + ) -> void def to_hash: -> Orb::Models::CustomerCreateParams::billing_address end @@ -181,14 +167,10 @@ module Orb attr_accessor parent_customer_id: String? - def initialize: - ( - child_customer_ids: ::Array[String], - parent_customer_id: String? - ) -> void - | ( - ?Orb::Models::CustomerCreateParams::hierarchy | Orb::BaseModel data - ) -> void + def initialize: ( + ?child_customer_ids: ::Array[String], + ?parent_customer_id: String? + ) -> void def to_hash: -> Orb::Models::CustomerCreateParams::hierarchy end @@ -196,14 +178,16 @@ module Orb type payment_provider = :quickbooks | :"bill.com" | :stripe_charge | :stripe_invoice | :netsuite - class PaymentProvider < Orb::Enum + module PaymentProvider + extend Orb::Enum + QUICKBOOKS: :quickbooks BILL_COM: :"bill.com" STRIPE_CHARGE: :stripe_charge STRIPE_INVOICE: :stripe_invoice NETSUITE: :netsuite - def self.values: -> ::Array[Orb::Models::CustomerCreateParams::payment_provider] + def self?.values: -> ::Array[Orb::Models::CustomerCreateParams::payment_provider] end type reporting_configuration = { exempt: bool } @@ -211,12 +195,7 @@ module Orb class ReportingConfiguration < Orb::BaseModel attr_accessor exempt: bool - def initialize: - (exempt: bool) -> void - | ( - ?Orb::Models::CustomerCreateParams::reporting_configuration - | Orb::BaseModel data - ) -> void + def initialize: (exempt: bool) -> void def to_hash: -> Orb::Models::CustomerCreateParams::reporting_configuration end @@ -244,19 +223,14 @@ module Orb attr_accessor state: String? - def initialize: - ( - city: String?, - country: String?, - line1: String?, - line2: String?, - postal_code: String?, - state: String? - ) -> void - | ( - ?Orb::Models::CustomerCreateParams::shipping_address - | Orb::BaseModel data - ) -> void + def initialize: ( + ?city: String?, + ?country: String?, + ?line1: String?, + ?line2: String?, + ?postal_code: String?, + ?state: String? + ) -> void def to_hash: -> Orb::Models::CustomerCreateParams::shipping_address end @@ -265,7 +239,9 @@ module Orb Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration | Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration - class TaxConfiguration < Orb::Union + module TaxConfiguration + extend Orb::Union + type new_avalara_tax_configuration = { tax_exempt: bool, @@ -280,16 +256,11 @@ module Orb attr_accessor tax_exemption_code: String? - def initialize: - ( - tax_exempt: bool, - tax_exemption_code: String?, - tax_provider: :avalara - ) -> void - | ( - ?Orb::Models::CustomerCreateParams::TaxConfiguration::new_avalara_tax_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + tax_exempt: bool, + ?tax_exemption_code: String?, + ?tax_provider: :avalara + ) -> void def to_hash: -> Orb::Models::CustomerCreateParams::TaxConfiguration::new_avalara_tax_configuration end @@ -302,17 +273,12 @@ module Orb attr_accessor tax_provider: :taxjar - def initialize: - (tax_exempt: bool, tax_provider: :taxjar) -> void - | ( - ?Orb::Models::CustomerCreateParams::TaxConfiguration::new_tax_jar_configuration - | Orb::BaseModel data - ) -> void + def initialize: (tax_exempt: bool, ?tax_provider: :taxjar) -> void def to_hash: -> Orb::Models::CustomerCreateParams::TaxConfiguration::new_tax_jar_configuration end - def self.variants: -> [Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration] + def self?.variants: -> [Orb::Models::CustomerCreateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::NewTaxJarConfiguration] end type tax_id = @@ -329,15 +295,11 @@ module Orb attr_accessor value: String - def initialize: - ( - country: Orb::Models::CustomerCreateParams::TaxID::country, - type: Orb::Models::CustomerCreateParams::TaxID::type_, - value: String - ) -> void - | ( - ?Orb::Models::CustomerCreateParams::tax_id | Orb::BaseModel data - ) -> void + def initialize: ( + country: Orb::Models::CustomerCreateParams::TaxID::country, + type: Orb::Models::CustomerCreateParams::TaxID::type_, + value: String + ) -> void def to_hash: -> Orb::Models::CustomerCreateParams::tax_id @@ -421,7 +383,9 @@ module Orb | :VN | :ZA - class Country < Orb::Enum + module Country + extend Orb::Enum + AD: :AD AE: :AE AR: :AR @@ -501,7 +465,7 @@ module Orb VN: :VN ZA: :ZA - def self.values: -> ::Array[Orb::Models::CustomerCreateParams::TaxID::country] + def self?.values: -> ::Array[Orb::Models::CustomerCreateParams::TaxID::country] end type type_ = @@ -577,7 +541,9 @@ module Orb | :vn_tin | :za_vat - class Type < Orb::Enum + module Type + extend Orb::Enum + AD_NRT: :ad_nrt AE_TRN: :ae_trn AR_CUIT: :ar_cuit @@ -650,7 +616,7 @@ module Orb VN_TIN: :vn_tin ZA_VAT: :za_vat - def self.values: -> ::Array[Orb::Models::CustomerCreateParams::TaxID::type_] + def self?.values: -> ::Array[Orb::Models::CustomerCreateParams::TaxID::type_] end end end diff --git a/sig/orb/models/customer_delete_params.rbs b/sig/orb/models/customer_delete_params.rbs index 0a58dae8..df38d7fe 100644 --- a/sig/orb/models/customer_delete_params.rbs +++ b/sig/orb/models/customer_delete_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::customer_delete_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::customer_delete_params end diff --git a/sig/orb/models/customer_fetch_by_external_id_params.rbs b/sig/orb/models/customer_fetch_by_external_id_params.rbs index 39005200..4ba9cb77 100644 --- a/sig/orb/models/customer_fetch_by_external_id_params.rbs +++ b/sig/orb/models/customer_fetch_by_external_id_params.rbs @@ -6,12 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::customer_fetch_by_external_id_params - | Orb::BaseModel data - ) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::customer_fetch_by_external_id_params end diff --git a/sig/orb/models/customer_fetch_params.rbs b/sig/orb/models/customer_fetch_params.rbs index 4b37f6ba..99450116 100644 --- a/sig/orb/models/customer_fetch_params.rbs +++ b/sig/orb/models/customer_fetch_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::customer_fetch_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::customer_fetch_params end diff --git a/sig/orb/models/customer_list_params.rbs b/sig/orb/models/customer_list_params.rbs index 194cb85e..876e905d 100644 --- a/sig/orb/models/customer_list_params.rbs +++ b/sig/orb/models/customer_list_params.rbs @@ -29,17 +29,15 @@ module Orb def limit=: (Integer) -> Integer - def initialize: - ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::customer_list_params | Orb::BaseModel data) -> void + def initialize: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::customer_list_params end diff --git a/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs b/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs index a991c284..f02fa64c 100644 --- a/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs +++ b/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs @@ -7,12 +7,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::customer_sync_payment_methods_from_gateway_by_external_customer_id_params - | Orb::BaseModel data - ) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::customer_sync_payment_methods_from_gateway_by_external_customer_id_params end diff --git a/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs b/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs index 73a28957..9a1b1243 100644 --- a/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs +++ b/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs @@ -7,12 +7,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::customer_sync_payment_methods_from_gateway_params - | Orb::BaseModel data - ) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::customer_sync_payment_methods_from_gateway_params end diff --git a/sig/orb/models/customer_update_by_external_id_params.rbs b/sig/orb/models/customer_update_by_external_id_params.rbs index bea0dca1..8f92fb9f 100644 --- a/sig/orb/models/customer_update_by_external_id_params.rbs +++ b/sig/orb/models/customer_update_by_external_id_params.rbs @@ -60,31 +60,26 @@ module Orb attr_accessor tax_id: Orb::Models::CustomerUpdateByExternalIDParams::TaxID? - def initialize: - ( - accounting_sync_configuration: Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration?, - additional_emails: ::Array[String]?, - auto_collection: bool?, - billing_address: Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress?, - currency: String?, - email: String?, - email_delivery: bool?, - external_customer_id: String?, - hierarchy: Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy?, - metadata: ::Hash[Symbol, String?]?, - name: String?, - payment_provider: Orb::Models::CustomerUpdateByExternalIDParams::payment_provider?, - payment_provider_id: String?, - reporting_configuration: Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration?, - shipping_address: Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress?, - tax_configuration: Orb::Models::CustomerUpdateByExternalIDParams::tax_configuration?, - tax_id: Orb::Models::CustomerUpdateByExternalIDParams::TaxID?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::customer_update_by_external_id_params - | Orb::BaseModel data - ) -> void + def initialize: ( + ?accounting_sync_configuration: Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration?, + ?additional_emails: ::Array[String]?, + ?auto_collection: bool?, + ?billing_address: Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress?, + ?currency: String?, + ?email: String?, + ?email_delivery: bool?, + ?external_customer_id: String?, + ?hierarchy: Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy?, + ?metadata: ::Hash[Symbol, String?]?, + ?name: String?, + ?payment_provider: Orb::Models::CustomerUpdateByExternalIDParams::payment_provider?, + ?payment_provider_id: String?, + ?reporting_configuration: Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration?, + ?shipping_address: Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress?, + ?tax_configuration: Orb::Models::CustomerUpdateByExternalIDParams::tax_configuration?, + ?tax_id: Orb::Models::CustomerUpdateByExternalIDParams::TaxID?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::customer_update_by_external_id_params @@ -99,15 +94,10 @@ module Orb attr_accessor excluded: bool? - def initialize: - ( - accounting_providers: ::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider]?, - excluded: bool? - ) -> void - | ( - ?Orb::Models::CustomerUpdateByExternalIDParams::accounting_sync_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + ?accounting_providers: ::Array[Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::AccountingProvider]?, + ?excluded: bool? + ) -> void def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::accounting_sync_configuration @@ -119,12 +109,10 @@ module Orb attr_accessor provider_type: String - def initialize: - (external_provider_id: String, provider_type: String) -> void - | ( - ?Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::accounting_provider - | Orb::BaseModel data - ) -> void + def initialize: ( + external_provider_id: String, + provider_type: String + ) -> void def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration::accounting_provider end @@ -153,19 +141,14 @@ module Orb attr_accessor state: String? - def initialize: - ( - city: String?, - country: String?, - line1: String?, - line2: String?, - postal_code: String?, - state: String? - ) -> void - | ( - ?Orb::Models::CustomerUpdateByExternalIDParams::billing_address - | Orb::BaseModel data - ) -> void + def initialize: ( + ?city: String?, + ?country: String?, + ?line1: String?, + ?line2: String?, + ?postal_code: String?, + ?state: String? + ) -> void def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::billing_address end @@ -180,15 +163,10 @@ module Orb attr_accessor parent_customer_id: String? - def initialize: - ( - child_customer_ids: ::Array[String], - parent_customer_id: String? - ) -> void - | ( - ?Orb::Models::CustomerUpdateByExternalIDParams::hierarchy - | Orb::BaseModel data - ) -> void + def initialize: ( + ?child_customer_ids: ::Array[String], + ?parent_customer_id: String? + ) -> void def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::hierarchy end @@ -196,14 +174,16 @@ module Orb type payment_provider = :quickbooks | :"bill.com" | :stripe_charge | :stripe_invoice | :netsuite - class PaymentProvider < Orb::Enum + module PaymentProvider + extend Orb::Enum + QUICKBOOKS: :quickbooks BILL_COM: :"bill.com" STRIPE_CHARGE: :stripe_charge STRIPE_INVOICE: :stripe_invoice NETSUITE: :netsuite - def self.values: -> ::Array[Orb::Models::CustomerUpdateByExternalIDParams::payment_provider] + def self?.values: -> ::Array[Orb::Models::CustomerUpdateByExternalIDParams::payment_provider] end type reporting_configuration = { exempt: bool } @@ -211,12 +191,7 @@ module Orb class ReportingConfiguration < Orb::BaseModel attr_accessor exempt: bool - def initialize: - (exempt: bool) -> void - | ( - ?Orb::Models::CustomerUpdateByExternalIDParams::reporting_configuration - | Orb::BaseModel data - ) -> void + def initialize: (exempt: bool) -> void def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::reporting_configuration end @@ -244,19 +219,14 @@ module Orb attr_accessor state: String? - def initialize: - ( - city: String?, - country: String?, - line1: String?, - line2: String?, - postal_code: String?, - state: String? - ) -> void - | ( - ?Orb::Models::CustomerUpdateByExternalIDParams::shipping_address - | Orb::BaseModel data - ) -> void + def initialize: ( + ?city: String?, + ?country: String?, + ?line1: String?, + ?line2: String?, + ?postal_code: String?, + ?state: String? + ) -> void def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::shipping_address end @@ -265,7 +235,9 @@ module Orb Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration | Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration - class TaxConfiguration < Orb::Union + module TaxConfiguration + extend Orb::Union + type new_avalara_tax_configuration = { tax_exempt: bool, @@ -280,16 +252,11 @@ module Orb attr_accessor tax_exemption_code: String? - def initialize: - ( - tax_exempt: bool, - tax_exemption_code: String?, - tax_provider: :avalara - ) -> void - | ( - ?Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::new_avalara_tax_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + tax_exempt: bool, + ?tax_exemption_code: String?, + ?tax_provider: :avalara + ) -> void def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::new_avalara_tax_configuration end @@ -302,17 +269,12 @@ module Orb attr_accessor tax_provider: :taxjar - def initialize: - (tax_exempt: bool, tax_provider: :taxjar) -> void - | ( - ?Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::new_tax_jar_configuration - | Orb::BaseModel data - ) -> void + def initialize: (tax_exempt: bool, ?tax_provider: :taxjar) -> void def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::new_tax_jar_configuration end - def self.variants: -> [Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration] + def self?.variants: -> [Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::NewTaxJarConfiguration] end type tax_id = @@ -329,16 +291,11 @@ module Orb attr_accessor value: String - def initialize: - ( - country: Orb::Models::CustomerUpdateByExternalIDParams::TaxID::country, - type: Orb::Models::CustomerUpdateByExternalIDParams::TaxID::type_, - value: String - ) -> void - | ( - ?Orb::Models::CustomerUpdateByExternalIDParams::tax_id - | Orb::BaseModel data - ) -> void + def initialize: ( + country: Orb::Models::CustomerUpdateByExternalIDParams::TaxID::country, + type: Orb::Models::CustomerUpdateByExternalIDParams::TaxID::type_, + value: String + ) -> void def to_hash: -> Orb::Models::CustomerUpdateByExternalIDParams::tax_id @@ -422,7 +379,9 @@ module Orb | :VN | :ZA - class Country < Orb::Enum + module Country + extend Orb::Enum + AD: :AD AE: :AE AR: :AR @@ -502,7 +461,7 @@ module Orb VN: :VN ZA: :ZA - def self.values: -> ::Array[Orb::Models::CustomerUpdateByExternalIDParams::TaxID::country] + def self?.values: -> ::Array[Orb::Models::CustomerUpdateByExternalIDParams::TaxID::country] end type type_ = @@ -578,7 +537,9 @@ module Orb | :vn_tin | :za_vat - class Type < Orb::Enum + module Type + extend Orb::Enum + AD_NRT: :ad_nrt AE_TRN: :ae_trn AR_CUIT: :ar_cuit @@ -651,7 +612,7 @@ module Orb VN_TIN: :vn_tin ZA_VAT: :za_vat - def self.values: -> ::Array[Orb::Models::CustomerUpdateByExternalIDParams::TaxID::type_] + def self?.values: -> ::Array[Orb::Models::CustomerUpdateByExternalIDParams::TaxID::type_] end end end diff --git a/sig/orb/models/customer_update_params.rbs b/sig/orb/models/customer_update_params.rbs index b8171c03..f161e0a9 100644 --- a/sig/orb/models/customer_update_params.rbs +++ b/sig/orb/models/customer_update_params.rbs @@ -60,28 +60,26 @@ module Orb attr_accessor tax_id: Orb::Models::CustomerUpdateParams::TaxID? - def initialize: - ( - accounting_sync_configuration: Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration?, - additional_emails: ::Array[String]?, - auto_collection: bool?, - billing_address: Orb::Models::CustomerUpdateParams::BillingAddress?, - currency: String?, - email: String?, - email_delivery: bool?, - external_customer_id: String?, - hierarchy: Orb::Models::CustomerUpdateParams::Hierarchy?, - metadata: ::Hash[Symbol, String?]?, - name: String?, - payment_provider: Orb::Models::CustomerUpdateParams::payment_provider?, - payment_provider_id: String?, - reporting_configuration: Orb::Models::CustomerUpdateParams::ReportingConfiguration?, - shipping_address: Orb::Models::CustomerUpdateParams::ShippingAddress?, - tax_configuration: Orb::Models::CustomerUpdateParams::tax_configuration?, - tax_id: Orb::Models::CustomerUpdateParams::TaxID?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::customer_update_params | Orb::BaseModel data) -> void + def initialize: ( + ?accounting_sync_configuration: Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration?, + ?additional_emails: ::Array[String]?, + ?auto_collection: bool?, + ?billing_address: Orb::Models::CustomerUpdateParams::BillingAddress?, + ?currency: String?, + ?email: String?, + ?email_delivery: bool?, + ?external_customer_id: String?, + ?hierarchy: Orb::Models::CustomerUpdateParams::Hierarchy?, + ?metadata: ::Hash[Symbol, String?]?, + ?name: String?, + ?payment_provider: Orb::Models::CustomerUpdateParams::payment_provider?, + ?payment_provider_id: String?, + ?reporting_configuration: Orb::Models::CustomerUpdateParams::ReportingConfiguration?, + ?shipping_address: Orb::Models::CustomerUpdateParams::ShippingAddress?, + ?tax_configuration: Orb::Models::CustomerUpdateParams::tax_configuration?, + ?tax_id: Orb::Models::CustomerUpdateParams::TaxID?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::customer_update_params @@ -96,15 +94,10 @@ module Orb attr_accessor excluded: bool? - def initialize: - ( - accounting_providers: ::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]?, - excluded: bool? - ) -> void - | ( - ?Orb::Models::CustomerUpdateParams::accounting_sync_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + ?accounting_providers: ::Array[Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider]?, + ?excluded: bool? + ) -> void def to_hash: -> Orb::Models::CustomerUpdateParams::accounting_sync_configuration @@ -116,12 +109,10 @@ module Orb attr_accessor provider_type: String - def initialize: - (external_provider_id: String, provider_type: String) -> void - | ( - ?Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::accounting_provider - | Orb::BaseModel data - ) -> void + def initialize: ( + external_provider_id: String, + provider_type: String + ) -> void def to_hash: -> Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration::accounting_provider end @@ -150,19 +141,14 @@ module Orb attr_accessor state: String? - def initialize: - ( - city: String?, - country: String?, - line1: String?, - line2: String?, - postal_code: String?, - state: String? - ) -> void - | ( - ?Orb::Models::CustomerUpdateParams::billing_address - | Orb::BaseModel data - ) -> void + def initialize: ( + ?city: String?, + ?country: String?, + ?line1: String?, + ?line2: String?, + ?postal_code: String?, + ?state: String? + ) -> void def to_hash: -> Orb::Models::CustomerUpdateParams::billing_address end @@ -177,14 +163,10 @@ module Orb attr_accessor parent_customer_id: String? - def initialize: - ( - child_customer_ids: ::Array[String], - parent_customer_id: String? - ) -> void - | ( - ?Orb::Models::CustomerUpdateParams::hierarchy | Orb::BaseModel data - ) -> void + def initialize: ( + ?child_customer_ids: ::Array[String], + ?parent_customer_id: String? + ) -> void def to_hash: -> Orb::Models::CustomerUpdateParams::hierarchy end @@ -192,14 +174,16 @@ module Orb type payment_provider = :quickbooks | :"bill.com" | :stripe_charge | :stripe_invoice | :netsuite - class PaymentProvider < Orb::Enum + module PaymentProvider + extend Orb::Enum + QUICKBOOKS: :quickbooks BILL_COM: :"bill.com" STRIPE_CHARGE: :stripe_charge STRIPE_INVOICE: :stripe_invoice NETSUITE: :netsuite - def self.values: -> ::Array[Orb::Models::CustomerUpdateParams::payment_provider] + def self?.values: -> ::Array[Orb::Models::CustomerUpdateParams::payment_provider] end type reporting_configuration = { exempt: bool } @@ -207,12 +191,7 @@ module Orb class ReportingConfiguration < Orb::BaseModel attr_accessor exempt: bool - def initialize: - (exempt: bool) -> void - | ( - ?Orb::Models::CustomerUpdateParams::reporting_configuration - | Orb::BaseModel data - ) -> void + def initialize: (exempt: bool) -> void def to_hash: -> Orb::Models::CustomerUpdateParams::reporting_configuration end @@ -240,19 +219,14 @@ module Orb attr_accessor state: String? - def initialize: - ( - city: String?, - country: String?, - line1: String?, - line2: String?, - postal_code: String?, - state: String? - ) -> void - | ( - ?Orb::Models::CustomerUpdateParams::shipping_address - | Orb::BaseModel data - ) -> void + def initialize: ( + ?city: String?, + ?country: String?, + ?line1: String?, + ?line2: String?, + ?postal_code: String?, + ?state: String? + ) -> void def to_hash: -> Orb::Models::CustomerUpdateParams::shipping_address end @@ -261,7 +235,9 @@ module Orb Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration | Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration - class TaxConfiguration < Orb::Union + module TaxConfiguration + extend Orb::Union + type new_avalara_tax_configuration = { tax_exempt: bool, @@ -276,16 +252,11 @@ module Orb attr_accessor tax_exemption_code: String? - def initialize: - ( - tax_exempt: bool, - tax_exemption_code: String?, - tax_provider: :avalara - ) -> void - | ( - ?Orb::Models::CustomerUpdateParams::TaxConfiguration::new_avalara_tax_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + tax_exempt: bool, + ?tax_exemption_code: String?, + ?tax_provider: :avalara + ) -> void def to_hash: -> Orb::Models::CustomerUpdateParams::TaxConfiguration::new_avalara_tax_configuration end @@ -298,17 +269,12 @@ module Orb attr_accessor tax_provider: :taxjar - def initialize: - (tax_exempt: bool, tax_provider: :taxjar) -> void - | ( - ?Orb::Models::CustomerUpdateParams::TaxConfiguration::new_tax_jar_configuration - | Orb::BaseModel data - ) -> void + def initialize: (tax_exempt: bool, ?tax_provider: :taxjar) -> void def to_hash: -> Orb::Models::CustomerUpdateParams::TaxConfiguration::new_tax_jar_configuration end - def self.variants: -> [Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration] + def self?.variants: -> [Orb::Models::CustomerUpdateParams::TaxConfiguration::NewAvalaraTaxConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::NewTaxJarConfiguration] end type tax_id = @@ -325,15 +291,11 @@ module Orb attr_accessor value: String - def initialize: - ( - country: Orb::Models::CustomerUpdateParams::TaxID::country, - type: Orb::Models::CustomerUpdateParams::TaxID::type_, - value: String - ) -> void - | ( - ?Orb::Models::CustomerUpdateParams::tax_id | Orb::BaseModel data - ) -> void + def initialize: ( + country: Orb::Models::CustomerUpdateParams::TaxID::country, + type: Orb::Models::CustomerUpdateParams::TaxID::type_, + value: String + ) -> void def to_hash: -> Orb::Models::CustomerUpdateParams::tax_id @@ -417,7 +379,9 @@ module Orb | :VN | :ZA - class Country < Orb::Enum + module Country + extend Orb::Enum + AD: :AD AE: :AE AR: :AR @@ -497,7 +461,7 @@ module Orb VN: :VN ZA: :ZA - def self.values: -> ::Array[Orb::Models::CustomerUpdateParams::TaxID::country] + def self?.values: -> ::Array[Orb::Models::CustomerUpdateParams::TaxID::country] end type type_ = @@ -573,7 +537,9 @@ module Orb | :vn_tin | :za_vat - class Type < Orb::Enum + module Type + extend Orb::Enum + AD_NRT: :ad_nrt AE_TRN: :ae_trn AR_CUIT: :ar_cuit @@ -646,7 +612,7 @@ module Orb VN_TIN: :vn_tin ZA_VAT: :za_vat - def self.values: -> ::Array[Orb::Models::CustomerUpdateParams::TaxID::type_] + def self?.values: -> ::Array[Orb::Models::CustomerUpdateParams::TaxID::type_] end end end diff --git a/sig/orb/models/customers/balance_transaction_create_params.rbs b/sig/orb/models/customers/balance_transaction_create_params.rbs index 87be227d..48e39f0b 100644 --- a/sig/orb/models/customers/balance_transaction_create_params.rbs +++ b/sig/orb/models/customers/balance_transaction_create_params.rbs @@ -19,27 +19,24 @@ module Orb attr_accessor description: String? - def initialize: - ( - amount: String, - type: Orb::Models::Customers::BalanceTransactionCreateParams::type_, - description: String?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::balance_transaction_create_params - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + type: Orb::Models::Customers::BalanceTransactionCreateParams::type_, + ?description: String?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::balance_transaction_create_params type type_ = :increment | :decrement - class Type < Orb::Enum + module Type + extend Orb::Enum + INCREMENT: :increment DECREMENT: :decrement - def self.values: -> ::Array[Orb::Models::Customers::BalanceTransactionCreateParams::type_] + def self?.values: -> ::Array[Orb::Models::Customers::BalanceTransactionCreateParams::type_] end end end diff --git a/sig/orb/models/customers/balance_transaction_create_response.rbs b/sig/orb/models/customers/balance_transaction_create_response.rbs index d664fddd..438b9bb8 100644 --- a/sig/orb/models/customers/balance_transaction_create_response.rbs +++ b/sig/orb/models/customers/balance_transaction_create_response.rbs @@ -36,23 +36,18 @@ module Orb attr_accessor type: Orb::Models::Customers::BalanceTransactionCreateResponse::type_ - def initialize: - ( - id: String, - action: Orb::Models::Customers::BalanceTransactionCreateResponse::action, - amount: String, - created_at: Time, - credit_note: Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote?, - description: String?, - ending_balance: String, - invoice: Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice?, - starting_balance: String, - type: Orb::Models::Customers::BalanceTransactionCreateResponse::type_ - ) -> void - | ( - ?Orb::Models::Customers::balance_transaction_create_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + action: Orb::Models::Customers::BalanceTransactionCreateResponse::action, + amount: String, + created_at: Time, + credit_note: Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote?, + description: String?, + ending_balance: String, + invoice: Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice?, + starting_balance: String, + type: Orb::Models::Customers::BalanceTransactionCreateResponse::type_ + ) -> void def to_hash: -> Orb::Models::Customers::balance_transaction_create_response @@ -67,7 +62,9 @@ module Orb | :overpayment_refund | :external_payment - class Action < Orb::Enum + module Action + extend Orb::Enum + APPLIED_TO_INVOICE: :applied_to_invoice MANUAL_ADJUSTMENT: :manual_adjustment PRORATED_REFUND: :prorated_refund @@ -78,7 +75,7 @@ module Orb OVERPAYMENT_REFUND: :overpayment_refund EXTERNAL_PAYMENT: :external_payment - def self.values: -> ::Array[Orb::Models::Customers::BalanceTransactionCreateResponse::action] + def self?.values: -> ::Array[Orb::Models::Customers::BalanceTransactionCreateResponse::action] end type credit_note = { id: String } @@ -86,12 +83,7 @@ module Orb class CreditNote < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Customers::BalanceTransactionCreateResponse::credit_note - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Customers::BalanceTransactionCreateResponse::credit_note end @@ -101,23 +93,20 @@ module Orb class Invoice < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Customers::BalanceTransactionCreateResponse::invoice - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Customers::BalanceTransactionCreateResponse::invoice end type type_ = :increment | :decrement - class Type < Orb::Enum + module Type + extend Orb::Enum + INCREMENT: :increment DECREMENT: :decrement - def self.values: -> ::Array[Orb::Models::Customers::BalanceTransactionCreateResponse::type_] + def self?.values: -> ::Array[Orb::Models::Customers::BalanceTransactionCreateResponse::type_] end end end diff --git a/sig/orb/models/customers/balance_transaction_list_params.rbs b/sig/orb/models/customers/balance_transaction_list_params.rbs index aaec01a8..4906ec62 100644 --- a/sig/orb/models/customers/balance_transaction_list_params.rbs +++ b/sig/orb/models/customers/balance_transaction_list_params.rbs @@ -30,20 +30,15 @@ module Orb attr_accessor operation_time_lte: Time? - def initialize: - ( - cursor: String?, - limit: Integer, - operation_time_gt: Time?, - operation_time_gte: Time?, - operation_time_lt: Time?, - operation_time_lte: Time?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::balance_transaction_list_params - | Orb::BaseModel data - ) -> void + def initialize: ( + ?cursor: String?, + ?limit: Integer, + ?operation_time_gt: Time?, + ?operation_time_gte: Time?, + ?operation_time_lt: Time?, + ?operation_time_lte: Time?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::balance_transaction_list_params end diff --git a/sig/orb/models/customers/balance_transaction_list_response.rbs b/sig/orb/models/customers/balance_transaction_list_response.rbs index 3300dc9a..2379a132 100644 --- a/sig/orb/models/customers/balance_transaction_list_response.rbs +++ b/sig/orb/models/customers/balance_transaction_list_response.rbs @@ -36,23 +36,18 @@ module Orb attr_accessor type: Orb::Models::Customers::BalanceTransactionListResponse::type_ - def initialize: - ( - id: String, - action: Orb::Models::Customers::BalanceTransactionListResponse::action, - amount: String, - created_at: Time, - credit_note: Orb::Models::Customers::BalanceTransactionListResponse::CreditNote?, - description: String?, - ending_balance: String, - invoice: Orb::Models::Customers::BalanceTransactionListResponse::Invoice?, - starting_balance: String, - type: Orb::Models::Customers::BalanceTransactionListResponse::type_ - ) -> void - | ( - ?Orb::Models::Customers::balance_transaction_list_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + action: Orb::Models::Customers::BalanceTransactionListResponse::action, + amount: String, + created_at: Time, + credit_note: Orb::Models::Customers::BalanceTransactionListResponse::CreditNote?, + description: String?, + ending_balance: String, + invoice: Orb::Models::Customers::BalanceTransactionListResponse::Invoice?, + starting_balance: String, + type: Orb::Models::Customers::BalanceTransactionListResponse::type_ + ) -> void def to_hash: -> Orb::Models::Customers::balance_transaction_list_response @@ -67,7 +62,9 @@ module Orb | :overpayment_refund | :external_payment - class Action < Orb::Enum + module Action + extend Orb::Enum + APPLIED_TO_INVOICE: :applied_to_invoice MANUAL_ADJUSTMENT: :manual_adjustment PRORATED_REFUND: :prorated_refund @@ -78,7 +75,7 @@ module Orb OVERPAYMENT_REFUND: :overpayment_refund EXTERNAL_PAYMENT: :external_payment - def self.values: -> ::Array[Orb::Models::Customers::BalanceTransactionListResponse::action] + def self?.values: -> ::Array[Orb::Models::Customers::BalanceTransactionListResponse::action] end type credit_note = { id: String } @@ -86,12 +83,7 @@ module Orb class CreditNote < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Customers::BalanceTransactionListResponse::credit_note - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Customers::BalanceTransactionListResponse::credit_note end @@ -101,23 +93,20 @@ module Orb class Invoice < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Customers::BalanceTransactionListResponse::invoice - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Customers::BalanceTransactionListResponse::invoice end type type_ = :increment | :decrement - class Type < Orb::Enum + module Type + extend Orb::Enum + INCREMENT: :increment DECREMENT: :decrement - def self.values: -> ::Array[Orb::Models::Customers::BalanceTransactionListResponse::type_] + def self?.values: -> ::Array[Orb::Models::Customers::BalanceTransactionListResponse::type_] end end end diff --git a/sig/orb/models/customers/cost_list_by_external_id_params.rbs b/sig/orb/models/customers/cost_list_by_external_id_params.rbs index 466574a9..7dc5ae55 100644 --- a/sig/orb/models/customers/cost_list_by_external_id_params.rbs +++ b/sig/orb/models/customers/cost_list_by_external_id_params.rbs @@ -22,28 +22,25 @@ module Orb attr_accessor view_mode: Orb::Models::Customers::CostListByExternalIDParams::view_mode? - def initialize: - ( - currency: String?, - timeframe_end: Time?, - timeframe_start: Time?, - view_mode: Orb::Models::Customers::CostListByExternalIDParams::view_mode?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::cost_list_by_external_id_params - | Orb::BaseModel data - ) -> void + def initialize: ( + ?currency: String?, + ?timeframe_end: Time?, + ?timeframe_start: Time?, + ?view_mode: Orb::Models::Customers::CostListByExternalIDParams::view_mode?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::cost_list_by_external_id_params type view_mode = :periodic | :cumulative - class ViewMode < Orb::Enum + module ViewMode + extend Orb::Enum + PERIODIC: :periodic CUMULATIVE: :cumulative - def self.values: -> ::Array[Orb::Models::Customers::CostListByExternalIDParams::view_mode] + def self?.values: -> ::Array[Orb::Models::Customers::CostListByExternalIDParams::view_mode] end end end diff --git a/sig/orb/models/customers/cost_list_by_external_id_response.rbs b/sig/orb/models/customers/cost_list_by_external_id_response.rbs index 02812deb..942d38c0 100644 --- a/sig/orb/models/customers/cost_list_by_external_id_response.rbs +++ b/sig/orb/models/customers/cost_list_by_external_id_response.rbs @@ -9,14 +9,9 @@ module Orb class CostListByExternalIDResponse < Orb::BaseModel attr_accessor data: ::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data] - def initialize: - ( - data: ::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data] - ) -> void - | ( - ?Orb::Models::Customers::cost_list_by_external_id_response - | Orb::BaseModel data - ) -> void + def initialize: ( + data: ::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data] + ) -> void def to_hash: -> Orb::Models::Customers::cost_list_by_external_id_response @@ -40,18 +35,13 @@ module Orb attr_accessor total: String - def initialize: - ( - per_price_costs: ::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost], - subtotal: String, - timeframe_end: Time, - timeframe_start: Time, - total: String - ) -> void - | ( - ?Orb::Models::Customers::CostListByExternalIDResponse::data - | Orb::BaseModel data - ) -> void + def initialize: ( + per_price_costs: ::Array[Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost], + subtotal: String, + timeframe_end: Time, + timeframe_start: Time, + total: String + ) -> void def to_hash: -> Orb::Models::Customers::CostListByExternalIDResponse::data @@ -75,18 +65,13 @@ module Orb attr_accessor quantity: Float? - def initialize: - ( - price: Orb::Models::price, - price_id: String, - subtotal: String, - total: String, - quantity: Float? - ) -> void - | ( - ?Orb::Models::Customers::CostListByExternalIDResponse::Data::per_price_cost - | Orb::BaseModel data - ) -> void + def initialize: ( + price: Orb::Models::price, + price_id: String, + subtotal: String, + total: String, + ?quantity: Float? + ) -> void def to_hash: -> Orb::Models::Customers::CostListByExternalIDResponse::Data::per_price_cost end diff --git a/sig/orb/models/customers/cost_list_params.rbs b/sig/orb/models/customers/cost_list_params.rbs index 70d78545..85887448 100644 --- a/sig/orb/models/customers/cost_list_params.rbs +++ b/sig/orb/models/customers/cost_list_params.rbs @@ -22,27 +22,25 @@ module Orb attr_accessor view_mode: Orb::Models::Customers::CostListParams::view_mode? - def initialize: - ( - currency: String?, - timeframe_end: Time?, - timeframe_start: Time?, - view_mode: Orb::Models::Customers::CostListParams::view_mode?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::cost_list_params | Orb::BaseModel data - ) -> void + def initialize: ( + ?currency: String?, + ?timeframe_end: Time?, + ?timeframe_start: Time?, + ?view_mode: Orb::Models::Customers::CostListParams::view_mode?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::cost_list_params type view_mode = :periodic | :cumulative - class ViewMode < Orb::Enum + module ViewMode + extend Orb::Enum + PERIODIC: :periodic CUMULATIVE: :cumulative - def self.values: -> ::Array[Orb::Models::Customers::CostListParams::view_mode] + def self?.values: -> ::Array[Orb::Models::Customers::CostListParams::view_mode] end end end diff --git a/sig/orb/models/customers/cost_list_response.rbs b/sig/orb/models/customers/cost_list_response.rbs index b8069b16..b9d486cd 100644 --- a/sig/orb/models/customers/cost_list_response.rbs +++ b/sig/orb/models/customers/cost_list_response.rbs @@ -7,13 +7,9 @@ module Orb class CostListResponse < Orb::BaseModel attr_accessor data: ::Array[Orb::Models::Customers::CostListResponse::Data] - def initialize: - ( - data: ::Array[Orb::Models::Customers::CostListResponse::Data] - ) -> void - | ( - ?Orb::Models::Customers::cost_list_response | Orb::BaseModel data - ) -> void + def initialize: ( + data: ::Array[Orb::Models::Customers::CostListResponse::Data] + ) -> void def to_hash: -> Orb::Models::Customers::cost_list_response @@ -37,18 +33,13 @@ module Orb attr_accessor total: String - def initialize: - ( - per_price_costs: ::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost], - subtotal: String, - timeframe_end: Time, - timeframe_start: Time, - total: String - ) -> void - | ( - ?Orb::Models::Customers::CostListResponse::data - | Orb::BaseModel data - ) -> void + def initialize: ( + per_price_costs: ::Array[Orb::Models::Customers::CostListResponse::Data::PerPriceCost], + subtotal: String, + timeframe_end: Time, + timeframe_start: Time, + total: String + ) -> void def to_hash: -> Orb::Models::Customers::CostListResponse::data @@ -72,18 +63,13 @@ module Orb attr_accessor quantity: Float? - def initialize: - ( - price: Orb::Models::price, - price_id: String, - subtotal: String, - total: String, - quantity: Float? - ) -> void - | ( - ?Orb::Models::Customers::CostListResponse::Data::per_price_cost - | Orb::BaseModel data - ) -> void + def initialize: ( + price: Orb::Models::price, + price_id: String, + subtotal: String, + total: String, + ?quantity: Float? + ) -> void def to_hash: -> Orb::Models::Customers::CostListResponse::Data::per_price_cost end diff --git a/sig/orb/models/customers/credit_list_by_external_id_params.rbs b/sig/orb/models/customers/credit_list_by_external_id_params.rbs index 5b5825f6..1db24044 100644 --- a/sig/orb/models/customers/credit_list_by_external_id_params.rbs +++ b/sig/orb/models/customers/credit_list_by_external_id_params.rbs @@ -26,18 +26,13 @@ module Orb def limit=: (Integer) -> Integer - def initialize: - ( - currency: String?, - cursor: String?, - include_all_blocks: bool, - limit: Integer, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::credit_list_by_external_id_params - | Orb::BaseModel data - ) -> void + def initialize: ( + ?currency: String?, + ?cursor: String?, + ?include_all_blocks: bool, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::credit_list_by_external_id_params end diff --git a/sig/orb/models/customers/credit_list_by_external_id_response.rbs b/sig/orb/models/customers/credit_list_by_external_id_response.rbs index 03447192..594099da 100644 --- a/sig/orb/models/customers/credit_list_by_external_id_response.rbs +++ b/sig/orb/models/customers/credit_list_by_external_id_response.rbs @@ -27,30 +27,27 @@ module Orb attr_accessor status: Orb::Models::Customers::CreditListByExternalIDResponse::status - def initialize: - ( - id: String, - balance: Float, - effective_date: Time?, - expiry_date: Time?, - maximum_initial_balance: Float?, - per_unit_cost_basis: String?, - status: Orb::Models::Customers::CreditListByExternalIDResponse::status - ) -> void - | ( - ?Orb::Models::Customers::credit_list_by_external_id_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + balance: Float, + effective_date: Time?, + expiry_date: Time?, + maximum_initial_balance: Float?, + per_unit_cost_basis: String?, + status: Orb::Models::Customers::CreditListByExternalIDResponse::status + ) -> void def to_hash: -> Orb::Models::Customers::credit_list_by_external_id_response type status = :active | :pending_payment - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active PENDING_PAYMENT: :pending_payment - def self.values: -> ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::status] + def self?.values: -> ::Array[Orb::Models::Customers::CreditListByExternalIDResponse::status] end end end diff --git a/sig/orb/models/customers/credit_list_params.rbs b/sig/orb/models/customers/credit_list_params.rbs index 919cc5ed..8da8aa08 100644 --- a/sig/orb/models/customers/credit_list_params.rbs +++ b/sig/orb/models/customers/credit_list_params.rbs @@ -26,17 +26,13 @@ module Orb def limit=: (Integer) -> Integer - def initialize: - ( - currency: String?, - cursor: String?, - include_all_blocks: bool, - limit: Integer, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::credit_list_params | Orb::BaseModel data - ) -> void + def initialize: ( + ?currency: String?, + ?cursor: String?, + ?include_all_blocks: bool, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::credit_list_params end diff --git a/sig/orb/models/customers/credit_list_response.rbs b/sig/orb/models/customers/credit_list_response.rbs index 29e70e1f..c9e19c99 100644 --- a/sig/orb/models/customers/credit_list_response.rbs +++ b/sig/orb/models/customers/credit_list_response.rbs @@ -27,29 +27,27 @@ module Orb attr_accessor status: Orb::Models::Customers::CreditListResponse::status - def initialize: - ( - id: String, - balance: Float, - effective_date: Time?, - expiry_date: Time?, - maximum_initial_balance: Float?, - per_unit_cost_basis: String?, - status: Orb::Models::Customers::CreditListResponse::status - ) -> void - | ( - ?Orb::Models::Customers::credit_list_response | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + balance: Float, + effective_date: Time?, + expiry_date: Time?, + maximum_initial_balance: Float?, + per_unit_cost_basis: String?, + status: Orb::Models::Customers::CreditListResponse::status + ) -> void def to_hash: -> Orb::Models::Customers::credit_list_response type status = :active | :pending_payment - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active PENDING_PAYMENT: :pending_payment - def self.values: -> ::Array[Orb::Models::Customers::CreditListResponse::status] + def self?.values: -> ::Array[Orb::Models::Customers::CreditListResponse::status] end end end diff --git a/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs b/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs index 805ee503..b7b7e299 100644 --- a/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs +++ b/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs @@ -47,35 +47,32 @@ module Orb attr_accessor void_reason: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::void_reason? - def initialize: - ( - amount: Float, - entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::entry_type, - expiry_date: Time?, - target_expiry_date: Date, - block_id: String, - currency: String?, - description: String?, - effective_date: Time?, - invoice_settings: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings?, - metadata: ::Hash[Symbol, String?]?, - per_unit_cost_basis: String?, - void_reason: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::void_reason?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::Credits::ledger_create_entry_by_external_id_params - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: Float, + entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::entry_type, + expiry_date: Time?, + target_expiry_date: Date, + block_id: String, + ?currency: String?, + ?description: String?, + ?effective_date: Time?, + ?invoice_settings: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings?, + ?metadata: ::Hash[Symbol, String?]?, + ?per_unit_cost_basis: String?, + ?void_reason: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::void_reason?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::Credits::ledger_create_entry_by_external_id_params type entry_type = :amendment - class EntryType < Orb::Enum + module EntryType + extend Orb::Enum + AMENDMENT: :amendment - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::entry_type] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::entry_type] end type invoice_settings = @@ -97,27 +94,24 @@ module Orb def require_successful_payment=: (bool) -> bool - def initialize: - ( - auto_collection: bool, - net_terms: Integer, - memo: String?, - require_successful_payment: bool - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::invoice_settings - | Orb::BaseModel data - ) -> void + def initialize: ( + auto_collection: bool, + net_terms: Integer, + ?memo: String?, + ?require_successful_payment: bool + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::invoice_settings end type void_reason = :refund - class VoidReason < Orb::Enum + module VoidReason + extend Orb::Enum + REFUND: :refund - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::void_reason] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::void_reason] end end end diff --git a/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs b/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs index cef04598..f108bd26 100644 --- a/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +++ b/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs @@ -11,7 +11,9 @@ module Orb | Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry | Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry - class LedgerCreateEntryByExternalIDResponse < Orb::Union + module LedgerCreateEntryByExternalIDResponse + extend Orb::Union + type increment_ledger_entry = { id: String, @@ -56,26 +58,21 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - entry_type: :increment - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::increment_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?entry_type: :increment + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::increment_ledger_entry @@ -89,16 +86,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::credit_block end @@ -110,23 +102,23 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::IncrementLedgerEntry::entry_status] end end @@ -183,29 +175,24 @@ module Orb attr_accessor price_id: String? - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - event_id: String?, - invoice_id: String?, - price_id: String?, - entry_type: :decrement - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::decrement_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?event_id: String?, + ?invoice_id: String?, + ?price_id: String?, + ?entry_type: :decrement + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::decrement_ledger_entry @@ -219,16 +206,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::credit_block end @@ -240,23 +222,23 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::DecrementLedgerEntry::entry_status] end end @@ -307,27 +289,22 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - new_block_expiry_date: Time?, - starting_balance: Float, - entry_type: :expiration_change - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::expiration_change_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + new_block_expiry_date: Time?, + starting_balance: Float, + ?entry_type: :expiration_change + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::expiration_change_ledger_entry @@ -341,16 +318,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::credit_block end @@ -362,23 +334,23 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::ExpirationChangeLedgerEntry::entry_status] end end @@ -426,26 +398,21 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - entry_type: :credit_block_expiry - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::credit_block_expiry_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?entry_type: :credit_block_expiry + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::credit_block_expiry_ledger_entry @@ -459,16 +426,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::credit_block end @@ -480,23 +442,23 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::CreditBlockExpiryLedgerEntry::entry_status] end end @@ -550,28 +512,23 @@ module Orb attr_accessor void_reason: String? - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - void_amount: Float, - void_reason: String?, - entry_type: :void - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::void_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + void_amount: Float, + void_reason: String?, + ?entry_type: :void + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::void_ledger_entry @@ -585,16 +542,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::credit_block end @@ -606,23 +558,23 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidLedgerEntry::entry_status] end end @@ -679,29 +631,24 @@ module Orb attr_accessor void_reason: String? - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - new_block_expiry_date: Time, - starting_balance: Float, - void_amount: Float, - void_reason: String?, - entry_type: :void_initiated - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::void_initiated_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + new_block_expiry_date: Time, + starting_balance: Float, + void_amount: Float, + void_reason: String?, + ?entry_type: :void_initiated + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::void_initiated_ledger_entry @@ -715,16 +662,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::credit_block end @@ -736,23 +678,23 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::VoidInitiatedLedgerEntry::entry_status] end end @@ -800,26 +742,21 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - entry_type: :amendment - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::amendment_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?entry_type: :amendment + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::amendment_ledger_entry @@ -833,16 +770,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::credit_block end @@ -854,27 +786,27 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::AmendmentLedgerEntry::entry_status] end end - def self.variants: -> [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] + def self?.variants: -> [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 end end diff --git a/sig/orb/models/customers/credits/ledger_create_entry_params.rbs b/sig/orb/models/customers/credits/ledger_create_entry_params.rbs index 27071f6f..d7f39fde 100644 --- a/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +++ b/sig/orb/models/customers/credits/ledger_create_entry_params.rbs @@ -47,35 +47,32 @@ module Orb attr_accessor void_reason: Orb::Models::Customers::Credits::LedgerCreateEntryParams::void_reason? - def initialize: - ( - amount: Float, - entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryParams::entry_type, - expiry_date: Time?, - target_expiry_date: Date, - block_id: String, - currency: String?, - description: String?, - effective_date: Time?, - invoice_settings: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings?, - metadata: ::Hash[Symbol, String?]?, - per_unit_cost_basis: String?, - void_reason: Orb::Models::Customers::Credits::LedgerCreateEntryParams::void_reason?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::Credits::ledger_create_entry_params - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: Float, + entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryParams::entry_type, + expiry_date: Time?, + target_expiry_date: Date, + block_id: String, + ?currency: String?, + ?description: String?, + ?effective_date: Time?, + ?invoice_settings: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings?, + ?metadata: ::Hash[Symbol, String?]?, + ?per_unit_cost_basis: String?, + ?void_reason: Orb::Models::Customers::Credits::LedgerCreateEntryParams::void_reason?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::Credits::ledger_create_entry_params type entry_type = :amendment - class EntryType < Orb::Enum + module EntryType + extend Orb::Enum + AMENDMENT: :amendment - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryParams::entry_type] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryParams::entry_type] end type invoice_settings = @@ -97,27 +94,24 @@ module Orb def require_successful_payment=: (bool) -> bool - def initialize: - ( - auto_collection: bool, - net_terms: Integer, - memo: String?, - require_successful_payment: bool - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryParams::invoice_settings - | Orb::BaseModel data - ) -> void + def initialize: ( + auto_collection: bool, + net_terms: Integer, + ?memo: String?, + ?require_successful_payment: bool + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryParams::invoice_settings end type void_reason = :refund - class VoidReason < Orb::Enum + module VoidReason + extend Orb::Enum + REFUND: :refund - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryParams::void_reason] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryParams::void_reason] end end end diff --git a/sig/orb/models/customers/credits/ledger_create_entry_response.rbs b/sig/orb/models/customers/credits/ledger_create_entry_response.rbs index 90849348..d0014e4b 100644 --- a/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +++ b/sig/orb/models/customers/credits/ledger_create_entry_response.rbs @@ -11,7 +11,9 @@ module Orb | Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry | Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry - class LedgerCreateEntryResponse < Orb::Union + module LedgerCreateEntryResponse + extend Orb::Union + type increment_ledger_entry = { id: String, @@ -56,26 +58,21 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - entry_type: :increment - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::increment_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?entry_type: :increment + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::increment_ledger_entry @@ -89,16 +86,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::credit_block end @@ -110,23 +102,23 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::IncrementLedgerEntry::entry_status] end end @@ -183,29 +175,24 @@ module Orb attr_accessor price_id: String? - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - event_id: String?, - invoice_id: String?, - price_id: String?, - entry_type: :decrement - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::decrement_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?event_id: String?, + ?invoice_id: String?, + ?price_id: String?, + ?entry_type: :decrement + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::decrement_ledger_entry @@ -219,16 +206,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::credit_block end @@ -240,23 +222,23 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::DecrementLedgerEntry::entry_status] end end @@ -307,27 +289,22 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - new_block_expiry_date: Time?, - starting_balance: Float, - entry_type: :expiration_change - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::expiration_change_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + new_block_expiry_date: Time?, + starting_balance: Float, + ?entry_type: :expiration_change + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::expiration_change_ledger_entry @@ -341,16 +318,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::credit_block end @@ -362,23 +334,23 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::ExpirationChangeLedgerEntry::entry_status] end end @@ -426,26 +398,21 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - entry_type: :credit_block_expiry - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::credit_block_expiry_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?entry_type: :credit_block_expiry + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::credit_block_expiry_ledger_entry @@ -459,16 +426,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::credit_block end @@ -480,23 +442,23 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::CreditBlockExpiryLedgerEntry::entry_status] end end @@ -550,28 +512,23 @@ module Orb attr_accessor void_reason: String? - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - void_amount: Float, - void_reason: String?, - entry_type: :void - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::void_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + void_amount: Float, + void_reason: String?, + ?entry_type: :void + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::void_ledger_entry @@ -585,16 +542,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::credit_block end @@ -606,23 +558,23 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidLedgerEntry::entry_status] end end @@ -679,29 +631,24 @@ module Orb attr_accessor void_reason: String? - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - new_block_expiry_date: Time, - starting_balance: Float, - void_amount: Float, - void_reason: String?, - entry_type: :void_initiated - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::void_initiated_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + new_block_expiry_date: Time, + starting_balance: Float, + void_amount: Float, + void_reason: String?, + ?entry_type: :void_initiated + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::void_initiated_ledger_entry @@ -715,16 +662,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::credit_block end @@ -736,23 +678,23 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::VoidInitiatedLedgerEntry::entry_status] end end @@ -800,26 +742,21 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - entry_type: :amendment - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::amendment_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?entry_type: :amendment + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::amendment_ledger_entry @@ -833,16 +770,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::credit_block end @@ -854,27 +786,27 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryResponse::AmendmentLedgerEntry::entry_status] end end - def self.variants: -> [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] + def self?.variants: -> [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 end end diff --git a/sig/orb/models/customers/credits/ledger_list_by_external_id_params.rbs b/sig/orb/models/customers/credits/ledger_list_by_external_id_params.rbs index 56516fed..f42ecce0 100644 --- a/sig/orb/models/customers/credits/ledger_list_by_external_id_params.rbs +++ b/sig/orb/models/customers/credits/ledger_list_by_external_id_params.rbs @@ -43,34 +43,31 @@ module Orb attr_accessor minimum_amount: String? - def initialize: - ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - currency: String?, - cursor: String?, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_status?, - entry_type: Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_type?, - limit: Integer, - minimum_amount: String?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::Credits::ledger_list_by_external_id_params - | Orb::BaseModel data - ) -> void + def initialize: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?currency: String?, + ?cursor: String?, + ?entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_status?, + ?entry_type: Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_type?, + ?limit: Integer, + ?minimum_amount: String?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::Credits::ledger_list_by_external_id_params type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_status] end type entry_type = @@ -82,7 +79,9 @@ module Orb | :void_initiated | :amendment - class EntryType < Orb::Enum + module EntryType + extend Orb::Enum + INCREMENT: :increment DECREMENT: :decrement EXPIRATION_CHANGE: :expiration_change @@ -91,7 +90,7 @@ module Orb VOID_INITIATED: :void_initiated AMENDMENT: :amendment - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_type] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_type] end end end diff --git a/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs b/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs index 9e1ae3d8..7e82478d 100644 --- a/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +++ b/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs @@ -11,7 +11,9 @@ module Orb | Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry | Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry - class LedgerListByExternalIDResponse < Orb::Union + module LedgerListByExternalIDResponse + extend Orb::Union + type increment_ledger_entry = { id: String, @@ -56,26 +58,21 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - entry_type: :increment - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::increment_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?entry_type: :increment + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::increment_ledger_entry @@ -89,16 +86,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::credit_block end @@ -110,23 +102,23 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::IncrementLedgerEntry::entry_status] end end @@ -183,29 +175,24 @@ module Orb attr_accessor price_id: String? - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - event_id: String?, - invoice_id: String?, - price_id: String?, - entry_type: :decrement - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::decrement_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?event_id: String?, + ?invoice_id: String?, + ?price_id: String?, + ?entry_type: :decrement + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::decrement_ledger_entry @@ -219,16 +206,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::credit_block end @@ -240,23 +222,23 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::DecrementLedgerEntry::entry_status] end end @@ -307,27 +289,22 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - new_block_expiry_date: Time?, - starting_balance: Float, - entry_type: :expiration_change - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::expiration_change_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + new_block_expiry_date: Time?, + starting_balance: Float, + ?entry_type: :expiration_change + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::expiration_change_ledger_entry @@ -341,16 +318,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::credit_block end @@ -362,23 +334,23 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::ExpirationChangeLedgerEntry::entry_status] end end @@ -426,26 +398,21 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - entry_type: :credit_block_expiry - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::credit_block_expiry_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?entry_type: :credit_block_expiry + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::credit_block_expiry_ledger_entry @@ -459,16 +426,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::credit_block end @@ -480,23 +442,23 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::CreditBlockExpiryLedgerEntry::entry_status] end end @@ -550,28 +512,23 @@ module Orb attr_accessor void_reason: String? - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - void_amount: Float, - void_reason: String?, - entry_type: :void - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::void_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + void_amount: Float, + void_reason: String?, + ?entry_type: :void + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::void_ledger_entry @@ -585,16 +542,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::credit_block end @@ -606,23 +558,23 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidLedgerEntry::entry_status] end end @@ -679,29 +631,24 @@ module Orb attr_accessor void_reason: String? - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - new_block_expiry_date: Time, - starting_balance: Float, - void_amount: Float, - void_reason: String?, - entry_type: :void_initiated - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::void_initiated_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + new_block_expiry_date: Time, + starting_balance: Float, + void_amount: Float, + void_reason: String?, + ?entry_type: :void_initiated + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::void_initiated_ledger_entry @@ -715,16 +662,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::credit_block end @@ -736,23 +678,23 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::VoidInitiatedLedgerEntry::entry_status] end end @@ -800,26 +742,21 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - entry_type: :amendment - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::amendment_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?entry_type: :amendment + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::amendment_ledger_entry @@ -833,16 +770,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::credit_block end @@ -854,27 +786,27 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::AmendmentLedgerEntry::entry_status] end end - def self.variants: -> [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] + def self?.variants: -> [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 end end diff --git a/sig/orb/models/customers/credits/ledger_list_params.rbs b/sig/orb/models/customers/credits/ledger_list_params.rbs index a8c1ea50..59551873 100644 --- a/sig/orb/models/customers/credits/ledger_list_params.rbs +++ b/sig/orb/models/customers/credits/ledger_list_params.rbs @@ -43,34 +43,31 @@ module Orb attr_accessor minimum_amount: String? - def initialize: - ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - currency: String?, - cursor: String?, - entry_status: Orb::Models::Customers::Credits::LedgerListParams::entry_status?, - entry_type: Orb::Models::Customers::Credits::LedgerListParams::entry_type?, - limit: Integer, - minimum_amount: String?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::Credits::ledger_list_params - | Orb::BaseModel data - ) -> void + def initialize: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?currency: String?, + ?cursor: String?, + ?entry_status: Orb::Models::Customers::Credits::LedgerListParams::entry_status?, + ?entry_type: Orb::Models::Customers::Credits::LedgerListParams::entry_type?, + ?limit: Integer, + ?minimum_amount: String?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::Credits::ledger_list_params type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListParams::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListParams::entry_status] end type entry_type = @@ -82,7 +79,9 @@ module Orb | :void_initiated | :amendment - class EntryType < Orb::Enum + module EntryType + extend Orb::Enum + INCREMENT: :increment DECREMENT: :decrement EXPIRATION_CHANGE: :expiration_change @@ -91,7 +90,7 @@ module Orb VOID_INITIATED: :void_initiated AMENDMENT: :amendment - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListParams::entry_type] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListParams::entry_type] end end end diff --git a/sig/orb/models/customers/credits/ledger_list_response.rbs b/sig/orb/models/customers/credits/ledger_list_response.rbs index 322bf5f2..b63d1f0d 100644 --- a/sig/orb/models/customers/credits/ledger_list_response.rbs +++ b/sig/orb/models/customers/credits/ledger_list_response.rbs @@ -11,7 +11,9 @@ module Orb | Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry | Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry - class LedgerListResponse < Orb::Union + module LedgerListResponse + extend Orb::Union + type increment_ledger_entry = { id: String, @@ -56,26 +58,21 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - entry_type: :increment - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::increment_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?entry_type: :increment + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::increment_ledger_entry @@ -89,16 +86,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::credit_block end @@ -110,23 +102,23 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::entry_status] end end @@ -183,29 +175,24 @@ module Orb attr_accessor price_id: String? - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - event_id: String?, - invoice_id: String?, - price_id: String?, - entry_type: :decrement - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::decrement_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?event_id: String?, + ?invoice_id: String?, + ?price_id: String?, + ?entry_type: :decrement + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::decrement_ledger_entry @@ -219,16 +206,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::credit_block end @@ -240,23 +222,23 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::entry_status] end end @@ -307,27 +289,22 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - new_block_expiry_date: Time?, - starting_balance: Float, - entry_type: :expiration_change - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::expiration_change_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + new_block_expiry_date: Time?, + starting_balance: Float, + ?entry_type: :expiration_change + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::expiration_change_ledger_entry @@ -341,16 +318,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::credit_block end @@ -362,23 +334,23 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::entry_status] end end @@ -426,26 +398,21 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - entry_type: :credit_block_expiry - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::credit_block_expiry_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?entry_type: :credit_block_expiry + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::credit_block_expiry_ledger_entry @@ -459,16 +426,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::credit_block end @@ -480,23 +442,23 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry::entry_status] end end @@ -550,28 +512,23 @@ module Orb attr_accessor void_reason: String? - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - void_amount: Float, - void_reason: String?, - entry_type: :void - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::void_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + void_amount: Float, + void_reason: String?, + ?entry_type: :void + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::void_ledger_entry @@ -585,16 +542,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::credit_block end @@ -606,23 +558,23 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::entry_status] end end @@ -679,29 +631,24 @@ module Orb attr_accessor void_reason: String? - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - new_block_expiry_date: Time, - starting_balance: Float, - void_amount: Float, - void_reason: String?, - entry_type: :void_initiated - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::void_initiated_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + new_block_expiry_date: Time, + starting_balance: Float, + void_amount: Float, + void_reason: String?, + ?entry_type: :void_initiated + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::void_initiated_ledger_entry @@ -715,16 +662,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::credit_block end @@ -736,23 +678,23 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::entry_status] end end @@ -800,26 +742,21 @@ module Orb attr_accessor starting_balance: Float - def initialize: - ( - 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: String?, - ending_balance: Float, - entry_status: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::entry_status, - ledger_sequence_number: Integer, - metadata: ::Hash[Symbol, String], - starting_balance: Float, - entry_type: :amendment - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::amendment_ledger_entry - | Orb::BaseModel data - ) -> void + def initialize: ( + 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: String?, + ending_balance: Float, + entry_status: Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::entry_status, + ledger_sequence_number: Integer, + metadata: ::Hash[Symbol, String], + starting_balance: Float, + ?entry_type: :amendment + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::amendment_ledger_entry @@ -833,16 +770,11 @@ module Orb attr_accessor per_unit_cost_basis: String? - def initialize: - ( - id: String, - expiry_date: Time?, - per_unit_cost_basis: String? - ) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::credit_block - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + expiry_date: Time?, + per_unit_cost_basis: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::credit_block end @@ -854,27 +786,27 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::customer - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::customer end type entry_status = :committed | :pending - class EntryStatus < Orb::Enum + module EntryStatus + extend Orb::Enum + COMMITTED: :committed PENDING: :pending - def self.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::entry_status] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::entry_status] end end - def self.variants: -> [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] + def self?.variants: -> [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 end end diff --git a/sig/orb/models/customers/credits/top_up_create_by_external_id_params.rbs b/sig/orb/models/customers/credits/top_up_create_by_external_id_params.rbs index ee49dd67..746ed054 100644 --- a/sig/orb/models/customers/credits/top_up_create_by_external_id_params.rbs +++ b/sig/orb/models/customers/credits/top_up_create_by_external_id_params.rbs @@ -35,22 +35,17 @@ module Orb attr_accessor expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::expires_after_unit? - def initialize: - ( - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - active_from: Time?, - expires_after: Integer?, - expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::expires_after_unit?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::Credits::top_up_create_by_external_id_params - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + ?active_from: Time?, + ?expires_after: Integer?, + ?expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::expires_after_unit?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::Credits::top_up_create_by_external_id_params @@ -73,28 +68,25 @@ module Orb def require_successful_payment=: (bool) -> bool - def initialize: - ( - auto_collection: bool, - net_terms: Integer, - memo: String?, - require_successful_payment: bool - ) -> void - | ( - ?Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::invoice_settings - | Orb::BaseModel data - ) -> void + def initialize: ( + auto_collection: bool, + net_terms: Integer, + ?memo: String?, + ?require_successful_payment: bool + ) -> void def to_hash: -> Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::invoice_settings end type expires_after_unit = :day | :month - class ExpiresAfterUnit < Orb::Enum + module ExpiresAfterUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::expires_after_unit] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::expires_after_unit] end end end diff --git a/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs b/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs index e5583d6b..95130380 100644 --- a/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs +++ b/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs @@ -31,21 +31,16 @@ module Orb attr_accessor expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::expires_after_unit? - def initialize: - ( - id: String, - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - expires_after: Integer?, - expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::expires_after_unit? - ) -> void - | ( - ?Orb::Models::Customers::Credits::top_up_create_by_external_id_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + ?expires_after: Integer?, + ?expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::expires_after_unit? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::top_up_create_by_external_id_response @@ -68,28 +63,25 @@ module Orb def require_successful_payment=: (bool) -> bool - def initialize: - ( - auto_collection: bool, - net_terms: Integer, - memo: String?, - require_successful_payment: bool - ) -> void - | ( - ?Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::invoice_settings - | Orb::BaseModel data - ) -> void + def initialize: ( + auto_collection: bool, + net_terms: Integer, + ?memo: String?, + ?require_successful_payment: bool + ) -> void def to_hash: -> Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::invoice_settings end type expires_after_unit = :day | :month - class ExpiresAfterUnit < Orb::Enum + module ExpiresAfterUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::expires_after_unit] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::expires_after_unit] end end end diff --git a/sig/orb/models/customers/credits/top_up_create_params.rbs b/sig/orb/models/customers/credits/top_up_create_params.rbs index 57fc8b45..e52d6c4c 100644 --- a/sig/orb/models/customers/credits/top_up_create_params.rbs +++ b/sig/orb/models/customers/credits/top_up_create_params.rbs @@ -35,22 +35,17 @@ module Orb attr_accessor expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateParams::expires_after_unit? - def initialize: - ( - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - active_from: Time?, - expires_after: Integer?, - expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateParams::expires_after_unit?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::Credits::top_up_create_params - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + ?active_from: Time?, + ?expires_after: Integer?, + ?expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateParams::expires_after_unit?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::Credits::top_up_create_params @@ -73,28 +68,25 @@ module Orb def require_successful_payment=: (bool) -> bool - def initialize: - ( - auto_collection: bool, - net_terms: Integer, - memo: String?, - require_successful_payment: bool - ) -> void - | ( - ?Orb::Models::Customers::Credits::TopUpCreateParams::invoice_settings - | Orb::BaseModel data - ) -> void + def initialize: ( + auto_collection: bool, + net_terms: Integer, + ?memo: String?, + ?require_successful_payment: bool + ) -> void def to_hash: -> Orb::Models::Customers::Credits::TopUpCreateParams::invoice_settings end type expires_after_unit = :day | :month - class ExpiresAfterUnit < Orb::Enum + module ExpiresAfterUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Customers::Credits::TopUpCreateParams::expires_after_unit] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::TopUpCreateParams::expires_after_unit] end end end diff --git a/sig/orb/models/customers/credits/top_up_create_response.rbs b/sig/orb/models/customers/credits/top_up_create_response.rbs index d41e64d8..571bf636 100644 --- a/sig/orb/models/customers/credits/top_up_create_response.rbs +++ b/sig/orb/models/customers/credits/top_up_create_response.rbs @@ -31,21 +31,16 @@ module Orb attr_accessor expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateResponse::expires_after_unit? - def initialize: - ( - id: String, - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - expires_after: Integer?, - expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateResponse::expires_after_unit? - ) -> void - | ( - ?Orb::Models::Customers::Credits::top_up_create_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + ?expires_after: Integer?, + ?expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateResponse::expires_after_unit? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::top_up_create_response @@ -68,28 +63,25 @@ module Orb def require_successful_payment=: (bool) -> bool - def initialize: - ( - auto_collection: bool, - net_terms: Integer, - memo: String?, - require_successful_payment: bool - ) -> void - | ( - ?Orb::Models::Customers::Credits::TopUpCreateResponse::invoice_settings - | Orb::BaseModel data - ) -> void + def initialize: ( + auto_collection: bool, + net_terms: Integer, + ?memo: String?, + ?require_successful_payment: bool + ) -> void def to_hash: -> Orb::Models::Customers::Credits::TopUpCreateResponse::invoice_settings end type expires_after_unit = :day | :month - class ExpiresAfterUnit < Orb::Enum + module ExpiresAfterUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Customers::Credits::TopUpCreateResponse::expires_after_unit] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::TopUpCreateResponse::expires_after_unit] end end end diff --git a/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs b/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs index 3754c1b7..58da5918 100644 --- a/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs +++ b/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs @@ -11,15 +11,10 @@ module Orb attr_accessor external_customer_id: String - def initialize: - ( - external_customer_id: String, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::Credits::top_up_delete_by_external_id_params - | Orb::BaseModel data - ) -> void + def initialize: ( + external_customer_id: String, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::Credits::top_up_delete_by_external_id_params end diff --git a/sig/orb/models/customers/credits/top_up_delete_params.rbs b/sig/orb/models/customers/credits/top_up_delete_params.rbs index 3ffdbef2..76c30b7d 100644 --- a/sig/orb/models/customers/credits/top_up_delete_params.rbs +++ b/sig/orb/models/customers/credits/top_up_delete_params.rbs @@ -11,12 +11,10 @@ module Orb attr_accessor customer_id: String - def initialize: - (customer_id: String, request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::Customers::Credits::top_up_delete_params - | Orb::BaseModel data - ) -> void + def initialize: ( + customer_id: String, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::Credits::top_up_delete_params end diff --git a/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs b/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs index 95589ad0..2d1ffdda 100644 --- a/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs +++ b/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs @@ -15,16 +15,11 @@ module Orb def limit=: (Integer) -> Integer - def initialize: - ( - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::Credits::top_up_list_by_external_id_params - | Orb::BaseModel data - ) -> void + def initialize: ( + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::Credits::top_up_list_by_external_id_params end diff --git a/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs b/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs index 6b16b132..fbbc843c 100644 --- a/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs +++ b/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs @@ -31,21 +31,16 @@ module Orb attr_accessor expires_after_unit: Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::expires_after_unit? - def initialize: - ( - id: String, - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - expires_after: Integer?, - expires_after_unit: Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::expires_after_unit? - ) -> void - | ( - ?Orb::Models::Customers::Credits::top_up_list_by_external_id_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + ?expires_after: Integer?, + ?expires_after_unit: Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::expires_after_unit? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::top_up_list_by_external_id_response @@ -68,28 +63,25 @@ module Orb def require_successful_payment=: (bool) -> bool - def initialize: - ( - auto_collection: bool, - net_terms: Integer, - memo: String?, - require_successful_payment: bool - ) -> void - | ( - ?Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::invoice_settings - | Orb::BaseModel data - ) -> void + def initialize: ( + auto_collection: bool, + net_terms: Integer, + ?memo: String?, + ?require_successful_payment: bool + ) -> void def to_hash: -> Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::invoice_settings end type expires_after_unit = :day | :month - class ExpiresAfterUnit < Orb::Enum + module ExpiresAfterUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::expires_after_unit] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::expires_after_unit] end end end diff --git a/sig/orb/models/customers/credits/top_up_list_params.rbs b/sig/orb/models/customers/credits/top_up_list_params.rbs index d6e3c41c..ade485c0 100644 --- a/sig/orb/models/customers/credits/top_up_list_params.rbs +++ b/sig/orb/models/customers/credits/top_up_list_params.rbs @@ -15,16 +15,11 @@ module Orb def limit=: (Integer) -> Integer - def initialize: - ( - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Customers::Credits::top_up_list_params - | Orb::BaseModel data - ) -> void + def initialize: ( + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Customers::Credits::top_up_list_params end diff --git a/sig/orb/models/customers/credits/top_up_list_response.rbs b/sig/orb/models/customers/credits/top_up_list_response.rbs index e6fc16a2..2e3e014f 100644 --- a/sig/orb/models/customers/credits/top_up_list_response.rbs +++ b/sig/orb/models/customers/credits/top_up_list_response.rbs @@ -31,21 +31,16 @@ module Orb attr_accessor expires_after_unit: Orb::Models::Customers::Credits::TopUpListResponse::expires_after_unit? - def initialize: - ( - id: String, - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - expires_after: Integer?, - expires_after_unit: Orb::Models::Customers::Credits::TopUpListResponse::expires_after_unit? - ) -> void - | ( - ?Orb::Models::Customers::Credits::top_up_list_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + ?expires_after: Integer?, + ?expires_after_unit: Orb::Models::Customers::Credits::TopUpListResponse::expires_after_unit? + ) -> void def to_hash: -> Orb::Models::Customers::Credits::top_up_list_response @@ -68,28 +63,25 @@ module Orb def require_successful_payment=: (bool) -> bool - def initialize: - ( - auto_collection: bool, - net_terms: Integer, - memo: String?, - require_successful_payment: bool - ) -> void - | ( - ?Orb::Models::Customers::Credits::TopUpListResponse::invoice_settings - | Orb::BaseModel data - ) -> void + def initialize: ( + auto_collection: bool, + net_terms: Integer, + ?memo: String?, + ?require_successful_payment: bool + ) -> void def to_hash: -> Orb::Models::Customers::Credits::TopUpListResponse::invoice_settings end type expires_after_unit = :day | :month - class ExpiresAfterUnit < Orb::Enum + module ExpiresAfterUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Customers::Credits::TopUpListResponse::expires_after_unit] + def self?.values: -> ::Array[Orb::Models::Customers::Credits::TopUpListResponse::expires_after_unit] end end end diff --git a/sig/orb/models/dimensional_price_group.rbs b/sig/orb/models/dimensional_price_group.rbs index 23ef1e3a..e0c04700 100644 --- a/sig/orb/models/dimensional_price_group.rbs +++ b/sig/orb/models/dimensional_price_group.rbs @@ -23,16 +23,14 @@ module Orb attr_accessor name: String - def initialize: - ( - id: String, - billable_metric_id: String, - dimensions: ::Array[String], - external_dimensional_price_group_id: String?, - metadata: ::Hash[Symbol, String], - name: String - ) -> void - | (?Orb::Models::dimensional_price_group | Orb::BaseModel data) -> void + def initialize: ( + id: String, + billable_metric_id: String, + dimensions: ::Array[String], + external_dimensional_price_group_id: String?, + metadata: ::Hash[Symbol, String], + name: String + ) -> void def to_hash: -> Orb::Models::dimensional_price_group end diff --git a/sig/orb/models/dimensional_price_group_create_params.rbs b/sig/orb/models/dimensional_price_group_create_params.rbs index 494c7f72..0fb069d7 100644 --- a/sig/orb/models/dimensional_price_group_create_params.rbs +++ b/sig/orb/models/dimensional_price_group_create_params.rbs @@ -24,19 +24,14 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - billable_metric_id: String, - dimensions: ::Array[String], - name: String, - external_dimensional_price_group_id: String?, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::dimensional_price_group_create_params - | Orb::BaseModel data - ) -> void + def initialize: ( + billable_metric_id: String, + dimensions: ::Array[String], + name: String, + ?external_dimensional_price_group_id: String?, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::dimensional_price_group_create_params end diff --git a/sig/orb/models/dimensional_price_group_list_params.rbs b/sig/orb/models/dimensional_price_group_list_params.rbs index bbe8e39d..36d3c05e 100644 --- a/sig/orb/models/dimensional_price_group_list_params.rbs +++ b/sig/orb/models/dimensional_price_group_list_params.rbs @@ -13,16 +13,11 @@ module Orb def limit=: (Integer) -> Integer - def initialize: - ( - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::dimensional_price_group_list_params - | Orb::BaseModel data - ) -> void + def initialize: ( + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::dimensional_price_group_list_params end diff --git a/sig/orb/models/dimensional_price_group_retrieve_params.rbs b/sig/orb/models/dimensional_price_group_retrieve_params.rbs index a0e943b5..8d4d903d 100644 --- a/sig/orb/models/dimensional_price_group_retrieve_params.rbs +++ b/sig/orb/models/dimensional_price_group_retrieve_params.rbs @@ -7,12 +7,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::dimensional_price_group_retrieve_params - | Orb::BaseModel data - ) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::dimensional_price_group_retrieve_params end diff --git a/sig/orb/models/dimensional_price_groups.rbs b/sig/orb/models/dimensional_price_groups.rbs index 68254693..f80e2d8a 100644 --- a/sig/orb/models/dimensional_price_groups.rbs +++ b/sig/orb/models/dimensional_price_groups.rbs @@ -11,14 +11,10 @@ module Orb attr_accessor pagination_metadata: Orb::Models::PaginationMetadata - def initialize: - ( - data: ::Array[Orb::Models::DimensionalPriceGroup], - pagination_metadata: Orb::Models::PaginationMetadata - ) -> void - | ( - ?Orb::Models::dimensional_price_groups_api | Orb::BaseModel data - ) -> void + def initialize: ( + data: ::Array[Orb::Models::DimensionalPriceGroup], + pagination_metadata: Orb::Models::PaginationMetadata + ) -> void def to_hash: -> Orb::Models::dimensional_price_groups_api end diff --git a/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs b/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs index f7d32b07..b45bb368 100644 --- a/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs +++ b/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs @@ -8,12 +8,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::DimensionalPriceGroups::external_dimensional_price_group_id_retrieve_params - | Orb::BaseModel data - ) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::DimensionalPriceGroups::external_dimensional_price_group_id_retrieve_params end diff --git a/sig/orb/models/discount.rbs b/sig/orb/models/discount.rbs index 0a4c8eb5..36b76a6e 100644 --- a/sig/orb/models/discount.rbs +++ b/sig/orb/models/discount.rbs @@ -6,8 +6,10 @@ module Orb | Orb::Models::UsageDiscount | Orb::Models::AmountDiscount - class Discount < Orb::Union - def self.variants: -> [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount] + module Discount + extend Orb::Union + + def self?.variants: -> [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount] end end end diff --git a/sig/orb/models/evaluate_price_group.rbs b/sig/orb/models/evaluate_price_group.rbs index 65015d88..8e682ee4 100644 --- a/sig/orb/models/evaluate_price_group.rbs +++ b/sig/orb/models/evaluate_price_group.rbs @@ -14,20 +14,20 @@ module Orb attr_accessor quantity: Float - def initialize: - ( - amount: String, - grouping_values: ::Array[Orb::Models::EvaluatePriceGroup::grouping_value], - quantity: Float - ) -> void - | (?Orb::Models::evaluate_price_group | Orb::BaseModel data) -> void + def initialize: ( + amount: String, + grouping_values: ::Array[Orb::Models::EvaluatePriceGroup::grouping_value], + quantity: Float + ) -> void def to_hash: -> Orb::Models::evaluate_price_group type grouping_value = String | Float | bool - class GroupingValue < Orb::Union - def self.variants: -> [String, Float, bool] + module GroupingValue + extend Orb::Union + + def self?.variants: -> [String, Float, bool] end end end diff --git a/sig/orb/models/event_deprecate_params.rbs b/sig/orb/models/event_deprecate_params.rbs index 51b19b96..9420c333 100644 --- a/sig/orb/models/event_deprecate_params.rbs +++ b/sig/orb/models/event_deprecate_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::event_deprecate_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::event_deprecate_params end diff --git a/sig/orb/models/event_deprecate_response.rbs b/sig/orb/models/event_deprecate_response.rbs index a416f93d..a663b957 100644 --- a/sig/orb/models/event_deprecate_response.rbs +++ b/sig/orb/models/event_deprecate_response.rbs @@ -5,9 +5,7 @@ module Orb class EventDeprecateResponse < Orb::BaseModel attr_accessor deprecated: String - def initialize: - (deprecated: String) -> void - | (?Orb::Models::event_deprecate_response | Orb::BaseModel data) -> void + def initialize: (deprecated: String) -> void def to_hash: -> Orb::Models::event_deprecate_response end diff --git a/sig/orb/models/event_ingest_params.rbs b/sig/orb/models/event_ingest_params.rbs index 796bc83d..70233275 100644 --- a/sig/orb/models/event_ingest_params.rbs +++ b/sig/orb/models/event_ingest_params.rbs @@ -20,14 +20,12 @@ module Orb def debug=: (bool) -> bool - def initialize: - ( - events: ::Array[Orb::Models::EventIngestParams::Event], - backfill_id: String?, - debug: bool, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::event_ingest_params | Orb::BaseModel data) -> void + def initialize: ( + events: ::Array[Orb::Models::EventIngestParams::Event], + ?backfill_id: String?, + ?debug: bool, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::event_ingest_params @@ -54,18 +52,14 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - ( - event_name: String, - idempotency_key: String, - properties: top, - timestamp: Time, - customer_id: String?, - external_customer_id: String? - ) -> void - | ( - ?Orb::Models::EventIngestParams::event | Orb::BaseModel data - ) -> void + def initialize: ( + event_name: String, + idempotency_key: String, + properties: top, + timestamp: Time, + ?customer_id: String?, + ?external_customer_id: String? + ) -> void def to_hash: -> Orb::Models::EventIngestParams::event end diff --git a/sig/orb/models/event_ingest_response.rbs b/sig/orb/models/event_ingest_response.rbs index ac01c9e5..0af1138c 100644 --- a/sig/orb/models/event_ingest_response.rbs +++ b/sig/orb/models/event_ingest_response.rbs @@ -11,12 +11,10 @@ module Orb attr_accessor debug: Orb::Models::EventIngestResponse::Debug? - def initialize: - ( - validation_failed: ::Array[Orb::Models::EventIngestResponse::ValidationFailed], - debug: Orb::Models::EventIngestResponse::Debug? - ) -> void - | (?Orb::Models::event_ingest_response | Orb::BaseModel data) -> void + def initialize: ( + validation_failed: ::Array[Orb::Models::EventIngestResponse::ValidationFailed], + ?debug: Orb::Models::EventIngestResponse::Debug? + ) -> void def to_hash: -> Orb::Models::event_ingest_response @@ -28,12 +26,10 @@ module Orb attr_accessor validation_errors: ::Array[String] - def initialize: - (idempotency_key: String, validation_errors: ::Array[String]) -> void - | ( - ?Orb::Models::EventIngestResponse::validation_failed - | Orb::BaseModel data - ) -> void + def initialize: ( + idempotency_key: String, + validation_errors: ::Array[String] + ) -> void def to_hash: -> Orb::Models::EventIngestResponse::validation_failed end @@ -45,11 +41,10 @@ module Orb attr_accessor ingested: ::Array[String] - def initialize: - (duplicate: ::Array[String], ingested: ::Array[String]) -> void - | ( - ?Orb::Models::EventIngestResponse::debug | Orb::BaseModel data - ) -> void + def initialize: ( + duplicate: ::Array[String], + ingested: ::Array[String] + ) -> void def to_hash: -> Orb::Models::EventIngestResponse::debug end diff --git a/sig/orb/models/event_search_params.rbs b/sig/orb/models/event_search_params.rbs index 26052744..5cd98ac7 100644 --- a/sig/orb/models/event_search_params.rbs +++ b/sig/orb/models/event_search_params.rbs @@ -18,14 +18,12 @@ module Orb attr_accessor timeframe_start: Time? - def initialize: - ( - event_ids: ::Array[String], - timeframe_end: Time?, - timeframe_start: Time?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::event_search_params | Orb::BaseModel data) -> void + def initialize: ( + event_ids: ::Array[String], + ?timeframe_end: Time?, + ?timeframe_start: Time?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::event_search_params end diff --git a/sig/orb/models/event_search_response.rbs b/sig/orb/models/event_search_response.rbs index 2242d17f..ab562e41 100644 --- a/sig/orb/models/event_search_response.rbs +++ b/sig/orb/models/event_search_response.rbs @@ -6,9 +6,9 @@ module Orb class EventSearchResponse < Orb::BaseModel attr_accessor data: ::Array[Orb::Models::EventSearchResponse::Data] - def initialize: - (data: ::Array[Orb::Models::EventSearchResponse::Data]) -> void - | (?Orb::Models::event_search_response | Orb::BaseModel data) -> void + def initialize: ( + data: ::Array[Orb::Models::EventSearchResponse::Data] + ) -> void def to_hash: -> Orb::Models::event_search_response @@ -38,19 +38,15 @@ module Orb attr_accessor timestamp: Time - def initialize: - ( - id: String, - customer_id: String?, - deprecated: bool, - event_name: String, - external_customer_id: String?, - properties: top, - timestamp: Time - ) -> void - | ( - ?Orb::Models::EventSearchResponse::data | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + customer_id: String?, + deprecated: bool, + event_name: String, + external_customer_id: String?, + properties: top, + timestamp: Time + ) -> void def to_hash: -> Orb::Models::EventSearchResponse::data end diff --git a/sig/orb/models/event_update_params.rbs b/sig/orb/models/event_update_params.rbs index f26a87fa..a68a97dc 100644 --- a/sig/orb/models/event_update_params.rbs +++ b/sig/orb/models/event_update_params.rbs @@ -24,16 +24,14 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - ( - event_name: String, - properties: top, - timestamp: Time, - customer_id: String?, - external_customer_id: String?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::event_update_params | Orb::BaseModel data) -> void + def initialize: ( + event_name: String, + properties: top, + timestamp: Time, + ?customer_id: String?, + ?external_customer_id: String?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::event_update_params end diff --git a/sig/orb/models/event_update_response.rbs b/sig/orb/models/event_update_response.rbs index 55955d7d..af02a57b 100644 --- a/sig/orb/models/event_update_response.rbs +++ b/sig/orb/models/event_update_response.rbs @@ -5,9 +5,7 @@ module Orb class EventUpdateResponse < Orb::BaseModel attr_accessor amended: String - def initialize: - (amended: String) -> void - | (?Orb::Models::event_update_response | Orb::BaseModel data) -> void + def initialize: (amended: String) -> void def to_hash: -> Orb::Models::event_update_response end diff --git a/sig/orb/models/events/backfill_close_params.rbs b/sig/orb/models/events/backfill_close_params.rbs index 577540e4..40305264 100644 --- a/sig/orb/models/events/backfill_close_params.rbs +++ b/sig/orb/models/events/backfill_close_params.rbs @@ -7,11 +7,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::Events::backfill_close_params | Orb::BaseModel data - ) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::Events::backfill_close_params end diff --git a/sig/orb/models/events/backfill_close_response.rbs b/sig/orb/models/events/backfill_close_response.rbs index a964fe00..3444b25b 100644 --- a/sig/orb/models/events/backfill_close_response.rbs +++ b/sig/orb/models/events/backfill_close_response.rbs @@ -39,35 +39,33 @@ module Orb attr_accessor deprecation_filter: String? - def initialize: - ( - id: String, - close_time: Time?, - created_at: Time, - customer_id: String?, - events_ingested: Integer, - replace_existing_events: bool, - reverted_at: Time?, - status: Orb::Models::Events::BackfillCloseResponse::status, - timeframe_end: Time, - timeframe_start: Time, - deprecation_filter: String? - ) -> void - | ( - ?Orb::Models::Events::backfill_close_response | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + close_time: Time?, + created_at: Time, + customer_id: String?, + events_ingested: Integer, + replace_existing_events: bool, + reverted_at: Time?, + status: Orb::Models::Events::BackfillCloseResponse::status, + timeframe_end: Time, + timeframe_start: Time, + ?deprecation_filter: String? + ) -> void def to_hash: -> Orb::Models::Events::backfill_close_response type status = :pending | :reflected | :pending_revert | :reverted - class Status < Orb::Enum + module Status + extend Orb::Enum + PENDING: :pending REFLECTED: :reflected PENDING_REVERT: :pending_revert REVERTED: :reverted - def self.values: -> ::Array[Orb::Models::Events::BackfillCloseResponse::status] + def self?.values: -> ::Array[Orb::Models::Events::BackfillCloseResponse::status] end end end diff --git a/sig/orb/models/events/backfill_create_params.rbs b/sig/orb/models/events/backfill_create_params.rbs index a94156be..799629df 100644 --- a/sig/orb/models/events/backfill_create_params.rbs +++ b/sig/orb/models/events/backfill_create_params.rbs @@ -33,20 +33,16 @@ module Orb def replace_existing_events=: (bool) -> bool - def initialize: - ( - timeframe_end: Time, - timeframe_start: Time, - close_time: Time?, - customer_id: String?, - deprecation_filter: String?, - external_customer_id: String?, - replace_existing_events: bool, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Events::backfill_create_params | Orb::BaseModel data - ) -> void + def initialize: ( + timeframe_end: Time, + timeframe_start: Time, + ?close_time: Time?, + ?customer_id: String?, + ?deprecation_filter: String?, + ?external_customer_id: String?, + ?replace_existing_events: bool, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Events::backfill_create_params end diff --git a/sig/orb/models/events/backfill_create_response.rbs b/sig/orb/models/events/backfill_create_response.rbs index 1660a064..a6ae6e76 100644 --- a/sig/orb/models/events/backfill_create_response.rbs +++ b/sig/orb/models/events/backfill_create_response.rbs @@ -39,35 +39,33 @@ module Orb attr_accessor deprecation_filter: String? - def initialize: - ( - id: String, - close_time: Time?, - created_at: Time, - customer_id: String?, - events_ingested: Integer, - replace_existing_events: bool, - reverted_at: Time?, - status: Orb::Models::Events::BackfillCreateResponse::status, - timeframe_end: Time, - timeframe_start: Time, - deprecation_filter: String? - ) -> void - | ( - ?Orb::Models::Events::backfill_create_response | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + close_time: Time?, + created_at: Time, + customer_id: String?, + events_ingested: Integer, + replace_existing_events: bool, + reverted_at: Time?, + status: Orb::Models::Events::BackfillCreateResponse::status, + timeframe_end: Time, + timeframe_start: Time, + ?deprecation_filter: String? + ) -> void def to_hash: -> Orb::Models::Events::backfill_create_response type status = :pending | :reflected | :pending_revert | :reverted - class Status < Orb::Enum + module Status + extend Orb::Enum + PENDING: :pending REFLECTED: :reflected PENDING_REVERT: :pending_revert REVERTED: :reverted - def self.values: -> ::Array[Orb::Models::Events::BackfillCreateResponse::status] + def self?.values: -> ::Array[Orb::Models::Events::BackfillCreateResponse::status] end end end diff --git a/sig/orb/models/events/backfill_fetch_params.rbs b/sig/orb/models/events/backfill_fetch_params.rbs index e3bfbd9e..95998077 100644 --- a/sig/orb/models/events/backfill_fetch_params.rbs +++ b/sig/orb/models/events/backfill_fetch_params.rbs @@ -7,11 +7,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::Events::backfill_fetch_params | Orb::BaseModel data - ) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::Events::backfill_fetch_params end diff --git a/sig/orb/models/events/backfill_fetch_response.rbs b/sig/orb/models/events/backfill_fetch_response.rbs index f1f81b5b..a4c811e6 100644 --- a/sig/orb/models/events/backfill_fetch_response.rbs +++ b/sig/orb/models/events/backfill_fetch_response.rbs @@ -39,35 +39,33 @@ module Orb attr_accessor deprecation_filter: String? - def initialize: - ( - id: String, - close_time: Time?, - created_at: Time, - customer_id: String?, - events_ingested: Integer, - replace_existing_events: bool, - reverted_at: Time?, - status: Orb::Models::Events::BackfillFetchResponse::status, - timeframe_end: Time, - timeframe_start: Time, - deprecation_filter: String? - ) -> void - | ( - ?Orb::Models::Events::backfill_fetch_response | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + close_time: Time?, + created_at: Time, + customer_id: String?, + events_ingested: Integer, + replace_existing_events: bool, + reverted_at: Time?, + status: Orb::Models::Events::BackfillFetchResponse::status, + timeframe_end: Time, + timeframe_start: Time, + ?deprecation_filter: String? + ) -> void def to_hash: -> Orb::Models::Events::backfill_fetch_response type status = :pending | :reflected | :pending_revert | :reverted - class Status < Orb::Enum + module Status + extend Orb::Enum + PENDING: :pending REFLECTED: :reflected PENDING_REVERT: :pending_revert REVERTED: :reverted - def self.values: -> ::Array[Orb::Models::Events::BackfillFetchResponse::status] + def self?.values: -> ::Array[Orb::Models::Events::BackfillFetchResponse::status] end end end diff --git a/sig/orb/models/events/backfill_list_params.rbs b/sig/orb/models/events/backfill_list_params.rbs index 54513f00..f1c9b9c4 100644 --- a/sig/orb/models/events/backfill_list_params.rbs +++ b/sig/orb/models/events/backfill_list_params.rbs @@ -14,15 +14,11 @@ module Orb def limit=: (Integer) -> Integer - def initialize: - ( - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Events::backfill_list_params | Orb::BaseModel data - ) -> void + def initialize: ( + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Events::backfill_list_params end diff --git a/sig/orb/models/events/backfill_list_response.rbs b/sig/orb/models/events/backfill_list_response.rbs index 751e66f8..9073cf9f 100644 --- a/sig/orb/models/events/backfill_list_response.rbs +++ b/sig/orb/models/events/backfill_list_response.rbs @@ -39,35 +39,33 @@ module Orb attr_accessor deprecation_filter: String? - def initialize: - ( - id: String, - close_time: Time?, - created_at: Time, - customer_id: String?, - events_ingested: Integer, - replace_existing_events: bool, - reverted_at: Time?, - status: Orb::Models::Events::BackfillListResponse::status, - timeframe_end: Time, - timeframe_start: Time, - deprecation_filter: String? - ) -> void - | ( - ?Orb::Models::Events::backfill_list_response | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + close_time: Time?, + created_at: Time, + customer_id: String?, + events_ingested: Integer, + replace_existing_events: bool, + reverted_at: Time?, + status: Orb::Models::Events::BackfillListResponse::status, + timeframe_end: Time, + timeframe_start: Time, + ?deprecation_filter: String? + ) -> void def to_hash: -> Orb::Models::Events::backfill_list_response type status = :pending | :reflected | :pending_revert | :reverted - class Status < Orb::Enum + module Status + extend Orb::Enum + PENDING: :pending REFLECTED: :reflected PENDING_REVERT: :pending_revert REVERTED: :reverted - def self.values: -> ::Array[Orb::Models::Events::BackfillListResponse::status] + def self?.values: -> ::Array[Orb::Models::Events::BackfillListResponse::status] end end end diff --git a/sig/orb/models/events/backfill_revert_params.rbs b/sig/orb/models/events/backfill_revert_params.rbs index 7c141533..9329af9d 100644 --- a/sig/orb/models/events/backfill_revert_params.rbs +++ b/sig/orb/models/events/backfill_revert_params.rbs @@ -7,11 +7,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::Events::backfill_revert_params | Orb::BaseModel data - ) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::Events::backfill_revert_params end diff --git a/sig/orb/models/events/backfill_revert_response.rbs b/sig/orb/models/events/backfill_revert_response.rbs index 85f5b7b3..12821f9f 100644 --- a/sig/orb/models/events/backfill_revert_response.rbs +++ b/sig/orb/models/events/backfill_revert_response.rbs @@ -39,35 +39,33 @@ module Orb attr_accessor deprecation_filter: String? - def initialize: - ( - id: String, - close_time: Time?, - created_at: Time, - customer_id: String?, - events_ingested: Integer, - replace_existing_events: bool, - reverted_at: Time?, - status: Orb::Models::Events::BackfillRevertResponse::status, - timeframe_end: Time, - timeframe_start: Time, - deprecation_filter: String? - ) -> void - | ( - ?Orb::Models::Events::backfill_revert_response | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + close_time: Time?, + created_at: Time, + customer_id: String?, + events_ingested: Integer, + replace_existing_events: bool, + reverted_at: Time?, + status: Orb::Models::Events::BackfillRevertResponse::status, + timeframe_end: Time, + timeframe_start: Time, + ?deprecation_filter: String? + ) -> void def to_hash: -> Orb::Models::Events::backfill_revert_response type status = :pending | :reflected | :pending_revert | :reverted - class Status < Orb::Enum + module Status + extend Orb::Enum + PENDING: :pending REFLECTED: :reflected PENDING_REVERT: :pending_revert REVERTED: :reverted - def self.values: -> ::Array[Orb::Models::Events::BackfillRevertResponse::status] + def self?.values: -> ::Array[Orb::Models::Events::BackfillRevertResponse::status] end end end diff --git a/sig/orb/models/events/event_volumes.rbs b/sig/orb/models/events/event_volumes.rbs index c7a6cfc9..34dea17c 100644 --- a/sig/orb/models/events/event_volumes.rbs +++ b/sig/orb/models/events/event_volumes.rbs @@ -1,6 +1,5 @@ module Orb module Models - class EventVolumes = Events::EventVolumes module Events @@ -10,9 +9,9 @@ module Orb class EventVolumes < Orb::BaseModel attr_accessor data: ::Array[Orb::Models::Events::EventVolumes::Data] - def initialize: - (data: ::Array[Orb::Models::Events::EventVolumes::Data]) -> void - | (?Orb::Models::Events::event_volumes | Orb::BaseModel data) -> void + def initialize: ( + data: ::Array[Orb::Models::Events::EventVolumes::Data] + ) -> void def to_hash: -> Orb::Models::Events::event_volumes @@ -26,11 +25,11 @@ module Orb attr_accessor timeframe_start: Time - def initialize: - (count: Integer, timeframe_end: Time, timeframe_start: Time) -> void - | ( - ?Orb::Models::Events::EventVolumes::data | Orb::BaseModel data - ) -> void + def initialize: ( + count: Integer, + timeframe_end: Time, + timeframe_start: Time + ) -> void def to_hash: -> Orb::Models::Events::EventVolumes::data end diff --git a/sig/orb/models/events/volume_list_params.rbs b/sig/orb/models/events/volume_list_params.rbs index 03e1b0ff..1b7a5f23 100644 --- a/sig/orb/models/events/volume_list_params.rbs +++ b/sig/orb/models/events/volume_list_params.rbs @@ -26,17 +26,13 @@ module Orb def timeframe_end=: (Time) -> Time - def initialize: - ( - timeframe_start: Time, - cursor: String?, - limit: Integer, - timeframe_end: Time, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Events::volume_list_params | Orb::BaseModel data - ) -> void + def initialize: ( + timeframe_start: Time, + ?cursor: String?, + ?limit: Integer, + ?timeframe_end: Time, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Events::volume_list_params end diff --git a/sig/orb/models/invoice.rbs b/sig/orb/models/invoice.rbs index 25edd9b8..758e0cf4 100644 --- a/sig/orb/models/invoice.rbs +++ b/sig/orb/models/invoice.rbs @@ -128,51 +128,49 @@ module Orb attr_accessor will_auto_issue: bool - def initialize: - ( - id: String, - amount_due: String, - auto_collection: Orb::Models::Invoice::AutoCollection, - billing_address: Orb::Models::Invoice::BillingAddress?, - created_at: Time, - credit_notes: ::Array[Orb::Models::Invoice::CreditNote], - currency: String, - customer: Orb::Models::Invoice::Customer, - customer_balance_transactions: ::Array[Orb::Models::Invoice::CustomerBalanceTransaction], - customer_tax_id: Orb::Models::Invoice::CustomerTaxID?, - discount: top, - discounts: ::Array[Orb::Models::invoice_level_discount], - due_date: Time?, - eligible_to_issue_at: Time?, - hosted_invoice_url: String?, - invoice_date: Time, - invoice_number: String, - invoice_pdf: String?, - invoice_source: Orb::Models::Invoice::invoice_source, - issue_failed_at: Time?, - issued_at: Time?, - line_items: ::Array[Orb::Models::Invoice::LineItem], - maximum: Orb::Models::Invoice::Maximum?, - maximum_amount: String?, - memo: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Invoice::Minimum?, - minimum_amount: String?, - paid_at: Time?, - payment_attempts: ::Array[Orb::Models::Invoice::PaymentAttempt], - payment_failed_at: Time?, - payment_started_at: Time?, - scheduled_issue_at: Time?, - shipping_address: Orb::Models::Invoice::ShippingAddress?, - status: Orb::Models::Invoice::status, - subscription: Orb::Models::Invoice::Subscription?, - subtotal: String, - sync_failed_at: Time?, - total: String, - voided_at: Time?, - will_auto_issue: bool - ) -> void - | (?Orb::Models::invoice | Orb::BaseModel data) -> void + def initialize: ( + id: String, + amount_due: String, + auto_collection: Orb::Models::Invoice::AutoCollection, + billing_address: Orb::Models::Invoice::BillingAddress?, + created_at: Time, + credit_notes: ::Array[Orb::Models::Invoice::CreditNote], + currency: String, + customer: Orb::Models::Invoice::Customer, + customer_balance_transactions: ::Array[Orb::Models::Invoice::CustomerBalanceTransaction], + customer_tax_id: Orb::Models::Invoice::CustomerTaxID?, + discount: top, + discounts: ::Array[Orb::Models::invoice_level_discount], + due_date: Time?, + eligible_to_issue_at: Time?, + hosted_invoice_url: String?, + invoice_date: Time, + invoice_number: String, + invoice_pdf: String?, + invoice_source: Orb::Models::Invoice::invoice_source, + issue_failed_at: Time?, + issued_at: Time?, + line_items: ::Array[Orb::Models::Invoice::LineItem], + maximum: Orb::Models::Invoice::Maximum?, + maximum_amount: String?, + memo: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Invoice::Minimum?, + minimum_amount: String?, + paid_at: Time?, + payment_attempts: ::Array[Orb::Models::Invoice::PaymentAttempt], + payment_failed_at: Time?, + payment_started_at: Time?, + scheduled_issue_at: Time?, + shipping_address: Orb::Models::Invoice::ShippingAddress?, + status: Orb::Models::Invoice::status, + subscription: Orb::Models::Invoice::Subscription?, + subtotal: String, + sync_failed_at: Time?, + total: String, + voided_at: Time?, + will_auto_issue: bool + ) -> void def to_hash: -> Orb::Models::invoice @@ -193,16 +191,12 @@ module Orb attr_accessor previously_attempted_at: Time? - def initialize: - ( - enabled: bool?, - next_attempt_at: Time?, - num_attempts: Integer?, - previously_attempted_at: Time? - ) -> void - | ( - ?Orb::Models::Invoice::auto_collection | Orb::BaseModel data - ) -> void + def initialize: ( + enabled: bool?, + next_attempt_at: Time?, + num_attempts: Integer?, + previously_attempted_at: Time? + ) -> void def to_hash: -> Orb::Models::Invoice::auto_collection end @@ -230,18 +224,14 @@ module Orb attr_accessor state: String? - def initialize: - ( - city: String?, - country: String?, - line1: String?, - line2: String?, - postal_code: String?, - state: String? - ) -> void - | ( - ?Orb::Models::Invoice::billing_address | Orb::BaseModel data - ) -> void + def initialize: ( + city: String?, + country: String?, + line1: String?, + line2: String?, + postal_code: String?, + state: String? + ) -> void def to_hash: -> Orb::Models::Invoice::billing_address end @@ -272,17 +262,15 @@ module Orb attr_accessor voided_at: Time? - def initialize: - ( - id: String, - credit_note_number: String, - memo: String?, - reason: String, - total: String, - type: String, - voided_at: Time? - ) -> void - | (?Orb::Models::Invoice::credit_note | Orb::BaseModel data) -> void + def initialize: ( + id: String, + credit_note_number: String, + memo: String?, + reason: String, + total: String, + type: String, + voided_at: Time? + ) -> void def to_hash: -> Orb::Models::Invoice::credit_note end @@ -294,9 +282,7 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | (?Orb::Models::Invoice::customer | Orb::BaseModel data) -> void + def initialize: (id: String, external_customer_id: String?) -> void def to_hash: -> Orb::Models::Invoice::customer end @@ -336,23 +322,18 @@ module Orb attr_accessor type: Orb::Models::Invoice::CustomerBalanceTransaction::type_ - def initialize: - ( - id: String, - action: Orb::Models::Invoice::CustomerBalanceTransaction::action, - amount: String, - created_at: Time, - credit_note: Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote?, - description: String?, - ending_balance: String, - invoice: Orb::Models::Invoice::CustomerBalanceTransaction::Invoice?, - starting_balance: String, - type: Orb::Models::Invoice::CustomerBalanceTransaction::type_ - ) -> void - | ( - ?Orb::Models::Invoice::customer_balance_transaction - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + action: Orb::Models::Invoice::CustomerBalanceTransaction::action, + amount: String, + created_at: Time, + credit_note: Orb::Models::Invoice::CustomerBalanceTransaction::CreditNote?, + description: String?, + ending_balance: String, + invoice: Orb::Models::Invoice::CustomerBalanceTransaction::Invoice?, + starting_balance: String, + type: Orb::Models::Invoice::CustomerBalanceTransaction::type_ + ) -> void def to_hash: -> Orb::Models::Invoice::customer_balance_transaction @@ -367,7 +348,9 @@ module Orb | :overpayment_refund | :external_payment - class Action < Orb::Enum + module Action + extend Orb::Enum + APPLIED_TO_INVOICE: :applied_to_invoice MANUAL_ADJUSTMENT: :manual_adjustment PRORATED_REFUND: :prorated_refund @@ -378,7 +361,7 @@ module Orb OVERPAYMENT_REFUND: :overpayment_refund EXTERNAL_PAYMENT: :external_payment - def self.values: -> ::Array[Orb::Models::Invoice::CustomerBalanceTransaction::action] + def self?.values: -> ::Array[Orb::Models::Invoice::CustomerBalanceTransaction::action] end type credit_note = { id: String } @@ -386,12 +369,7 @@ module Orb class CreditNote < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Invoice::CustomerBalanceTransaction::credit_note - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Invoice::CustomerBalanceTransaction::credit_note end @@ -401,23 +379,20 @@ module Orb class Invoice < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Invoice::CustomerBalanceTransaction::invoice - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Invoice::CustomerBalanceTransaction::invoice end type type_ = :increment | :decrement - class Type < Orb::Enum + module Type + extend Orb::Enum + INCREMENT: :increment DECREMENT: :decrement - def self.values: -> ::Array[Orb::Models::Invoice::CustomerBalanceTransaction::type_] + def self?.values: -> ::Array[Orb::Models::Invoice::CustomerBalanceTransaction::type_] end end @@ -435,15 +410,11 @@ module Orb attr_accessor value: String - def initialize: - ( - country: Orb::Models::Invoice::CustomerTaxID::country, - type: Orb::Models::Invoice::CustomerTaxID::type_, - value: String - ) -> void - | ( - ?Orb::Models::Invoice::customer_tax_id | Orb::BaseModel data - ) -> void + def initialize: ( + country: Orb::Models::Invoice::CustomerTaxID::country, + type: Orb::Models::Invoice::CustomerTaxID::type_, + value: String + ) -> void def to_hash: -> Orb::Models::Invoice::customer_tax_id @@ -527,7 +498,9 @@ module Orb | :VN | :ZA - class Country < Orb::Enum + module Country + extend Orb::Enum + AD: :AD AE: :AE AR: :AR @@ -607,7 +580,7 @@ module Orb VN: :VN ZA: :ZA - def self.values: -> ::Array[Orb::Models::Invoice::CustomerTaxID::country] + def self?.values: -> ::Array[Orb::Models::Invoice::CustomerTaxID::country] end type type_ = @@ -683,7 +656,9 @@ module Orb | :vn_tin | :za_vat - class Type < Orb::Enum + module Type + extend Orb::Enum + AD_NRT: :ad_nrt AE_TRN: :ae_trn AR_CUIT: :ar_cuit @@ -756,18 +731,20 @@ module Orb VN_TIN: :vn_tin ZA_VAT: :za_vat - def self.values: -> ::Array[Orb::Models::Invoice::CustomerTaxID::type_] + def self?.values: -> ::Array[Orb::Models::Invoice::CustomerTaxID::type_] end end type invoice_source = :subscription | :partial | :one_off - class InvoiceSource < Orb::Enum + module InvoiceSource + extend Orb::Enum + SUBSCRIPTION: :subscription PARTIAL: :partial ONE_OFF: :one_off - def self.values: -> ::Array[Orb::Models::Invoice::invoice_source] + def self?.values: -> ::Array[Orb::Models::Invoice::invoice_source] end type line_item = @@ -841,32 +818,30 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - adjusted_subtotal: String, - adjustments: ::Array[Orb::Models::Invoice::LineItem::adjustment], - amount: String, - credits_applied: String, - discount: Orb::Models::discount?, - end_date: Time, - filter: String?, - grouping: String?, - maximum: Orb::Models::Invoice::LineItem::Maximum?, - maximum_amount: String?, - minimum: Orb::Models::Invoice::LineItem::Minimum?, - minimum_amount: String?, - name: String, - partially_invoiced_amount: String, - price: Orb::Models::price?, - quantity: Float, - start_date: Time, - sub_line_items: ::Array[Orb::Models::Invoice::LineItem::sub_line_item], - subtotal: String, - tax_amounts: ::Array[Orb::Models::Invoice::LineItem::TaxAmount], - usage_customer_ids: ::Array[String]? - ) -> void - | (?Orb::Models::Invoice::line_item | Orb::BaseModel data) -> void + def initialize: ( + id: String, + adjusted_subtotal: String, + adjustments: ::Array[Orb::Models::Invoice::LineItem::adjustment], + amount: String, + credits_applied: String, + discount: Orb::Models::discount?, + end_date: Time, + filter: String?, + grouping: String?, + maximum: Orb::Models::Invoice::LineItem::Maximum?, + maximum_amount: String?, + minimum: Orb::Models::Invoice::LineItem::Minimum?, + minimum_amount: String?, + name: String, + partially_invoiced_amount: String, + price: Orb::Models::price?, + quantity: Float, + start_date: Time, + sub_line_items: ::Array[Orb::Models::Invoice::LineItem::sub_line_item], + subtotal: String, + tax_amounts: ::Array[Orb::Models::Invoice::LineItem::TaxAmount], + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::Invoice::line_item @@ -877,7 +852,9 @@ module Orb | Orb::Models::Invoice::LineItem::Adjustment::MonetaryMinimumAdjustment | Orb::Models::Invoice::LineItem::Adjustment::MonetaryMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type monetary_usage_discount_adjustment = { id: String, @@ -904,20 +881,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - amount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::Invoice::LineItem::Adjustment::monetary_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::monetary_usage_discount_adjustment end @@ -948,20 +920,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::Invoice::LineItem::Adjustment::monetary_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::monetary_amount_discount_adjustment end @@ -992,20 +959,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::Invoice::LineItem::Adjustment::monetary_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::monetary_percentage_discount_adjustment end @@ -1039,21 +1001,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::Invoice::LineItem::Adjustment::monetary_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::monetary_minimum_adjustment end @@ -1084,25 +1041,20 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::Invoice::LineItem::Adjustment::monetary_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::Invoice::LineItem::Adjustment::monetary_maximum_adjustment end - def self.variants: -> [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] + def self?.variants: -> [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 type maximum = @@ -1113,14 +1065,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Invoice::LineItem::maximum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Invoice::LineItem::maximum end @@ -1133,14 +1081,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Invoice::LineItem::minimum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Invoice::LineItem::minimum end @@ -1150,7 +1094,9 @@ module Orb | Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem | Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem - class SubLineItem < Orb::Union + module SubLineItem + extend Orb::Union + type matrix_sub_line_item = { amount: String, @@ -1174,19 +1120,14 @@ module Orb attr_accessor type: :matrix - def initialize: - ( - amount: String, - grouping: Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping?, - matrix_config: Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, - name: String, - quantity: Float, - type: :matrix - ) -> void - | ( - ?Orb::Models::Invoice::LineItem::SubLineItem::matrix_sub_line_item - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + grouping: Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::Grouping?, + matrix_config: Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, + name: String, + quantity: Float, + ?type: :matrix + ) -> void def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::matrix_sub_line_item @@ -1197,12 +1138,7 @@ module Orb attr_accessor value: String? - def initialize: - (key: String, value: String?) -> void - | ( - ?Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::grouping - | Orb::BaseModel data - ) -> void + def initialize: (key: String, value: String?) -> void def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::grouping end @@ -1212,12 +1148,7 @@ module Orb class MatrixConfig < Orb::BaseModel attr_accessor dimension_values: ::Array[String?] - def initialize: - (dimension_values: ::Array[String?]) -> void - | ( - ?Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::matrix_config - | Orb::BaseModel data - ) -> void + def initialize: (dimension_values: ::Array[String?]) -> void def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem::matrix_config end @@ -1246,19 +1177,14 @@ module Orb attr_accessor type: :tier - def initialize: - ( - amount: String, - grouping: Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping?, - name: String, - quantity: Float, - tier_config: Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig, - type: :tier - ) -> void - | ( - ?Orb::Models::Invoice::LineItem::SubLineItem::tier_sub_line_item - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + grouping: Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::Grouping?, + name: String, + quantity: Float, + tier_config: Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::TierConfig, + ?type: :tier + ) -> void def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::tier_sub_line_item @@ -1269,12 +1195,7 @@ module Orb attr_accessor value: String? - def initialize: - (key: String, value: String?) -> void - | ( - ?Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::grouping - | Orb::BaseModel data - ) -> void + def initialize: (key: String, value: String?) -> void def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::grouping end @@ -1289,16 +1210,11 @@ module Orb attr_accessor unit_amount: String - def initialize: - ( - first_unit: Float, - last_unit: Float?, - unit_amount: String - ) -> void - | ( - ?Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::tier_config - | Orb::BaseModel data - ) -> void + def initialize: ( + first_unit: Float, + last_unit: Float?, + unit_amount: String + ) -> void def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem::tier_config end @@ -1324,18 +1240,13 @@ module Orb attr_accessor type: :"'null'" - def initialize: - ( - amount: String, - grouping: Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping?, - name: String, - quantity: Float, - type: :"'null'" - ) -> void - | ( - ?Orb::Models::Invoice::LineItem::SubLineItem::other_sub_line_item - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + grouping: Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::Grouping?, + name: String, + quantity: Float, + ?type: :"'null'" + ) -> void def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::other_sub_line_item @@ -1346,18 +1257,13 @@ module Orb attr_accessor value: String? - def initialize: - (key: String, value: String?) -> void - | ( - ?Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::grouping - | Orb::BaseModel data - ) -> void + def initialize: (key: String, value: String?) -> void def to_hash: -> Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem::grouping end end - def self.variants: -> [Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem] + def self?.variants: -> [Orb::Models::Invoice::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::TierSubLineItem, Orb::Models::Invoice::LineItem::SubLineItem::OtherSubLineItem] end type tax_amount = @@ -1374,15 +1280,11 @@ module Orb attr_accessor tax_rate_percentage: String? - def initialize: - ( - amount: String, - tax_rate_description: String, - tax_rate_percentage: String? - ) -> void - | ( - ?Orb::Models::Invoice::LineItem::tax_amount | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + tax_rate_description: String, + tax_rate_percentage: String? + ) -> void def to_hash: -> Orb::Models::Invoice::LineItem::tax_amount end @@ -1396,12 +1298,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | (?Orb::Models::Invoice::maximum | Orb::BaseModel data) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Invoice::maximum end @@ -1414,12 +1314,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | (?Orb::Models::Invoice::minimum | Orb::BaseModel data) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Invoice::minimum end @@ -1447,27 +1345,25 @@ module Orb attr_accessor succeeded: bool - def initialize: - ( - id: String, - amount: String, - created_at: Time, - payment_provider: Orb::Models::Invoice::PaymentAttempt::payment_provider?, - payment_provider_id: String?, - succeeded: bool - ) -> void - | ( - ?Orb::Models::Invoice::payment_attempt | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + created_at: Time, + payment_provider: Orb::Models::Invoice::PaymentAttempt::payment_provider?, + payment_provider_id: String?, + succeeded: bool + ) -> void def to_hash: -> Orb::Models::Invoice::payment_attempt type payment_provider = :stripe - class PaymentProvider < Orb::Enum + module PaymentProvider + extend Orb::Enum + STRIPE: :stripe - def self.values: -> ::Array[Orb::Models::Invoice::PaymentAttempt::payment_provider] + def self?.values: -> ::Array[Orb::Models::Invoice::PaymentAttempt::payment_provider] end end @@ -1494,32 +1390,30 @@ module Orb attr_accessor state: String? - def initialize: - ( - city: String?, - country: String?, - line1: String?, - line2: String?, - postal_code: String?, - state: String? - ) -> void - | ( - ?Orb::Models::Invoice::shipping_address | Orb::BaseModel data - ) -> void + def initialize: ( + city: String?, + country: String?, + line1: String?, + line2: String?, + postal_code: String?, + state: String? + ) -> void def to_hash: -> Orb::Models::Invoice::shipping_address end type status = :issued | :paid | :synced | :void | :draft - class Status < Orb::Enum + module Status + extend Orb::Enum + ISSUED: :issued PAID: :paid SYNCED: :synced VOID: :void DRAFT: :draft - def self.values: -> ::Array[Orb::Models::Invoice::status] + def self?.values: -> ::Array[Orb::Models::Invoice::status] end type subscription = { id: String } @@ -1527,9 +1421,7 @@ module Orb class Subscription < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | (?Orb::Models::Invoice::subscription | Orb::BaseModel data) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Invoice::subscription end diff --git a/sig/orb/models/invoice_create_params.rbs b/sig/orb/models/invoice_create_params.rbs index ee7149e0..c810406b 100644 --- a/sig/orb/models/invoice_create_params.rbs +++ b/sig/orb/models/invoice_create_params.rbs @@ -41,21 +41,19 @@ module Orb def will_auto_issue=: (bool) -> bool - def initialize: - ( - currency: String, - invoice_date: Time, - line_items: ::Array[Orb::Models::InvoiceCreateParams::LineItem], - net_terms: Integer, - customer_id: String?, - discount: Orb::Models::discount?, - external_customer_id: String?, - memo: String?, - metadata: ::Hash[Symbol, String?]?, - will_auto_issue: bool, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::invoice_create_params | Orb::BaseModel data) -> void + def initialize: ( + currency: String, + invoice_date: Time, + line_items: ::Array[Orb::Models::InvoiceCreateParams::LineItem], + net_terms: Integer, + ?customer_id: String?, + ?discount: Orb::Models::discount?, + ?external_customer_id: String?, + ?memo: String?, + ?metadata: ::Hash[Symbol, String?]?, + ?will_auto_issue: bool, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::invoice_create_params @@ -85,28 +83,26 @@ module Orb attr_accessor unit_config: Orb::Models::InvoiceCreateParams::LineItem::UnitConfig - def initialize: - ( - end_date: Date, - item_id: String, - model_type: Orb::Models::InvoiceCreateParams::LineItem::model_type, - name: String, - quantity: Float, - start_date: Date, - unit_config: Orb::Models::InvoiceCreateParams::LineItem::UnitConfig - ) -> void - | ( - ?Orb::Models::InvoiceCreateParams::line_item | Orb::BaseModel data - ) -> void + def initialize: ( + end_date: Date, + item_id: String, + model_type: Orb::Models::InvoiceCreateParams::LineItem::model_type, + name: String, + quantity: Float, + start_date: Date, + unit_config: Orb::Models::InvoiceCreateParams::LineItem::UnitConfig + ) -> void def to_hash: -> Orb::Models::InvoiceCreateParams::line_item type model_type = :unit - class ModelType < Orb::Enum + module ModelType + extend Orb::Enum + UNIT: :unit - def self.values: -> ::Array[Orb::Models::InvoiceCreateParams::LineItem::model_type] + def self?.values: -> ::Array[Orb::Models::InvoiceCreateParams::LineItem::model_type] end type unit_config = { unit_amount: String } @@ -114,12 +110,7 @@ module Orb class UnitConfig < Orb::BaseModel attr_accessor unit_amount: String - def initialize: - (unit_amount: String) -> void - | ( - ?Orb::Models::InvoiceCreateParams::LineItem::unit_config - | Orb::BaseModel data - ) -> void + def initialize: (unit_amount: String) -> void def to_hash: -> Orb::Models::InvoiceCreateParams::LineItem::unit_config end diff --git a/sig/orb/models/invoice_fetch_params.rbs b/sig/orb/models/invoice_fetch_params.rbs index 5cc201e8..773a7f9f 100644 --- a/sig/orb/models/invoice_fetch_params.rbs +++ b/sig/orb/models/invoice_fetch_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::invoice_fetch_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::invoice_fetch_params end diff --git a/sig/orb/models/invoice_fetch_upcoming_params.rbs b/sig/orb/models/invoice_fetch_upcoming_params.rbs index 08deb93a..6df7fa65 100644 --- a/sig/orb/models/invoice_fetch_upcoming_params.rbs +++ b/sig/orb/models/invoice_fetch_upcoming_params.rbs @@ -9,11 +9,10 @@ module Orb attr_accessor subscription_id: String - def initialize: - (subscription_id: String, request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::invoice_fetch_upcoming_params | Orb::BaseModel data - ) -> void + def initialize: ( + subscription_id: String, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::invoice_fetch_upcoming_params end diff --git a/sig/orb/models/invoice_fetch_upcoming_response.rbs b/sig/orb/models/invoice_fetch_upcoming_response.rbs index 65e45ad6..d800a029 100644 --- a/sig/orb/models/invoice_fetch_upcoming_response.rbs +++ b/sig/orb/models/invoice_fetch_upcoming_response.rbs @@ -128,53 +128,49 @@ module Orb attr_accessor will_auto_issue: bool - def initialize: - ( - id: String, - amount_due: String, - auto_collection: Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection, - billing_address: Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress?, - created_at: Time, - credit_notes: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote], - currency: String, - customer: Orb::Models::InvoiceFetchUpcomingResponse::Customer, - customer_balance_transactions: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction], - customer_tax_id: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID?, - discount: top, - discounts: ::Array[Orb::Models::invoice_level_discount], - due_date: Time?, - eligible_to_issue_at: Time?, - hosted_invoice_url: String?, - invoice_number: String, - invoice_pdf: String?, - invoice_source: Orb::Models::InvoiceFetchUpcomingResponse::invoice_source, - issue_failed_at: Time?, - issued_at: Time?, - line_items: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem], - maximum: Orb::Models::InvoiceFetchUpcomingResponse::Maximum?, - maximum_amount: String?, - memo: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::InvoiceFetchUpcomingResponse::Minimum?, - minimum_amount: String?, - paid_at: Time?, - payment_attempts: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt], - payment_failed_at: Time?, - payment_started_at: Time?, - scheduled_issue_at: Time?, - shipping_address: Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress?, - status: Orb::Models::InvoiceFetchUpcomingResponse::status, - subscription: Orb::Models::InvoiceFetchUpcomingResponse::Subscription?, - subtotal: String, - sync_failed_at: Time?, - target_date: Time, - total: String, - voided_at: Time?, - will_auto_issue: bool - ) -> void - | ( - ?Orb::Models::invoice_fetch_upcoming_response | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_due: String, + auto_collection: Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection, + billing_address: Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress?, + created_at: Time, + credit_notes: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote], + currency: String, + customer: Orb::Models::InvoiceFetchUpcomingResponse::Customer, + customer_balance_transactions: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction], + customer_tax_id: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID?, + discount: top, + discounts: ::Array[Orb::Models::invoice_level_discount], + due_date: Time?, + eligible_to_issue_at: Time?, + hosted_invoice_url: String?, + invoice_number: String, + invoice_pdf: String?, + invoice_source: Orb::Models::InvoiceFetchUpcomingResponse::invoice_source, + issue_failed_at: Time?, + issued_at: Time?, + line_items: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem], + maximum: Orb::Models::InvoiceFetchUpcomingResponse::Maximum?, + maximum_amount: String?, + memo: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::InvoiceFetchUpcomingResponse::Minimum?, + minimum_amount: String?, + paid_at: Time?, + payment_attempts: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt], + payment_failed_at: Time?, + payment_started_at: Time?, + scheduled_issue_at: Time?, + shipping_address: Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress?, + status: Orb::Models::InvoiceFetchUpcomingResponse::status, + subscription: Orb::Models::InvoiceFetchUpcomingResponse::Subscription?, + subtotal: String, + sync_failed_at: Time?, + target_date: Time, + total: String, + voided_at: Time?, + will_auto_issue: bool + ) -> void def to_hash: -> Orb::Models::invoice_fetch_upcoming_response @@ -195,17 +191,12 @@ module Orb attr_accessor previously_attempted_at: Time? - def initialize: - ( - enabled: bool?, - next_attempt_at: Time?, - num_attempts: Integer?, - previously_attempted_at: Time? - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::auto_collection - | Orb::BaseModel data - ) -> void + def initialize: ( + enabled: bool?, + next_attempt_at: Time?, + num_attempts: Integer?, + previously_attempted_at: Time? + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::auto_collection end @@ -233,19 +224,14 @@ module Orb attr_accessor state: String? - def initialize: - ( - city: String?, - country: String?, - line1: String?, - line2: String?, - postal_code: String?, - state: String? - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::billing_address - | Orb::BaseModel data - ) -> void + def initialize: ( + city: String?, + country: String?, + line1: String?, + line2: String?, + postal_code: String?, + state: String? + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::billing_address end @@ -276,20 +262,15 @@ module Orb attr_accessor voided_at: Time? - def initialize: - ( - id: String, - credit_note_number: String, - memo: String?, - reason: String, - total: String, - type: String, - voided_at: Time? - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::credit_note - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + credit_note_number: String, + memo: String?, + reason: String, + total: String, + type: String, + voided_at: Time? + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::credit_note end @@ -301,12 +282,7 @@ module Orb attr_accessor external_customer_id: String? - def initialize: - (id: String, external_customer_id: String?) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::customer - | Orb::BaseModel data - ) -> void + def initialize: (id: String, external_customer_id: String?) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::customer end @@ -346,23 +322,18 @@ module Orb attr_accessor type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::type_ - def initialize: - ( - id: String, - action: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::action, - amount: String, - created_at: Time, - credit_note: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote?, - description: String?, - ending_balance: String, - invoice: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice?, - starting_balance: String, - type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::type_ - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::customer_balance_transaction - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + action: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::action, + amount: String, + created_at: Time, + credit_note: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote?, + description: String?, + ending_balance: String, + invoice: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice?, + starting_balance: String, + type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::type_ + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::customer_balance_transaction @@ -377,7 +348,9 @@ module Orb | :overpayment_refund | :external_payment - class Action < Orb::Enum + module Action + extend Orb::Enum + APPLIED_TO_INVOICE: :applied_to_invoice MANUAL_ADJUSTMENT: :manual_adjustment PRORATED_REFUND: :prorated_refund @@ -388,7 +361,7 @@ module Orb OVERPAYMENT_REFUND: :overpayment_refund EXTERNAL_PAYMENT: :external_payment - def self.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::action] + def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::action] end type credit_note = { id: String } @@ -396,12 +369,7 @@ module Orb class CreditNote < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::credit_note - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::credit_note end @@ -411,23 +379,20 @@ module Orb class Invoice < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::invoice - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::invoice end type type_ = :increment | :decrement - class Type < Orb::Enum + module Type + extend Orb::Enum + INCREMENT: :increment DECREMENT: :decrement - def self.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::type_] + def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::type_] end end @@ -445,16 +410,11 @@ module Orb attr_accessor value: String - def initialize: - ( - country: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::country, - type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::type_, - value: String - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::customer_tax_id - | Orb::BaseModel data - ) -> void + def initialize: ( + country: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::country, + type: Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::type_, + value: String + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::customer_tax_id @@ -538,7 +498,9 @@ module Orb | :VN | :ZA - class Country < Orb::Enum + module Country + extend Orb::Enum + AD: :AD AE: :AE AR: :AR @@ -618,7 +580,7 @@ module Orb VN: :VN ZA: :ZA - def self.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::country] + def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::country] end type type_ = @@ -694,7 +656,9 @@ module Orb | :vn_tin | :za_vat - class Type < Orb::Enum + module Type + extend Orb::Enum + AD_NRT: :ad_nrt AE_TRN: :ae_trn AR_CUIT: :ar_cuit @@ -767,18 +731,20 @@ module Orb VN_TIN: :vn_tin ZA_VAT: :za_vat - def self.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::type_] + def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::type_] end end type invoice_source = :subscription | :partial | :one_off - class InvoiceSource < Orb::Enum + module InvoiceSource + extend Orb::Enum + SUBSCRIPTION: :subscription PARTIAL: :partial ONE_OFF: :one_off - def self.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::invoice_source] + def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::invoice_source] end type line_item = @@ -852,35 +818,30 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - adjusted_subtotal: String, - adjustments: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::adjustment], - amount: String, - credits_applied: String, - discount: Orb::Models::discount?, - end_date: Time, - filter: String?, - grouping: String?, - maximum: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum?, - maximum_amount: String?, - minimum: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum?, - minimum_amount: String?, - name: String, - partially_invoiced_amount: String, - price: Orb::Models::price?, - quantity: Float, - start_date: Time, - sub_line_items: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::sub_line_item], - subtotal: String, - tax_amounts: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount], - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::line_item - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + adjusted_subtotal: String, + adjustments: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::adjustment], + amount: String, + credits_applied: String, + discount: Orb::Models::discount?, + end_date: Time, + filter: String?, + grouping: String?, + maximum: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum?, + maximum_amount: String?, + minimum: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum?, + minimum_amount: String?, + name: String, + partially_invoiced_amount: String, + price: Orb::Models::price?, + quantity: Float, + start_date: Time, + sub_line_items: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::sub_line_item], + subtotal: String, + tax_amounts: ::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount], + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::line_item @@ -891,7 +852,9 @@ module Orb | Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment | Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type monetary_usage_discount_adjustment = { id: String, @@ -918,20 +881,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - amount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_usage_discount_adjustment end @@ -962,20 +920,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_amount_discount_adjustment end @@ -1006,20 +959,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_percentage_discount_adjustment end @@ -1053,21 +1001,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_minimum_adjustment end @@ -1098,25 +1041,20 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::monetary_maximum_adjustment end - def self.variants: -> [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] + def self?.variants: -> [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 type maximum = @@ -1127,15 +1065,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::maximum end @@ -1148,15 +1081,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::minimum end @@ -1166,7 +1094,9 @@ module Orb | Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem | Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem - class SubLineItem < Orb::Union + module SubLineItem + extend Orb::Union + type matrix_sub_line_item = { amount: String, @@ -1190,19 +1120,14 @@ module Orb attr_accessor type: :matrix - def initialize: - ( - amount: String, - grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping?, - matrix_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, - name: String, - quantity: Float, - type: :matrix - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::matrix_sub_line_item - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::Grouping?, + matrix_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig, + name: String, + quantity: Float, + ?type: :matrix + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::matrix_sub_line_item @@ -1213,12 +1138,7 @@ module Orb attr_accessor value: String? - def initialize: - (key: String, value: String?) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::grouping - | Orb::BaseModel data - ) -> void + def initialize: (key: String, value: String?) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::grouping end @@ -1228,12 +1148,7 @@ module Orb class MatrixConfig < Orb::BaseModel attr_accessor dimension_values: ::Array[String?] - def initialize: - (dimension_values: ::Array[String?]) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::matrix_config - | Orb::BaseModel data - ) -> void + def initialize: (dimension_values: ::Array[String?]) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::matrix_config end @@ -1262,19 +1177,14 @@ module Orb attr_accessor type: :tier - def initialize: - ( - amount: String, - grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping?, - name: String, - quantity: Float, - tier_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig, - type: :tier - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::tier_sub_line_item - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::Grouping?, + name: String, + quantity: Float, + tier_config: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::TierConfig, + ?type: :tier + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::tier_sub_line_item @@ -1285,12 +1195,7 @@ module Orb attr_accessor value: String? - def initialize: - (key: String, value: String?) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::grouping - | Orb::BaseModel data - ) -> void + def initialize: (key: String, value: String?) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::grouping end @@ -1305,16 +1210,11 @@ module Orb attr_accessor unit_amount: String - def initialize: - ( - first_unit: Float, - last_unit: Float?, - unit_amount: String - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::tier_config - | Orb::BaseModel data - ) -> void + def initialize: ( + first_unit: Float, + last_unit: Float?, + unit_amount: String + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem::tier_config end @@ -1340,18 +1240,13 @@ module Orb attr_accessor type: :"'null'" - def initialize: - ( - amount: String, - grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping?, - name: String, - quantity: Float, - type: :"'null'" - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::other_sub_line_item - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + grouping: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::Grouping?, + name: String, + quantity: Float, + ?type: :"'null'" + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::other_sub_line_item @@ -1362,18 +1257,13 @@ module Orb attr_accessor value: String? - def initialize: - (key: String, value: String?) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::grouping - | Orb::BaseModel data - ) -> void + def initialize: (key: String, value: String?) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem::grouping end end - def self.variants: -> [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem] + def self?.variants: -> [Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem] end type tax_amount = @@ -1390,16 +1280,11 @@ module Orb attr_accessor tax_rate_percentage: String? - def initialize: - ( - amount: String, - tax_rate_description: String, - tax_rate_percentage: String? - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::LineItem::tax_amount - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + tax_rate_description: String, + tax_rate_percentage: String? + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::LineItem::tax_amount end @@ -1413,15 +1298,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::maximum end @@ -1434,15 +1314,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::minimum end @@ -1470,28 +1345,25 @@ module Orb attr_accessor succeeded: bool - def initialize: - ( - id: String, - amount: String, - created_at: Time, - payment_provider: Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::payment_provider?, - payment_provider_id: String?, - succeeded: bool - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::payment_attempt - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + created_at: Time, + payment_provider: Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::payment_provider?, + payment_provider_id: String?, + succeeded: bool + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::payment_attempt type payment_provider = :stripe - class PaymentProvider < Orb::Enum + module PaymentProvider + extend Orb::Enum + STRIPE: :stripe - def self.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::payment_provider] + def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::payment_provider] end end @@ -1518,33 +1390,30 @@ module Orb attr_accessor state: String? - def initialize: - ( - city: String?, - country: String?, - line1: String?, - line2: String?, - postal_code: String?, - state: String? - ) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::shipping_address - | Orb::BaseModel data - ) -> void + def initialize: ( + city: String?, + country: String?, + line1: String?, + line2: String?, + postal_code: String?, + state: String? + ) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::shipping_address end type status = :issued | :paid | :synced | :void | :draft - class Status < Orb::Enum + module Status + extend Orb::Enum + ISSUED: :issued PAID: :paid SYNCED: :synced VOID: :void DRAFT: :draft - def self.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::status] + def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::status] end type subscription = { id: String } @@ -1552,12 +1421,7 @@ module Orb class Subscription < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::InvoiceFetchUpcomingResponse::subscription - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::InvoiceFetchUpcomingResponse::subscription end diff --git a/sig/orb/models/invoice_issue_params.rbs b/sig/orb/models/invoice_issue_params.rbs index 4001fd98..1dd89f33 100644 --- a/sig/orb/models/invoice_issue_params.rbs +++ b/sig/orb/models/invoice_issue_params.rbs @@ -10,9 +10,10 @@ module Orb def synchronous=: (bool) -> bool - def initialize: - (synchronous: bool, request_options: Orb::request_opts) -> void - | (?Orb::Models::invoice_issue_params | Orb::BaseModel data) -> void + def initialize: ( + ?synchronous: bool, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::invoice_issue_params end diff --git a/sig/orb/models/invoice_level_discount.rbs b/sig/orb/models/invoice_level_discount.rbs index 46d961c1..2d0a7272 100644 --- a/sig/orb/models/invoice_level_discount.rbs +++ b/sig/orb/models/invoice_level_discount.rbs @@ -5,8 +5,10 @@ module Orb | Orb::Models::AmountDiscount | Orb::Models::TrialDiscount - class InvoiceLevelDiscount < Orb::Union - def self.variants: -> [Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount] + module InvoiceLevelDiscount + extend Orb::Union + + def self?.variants: -> [Orb::Models::PercentageDiscount, Orb::Models::AmountDiscount, Orb::Models::TrialDiscount] end end end diff --git a/sig/orb/models/invoice_line_item_create_params.rbs b/sig/orb/models/invoice_line_item_create_params.rbs index e38b9a5d..62c0a170 100644 --- a/sig/orb/models/invoice_line_item_create_params.rbs +++ b/sig/orb/models/invoice_line_item_create_params.rbs @@ -27,19 +27,15 @@ module Orb attr_accessor start_date: Date - def initialize: - ( - amount: String, - end_date: Date, - invoice_id: String, - name: String, - quantity: Float, - start_date: Date, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::invoice_line_item_create_params | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + end_date: Date, + invoice_id: String, + name: String, + quantity: Float, + start_date: Date, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::invoice_line_item_create_params end diff --git a/sig/orb/models/invoice_line_item_create_response.rbs b/sig/orb/models/invoice_line_item_create_response.rbs index a0b847b8..39062f64 100644 --- a/sig/orb/models/invoice_line_item_create_response.rbs +++ b/sig/orb/models/invoice_line_item_create_response.rbs @@ -71,34 +71,30 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - adjusted_subtotal: String, - adjustments: ::Array[Orb::Models::InvoiceLineItemCreateResponse::adjustment], - amount: String, - credits_applied: String, - discount: Orb::Models::discount?, - end_date: Time, - filter: String?, - grouping: String?, - maximum: Orb::Models::InvoiceLineItemCreateResponse::Maximum?, - maximum_amount: String?, - minimum: Orb::Models::InvoiceLineItemCreateResponse::Minimum?, - minimum_amount: String?, - name: String, - partially_invoiced_amount: String, - price: Orb::Models::price?, - quantity: Float, - start_date: Time, - sub_line_items: ::Array[Orb::Models::InvoiceLineItemCreateResponse::sub_line_item], - subtotal: String, - tax_amounts: ::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount], - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::invoice_line_item_create_response | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + adjusted_subtotal: String, + adjustments: ::Array[Orb::Models::InvoiceLineItemCreateResponse::adjustment], + amount: String, + credits_applied: String, + discount: Orb::Models::discount?, + end_date: Time, + filter: String?, + grouping: String?, + maximum: Orb::Models::InvoiceLineItemCreateResponse::Maximum?, + maximum_amount: String?, + minimum: Orb::Models::InvoiceLineItemCreateResponse::Minimum?, + minimum_amount: String?, + name: String, + partially_invoiced_amount: String, + price: Orb::Models::price?, + quantity: Float, + start_date: Time, + sub_line_items: ::Array[Orb::Models::InvoiceLineItemCreateResponse::sub_line_item], + subtotal: String, + tax_amounts: ::Array[Orb::Models::InvoiceLineItemCreateResponse::TaxAmount], + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::invoice_line_item_create_response @@ -109,7 +105,9 @@ module Orb | Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMinimumAdjustment | Orb::Models::InvoiceLineItemCreateResponse::Adjustment::MonetaryMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type monetary_usage_discount_adjustment = { id: String, @@ -136,20 +134,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - amount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_usage_discount_adjustment end @@ -180,20 +173,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_amount_discount_adjustment end @@ -224,20 +212,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_percentage_discount_adjustment end @@ -271,21 +254,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_minimum_adjustment end @@ -316,25 +294,20 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::Adjustment::monetary_maximum_adjustment end - def self.variants: -> [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] + def self?.variants: -> [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 type maximum = @@ -345,15 +318,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::maximum end @@ -366,15 +334,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::minimum end @@ -384,7 +347,9 @@ module Orb | Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem | Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem - class SubLineItem < Orb::Union + module SubLineItem + extend Orb::Union + type matrix_sub_line_item = { amount: String, @@ -408,19 +373,14 @@ module Orb attr_accessor type: :matrix - def initialize: - ( - amount: String, - grouping: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping?, - matrix_config: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig, - name: String, - quantity: Float, - type: :matrix - ) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::matrix_sub_line_item - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + grouping: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::Grouping?, + matrix_config: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::MatrixConfig, + name: String, + quantity: Float, + ?type: :matrix + ) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::matrix_sub_line_item @@ -431,12 +391,7 @@ module Orb attr_accessor value: String? - def initialize: - (key: String, value: String?) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::grouping - | Orb::BaseModel data - ) -> void + def initialize: (key: String, value: String?) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::grouping end @@ -446,12 +401,7 @@ module Orb class MatrixConfig < Orb::BaseModel attr_accessor dimension_values: ::Array[String?] - def initialize: - (dimension_values: ::Array[String?]) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::matrix_config - | Orb::BaseModel data - ) -> void + def initialize: (dimension_values: ::Array[String?]) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem::matrix_config end @@ -480,19 +430,14 @@ module Orb attr_accessor type: :tier - def initialize: - ( - amount: String, - grouping: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping?, - name: String, - quantity: Float, - tier_config: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig, - type: :tier - ) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::tier_sub_line_item - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + grouping: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::Grouping?, + name: String, + quantity: Float, + tier_config: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::TierConfig, + ?type: :tier + ) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::tier_sub_line_item @@ -503,12 +448,7 @@ module Orb attr_accessor value: String? - def initialize: - (key: String, value: String?) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::grouping - | Orb::BaseModel data - ) -> void + def initialize: (key: String, value: String?) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::grouping end @@ -523,16 +463,11 @@ module Orb attr_accessor unit_amount: String - def initialize: - ( - first_unit: Float, - last_unit: Float?, - unit_amount: String - ) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::tier_config - | Orb::BaseModel data - ) -> void + def initialize: ( + first_unit: Float, + last_unit: Float?, + unit_amount: String + ) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem::tier_config end @@ -558,18 +493,13 @@ module Orb attr_accessor type: :"'null'" - def initialize: - ( - amount: String, - grouping: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping?, - name: String, - quantity: Float, - type: :"'null'" - ) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::other_sub_line_item - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + grouping: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::Grouping?, + name: String, + quantity: Float, + ?type: :"'null'" + ) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::other_sub_line_item @@ -580,18 +510,13 @@ module Orb attr_accessor value: String? - def initialize: - (key: String, value: String?) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::grouping - | Orb::BaseModel data - ) -> void + def initialize: (key: String, value: String?) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem::grouping end end - def self.variants: -> [Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem] + def self?.variants: -> [Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::TierSubLineItem, Orb::Models::InvoiceLineItemCreateResponse::SubLineItem::OtherSubLineItem] end type tax_amount = @@ -608,16 +533,11 @@ module Orb attr_accessor tax_rate_percentage: String? - def initialize: - ( - amount: String, - tax_rate_description: String, - tax_rate_percentage: String? - ) -> void - | ( - ?Orb::Models::InvoiceLineItemCreateResponse::tax_amount - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + tax_rate_description: String, + tax_rate_percentage: String? + ) -> void def to_hash: -> Orb::Models::InvoiceLineItemCreateResponse::tax_amount end diff --git a/sig/orb/models/invoice_list_params.rbs b/sig/orb/models/invoice_list_params.rbs index d44310d5..2d693200 100644 --- a/sig/orb/models/invoice_list_params.rbs +++ b/sig/orb/models/invoice_list_params.rbs @@ -68,52 +68,54 @@ module Orb attr_accessor subscription_id: String? - def initialize: - ( - amount: String?, - amount_gt: String?, - amount_lt: String?, - cursor: String?, - customer_id: String?, - date_type: Orb::Models::InvoiceListParams::date_type?, - due_date: Date?, - due_date_window: String?, - due_date_gt: Date?, - due_date_lt: Date?, - external_customer_id: String?, - invoice_date_gt: Time?, - invoice_date_gte: Time?, - invoice_date_lt: Time?, - invoice_date_lte: Time?, - is_recurring: bool?, - limit: Integer, - status: ::Array[Orb::Models::InvoiceListParams::status]?, - subscription_id: String?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::invoice_list_params | Orb::BaseModel data) -> void + def initialize: ( + ?amount: String?, + ?amount_gt: String?, + ?amount_lt: String?, + ?cursor: String?, + ?customer_id: String?, + ?date_type: Orb::Models::InvoiceListParams::date_type?, + ?due_date: Date?, + ?due_date_window: String?, + ?due_date_gt: Date?, + ?due_date_lt: Date?, + ?external_customer_id: String?, + ?invoice_date_gt: Time?, + ?invoice_date_gte: Time?, + ?invoice_date_lt: Time?, + ?invoice_date_lte: Time?, + ?is_recurring: bool?, + ?limit: Integer, + ?status: ::Array[Orb::Models::InvoiceListParams::status]?, + ?subscription_id: String?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::invoice_list_params type date_type = :due_date | :invoice_date - class DateType < Orb::Enum + module DateType + extend Orb::Enum + DUE_DATE: :due_date INVOICE_DATE: :invoice_date - def self.values: -> ::Array[Orb::Models::InvoiceListParams::date_type] + def self?.values: -> ::Array[Orb::Models::InvoiceListParams::date_type] end type status = :draft | :issued | :paid | :synced | :void - class Status < Orb::Enum + module Status + extend Orb::Enum + DRAFT: :draft ISSUED: :issued PAID: :paid SYNCED: :synced VOID: :void - def self.values: -> ::Array[Orb::Models::InvoiceListParams::status] + def self?.values: -> ::Array[Orb::Models::InvoiceListParams::status] end end end diff --git a/sig/orb/models/invoice_mark_paid_params.rbs b/sig/orb/models/invoice_mark_paid_params.rbs index 3d52fc9a..101e1d9c 100644 --- a/sig/orb/models/invoice_mark_paid_params.rbs +++ b/sig/orb/models/invoice_mark_paid_params.rbs @@ -14,14 +14,12 @@ module Orb attr_accessor notes: String? - def initialize: - ( - payment_received_date: Date, - external_id: String?, - notes: String?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::invoice_mark_paid_params | Orb::BaseModel data) -> void + def initialize: ( + payment_received_date: Date, + ?external_id: String?, + ?notes: String?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::invoice_mark_paid_params end diff --git a/sig/orb/models/invoice_pay_params.rbs b/sig/orb/models/invoice_pay_params.rbs index 6c8f6a54..7d80b8a8 100644 --- a/sig/orb/models/invoice_pay_params.rbs +++ b/sig/orb/models/invoice_pay_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::invoice_pay_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::invoice_pay_params end diff --git a/sig/orb/models/invoice_update_params.rbs b/sig/orb/models/invoice_update_params.rbs index 14ff624a..2f7cbd9b 100644 --- a/sig/orb/models/invoice_update_params.rbs +++ b/sig/orb/models/invoice_update_params.rbs @@ -9,12 +9,10 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::invoice_update_params | Orb::BaseModel data) -> void + def initialize: ( + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::invoice_update_params end diff --git a/sig/orb/models/invoice_void_params.rbs b/sig/orb/models/invoice_void_params.rbs index e3be7b60..2d841232 100644 --- a/sig/orb/models/invoice_void_params.rbs +++ b/sig/orb/models/invoice_void_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::invoice_void_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::invoice_void_params end diff --git a/sig/orb/models/item.rbs b/sig/orb/models/item.rbs index d7ad1b56..9f68200c 100644 --- a/sig/orb/models/item.rbs +++ b/sig/orb/models/item.rbs @@ -17,14 +17,12 @@ module Orb attr_accessor name: String - def initialize: - ( - id: String, - created_at: Time, - external_connections: ::Array[Orb::Models::Item::ExternalConnection], - name: String - ) -> void - | (?Orb::Models::item | Orb::BaseModel data) -> void + def initialize: ( + id: String, + created_at: Time, + external_connections: ::Array[Orb::Models::Item::ExternalConnection], + name: String + ) -> void def to_hash: -> Orb::Models::item @@ -39,14 +37,10 @@ module Orb attr_accessor external_entity_id: String - def initialize: - ( - external_connection_name: Orb::Models::Item::ExternalConnection::external_connection_name, - external_entity_id: String - ) -> void - | ( - ?Orb::Models::Item::external_connection | Orb::BaseModel data - ) -> void + def initialize: ( + external_connection_name: Orb::Models::Item::ExternalConnection::external_connection_name, + external_entity_id: String + ) -> void def to_hash: -> Orb::Models::Item::external_connection @@ -59,7 +53,9 @@ module Orb | :avalara | :anrok - class ExternalConnectionName < Orb::Enum + module ExternalConnectionName + extend Orb::Enum + STRIPE: :stripe QUICKBOOKS: :quickbooks BILL_COM: :"bill.com" @@ -68,7 +64,7 @@ module Orb AVALARA: :avalara ANROK: :anrok - def self.values: -> ::Array[Orb::Models::Item::ExternalConnection::external_connection_name] + def self?.values: -> ::Array[Orb::Models::Item::ExternalConnection::external_connection_name] end end end diff --git a/sig/orb/models/item_create_params.rbs b/sig/orb/models/item_create_params.rbs index 102a2610..4281f1e6 100644 --- a/sig/orb/models/item_create_params.rbs +++ b/sig/orb/models/item_create_params.rbs @@ -8,9 +8,10 @@ module Orb attr_accessor name: String - def initialize: - (name: String, request_options: Orb::request_opts) -> void - | (?Orb::Models::item_create_params | Orb::BaseModel data) -> void + def initialize: ( + name: String, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::item_create_params end diff --git a/sig/orb/models/item_fetch_params.rbs b/sig/orb/models/item_fetch_params.rbs index a66414d6..3ad92ea3 100644 --- a/sig/orb/models/item_fetch_params.rbs +++ b/sig/orb/models/item_fetch_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::item_fetch_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::item_fetch_params end diff --git a/sig/orb/models/item_list_params.rbs b/sig/orb/models/item_list_params.rbs index 4473a255..f7debabb 100644 --- a/sig/orb/models/item_list_params.rbs +++ b/sig/orb/models/item_list_params.rbs @@ -13,13 +13,11 @@ module Orb def limit=: (Integer) -> Integer - def initialize: - ( - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::item_list_params | Orb::BaseModel data) -> void + def initialize: ( + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::item_list_params end diff --git a/sig/orb/models/item_update_params.rbs b/sig/orb/models/item_update_params.rbs index ba3f721a..3e8e0dae 100644 --- a/sig/orb/models/item_update_params.rbs +++ b/sig/orb/models/item_update_params.rbs @@ -15,13 +15,11 @@ module Orb attr_accessor name: String? - def initialize: - ( - external_connections: ::Array[Orb::Models::ItemUpdateParams::ExternalConnection]?, - name: String?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::item_update_params | Orb::BaseModel data) -> void + def initialize: ( + ?external_connections: ::Array[Orb::Models::ItemUpdateParams::ExternalConnection]?, + ?name: String?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::item_update_params @@ -36,15 +34,10 @@ module Orb attr_accessor external_entity_id: String - def initialize: - ( - external_connection_name: Orb::Models::ItemUpdateParams::ExternalConnection::external_connection_name, - external_entity_id: String - ) -> void - | ( - ?Orb::Models::ItemUpdateParams::external_connection - | Orb::BaseModel data - ) -> void + def initialize: ( + external_connection_name: Orb::Models::ItemUpdateParams::ExternalConnection::external_connection_name, + external_entity_id: String + ) -> void def to_hash: -> Orb::Models::ItemUpdateParams::external_connection @@ -57,7 +50,9 @@ module Orb | :avalara | :anrok - class ExternalConnectionName < Orb::Enum + module ExternalConnectionName + extend Orb::Enum + STRIPE: :stripe QUICKBOOKS: :quickbooks BILL_COM: :"bill.com" @@ -66,7 +61,7 @@ module Orb AVALARA: :avalara ANROK: :anrok - def self.values: -> ::Array[Orb::Models::ItemUpdateParams::ExternalConnection::external_connection_name] + def self?.values: -> ::Array[Orb::Models::ItemUpdateParams::ExternalConnection::external_connection_name] end end end diff --git a/sig/orb/models/metric_create_params.rbs b/sig/orb/models/metric_create_params.rbs index ea1f8a58..23ffbd89 100644 --- a/sig/orb/models/metric_create_params.rbs +++ b/sig/orb/models/metric_create_params.rbs @@ -24,16 +24,14 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - description: String?, - item_id: String, - name: String, - sql: String, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::metric_create_params | Orb::BaseModel data) -> void + def initialize: ( + description: String?, + item_id: String, + name: String, + sql: String, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::metric_create_params end diff --git a/sig/orb/models/metric_fetch_params.rbs b/sig/orb/models/metric_fetch_params.rbs index ac9ec91b..35077fa2 100644 --- a/sig/orb/models/metric_fetch_params.rbs +++ b/sig/orb/models/metric_fetch_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::metric_fetch_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::metric_fetch_params end diff --git a/sig/orb/models/metric_list_params.rbs b/sig/orb/models/metric_list_params.rbs index 0aba8238..50272106 100644 --- a/sig/orb/models/metric_list_params.rbs +++ b/sig/orb/models/metric_list_params.rbs @@ -29,17 +29,15 @@ module Orb def limit=: (Integer) -> Integer - def initialize: - ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::metric_list_params | Orb::BaseModel data) -> void + def initialize: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::metric_list_params end diff --git a/sig/orb/models/metric_update_params.rbs b/sig/orb/models/metric_update_params.rbs index 56424be6..20901497 100644 --- a/sig/orb/models/metric_update_params.rbs +++ b/sig/orb/models/metric_update_params.rbs @@ -9,12 +9,10 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::metric_update_params | Orb::BaseModel data) -> void + def initialize: ( + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::metric_update_params end diff --git a/sig/orb/models/pagination_metadata.rbs b/sig/orb/models/pagination_metadata.rbs index 76ae3631..0b61fd4e 100644 --- a/sig/orb/models/pagination_metadata.rbs +++ b/sig/orb/models/pagination_metadata.rbs @@ -7,9 +7,7 @@ module Orb attr_accessor next_cursor: String? - def initialize: - (has_more: bool, next_cursor: String?) -> void - | (?Orb::Models::pagination_metadata | Orb::BaseModel data) -> void + def initialize: (has_more: bool, next_cursor: String?) -> void def to_hash: -> Orb::Models::pagination_metadata end diff --git a/sig/orb/models/percentage_discount.rbs b/sig/orb/models/percentage_discount.rbs index da2b8dbe..29fe93cb 100644 --- a/sig/orb/models/percentage_discount.rbs +++ b/sig/orb/models/percentage_discount.rbs @@ -17,23 +17,23 @@ module Orb attr_accessor reason: String? - def initialize: - ( - applies_to_price_ids: ::Array[String], - discount_type: Orb::Models::PercentageDiscount::discount_type, - percentage_discount: Float, - reason: String? - ) -> void - | (?Orb::Models::percentage_discount | Orb::BaseModel data) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + discount_type: Orb::Models::PercentageDiscount::discount_type, + percentage_discount: Float, + ?reason: String? + ) -> void def to_hash: -> Orb::Models::percentage_discount type discount_type = :percentage - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE: :percentage - def self.values: -> ::Array[Orb::Models::PercentageDiscount::discount_type] + def self?.values: -> ::Array[Orb::Models::PercentageDiscount::discount_type] end end end diff --git a/sig/orb/models/plan.rbs b/sig/orb/models/plan.rbs index 2363fb14..84b53872 100644 --- a/sig/orb/models/plan.rbs +++ b/sig/orb/models/plan.rbs @@ -77,34 +77,32 @@ module Orb attr_accessor version: Integer - def initialize: - ( - id: String, - adjustments: ::Array[Orb::Models::Plan::adjustment], - base_plan: Orb::Models::Plan::BasePlan?, - base_plan_id: String?, - created_at: Time, - currency: String, - default_invoice_memo: String?, - description: String, - discount: Orb::Models::discount?, - external_plan_id: String?, - invoicing_currency: String, - maximum: Orb::Models::Plan::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Plan::Minimum?, - minimum_amount: String?, - name: String, - net_terms: Integer?, - plan_phases: ::Array[Orb::Models::Plan::PlanPhase]?, - prices: ::Array[Orb::Models::price], - product: Orb::Models::Plan::Product, - status: Orb::Models::Plan::status, - trial_config: Orb::Models::Plan::TrialConfig, - version: Integer - ) -> void - | (?Orb::Models::plan | Orb::BaseModel data) -> void + def initialize: ( + id: String, + adjustments: ::Array[Orb::Models::Plan::adjustment], + base_plan: Orb::Models::Plan::BasePlan?, + base_plan_id: String?, + created_at: Time, + currency: String, + default_invoice_memo: String?, + description: String, + discount: Orb::Models::discount?, + external_plan_id: String?, + invoicing_currency: String, + maximum: Orb::Models::Plan::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Plan::Minimum?, + minimum_amount: String?, + name: String, + net_terms: Integer?, + plan_phases: ::Array[Orb::Models::Plan::PlanPhase]?, + prices: ::Array[Orb::Models::price], + product: Orb::Models::Plan::Product, + status: Orb::Models::Plan::status, + trial_config: Orb::Models::Plan::TrialConfig, + version: Integer + ) -> void def to_hash: -> Orb::Models::plan @@ -115,7 +113,9 @@ module Orb | Orb::Models::Plan::Adjustment::PlanPhaseMinimumAdjustment | Orb::Models::Plan::Adjustment::PlanPhaseMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type plan_phase_usage_discount_adjustment = { id: String, @@ -142,20 +142,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::Plan::Adjustment::plan_phase_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::Plan::Adjustment::plan_phase_usage_discount_adjustment end @@ -186,20 +181,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::Plan::Adjustment::plan_phase_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::Plan::Adjustment::plan_phase_amount_discount_adjustment end @@ -230,20 +220,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::Plan::Adjustment::plan_phase_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::Plan::Adjustment::plan_phase_percentage_discount_adjustment end @@ -277,21 +262,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::Plan::Adjustment::plan_phase_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::Plan::Adjustment::plan_phase_minimum_adjustment end @@ -322,25 +302,20 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::Plan::Adjustment::plan_phase_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::Plan::Adjustment::plan_phase_maximum_adjustment end - def self.variants: -> [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] + def self?.variants: -> [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 type base_plan = { id: String?, external_plan_id: String?, name: String? } @@ -352,9 +327,11 @@ module Orb attr_accessor name: String? - def initialize: - (id: String?, external_plan_id: String?, name: String?) -> void - | (?Orb::Models::Plan::base_plan | Orb::BaseModel data) -> void + def initialize: ( + id: String?, + external_plan_id: String?, + name: String? + ) -> void def to_hash: -> Orb::Models::Plan::base_plan end @@ -367,12 +344,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | (?Orb::Models::Plan::maximum | Orb::BaseModel data) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Plan::maximum end @@ -385,12 +360,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | (?Orb::Models::Plan::minimum | Orb::BaseModel data) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Plan::minimum end @@ -433,35 +406,35 @@ module Orb attr_accessor order: Integer - def initialize: - ( - id: String, - description: String?, - discount: Orb::Models::discount?, - duration: Integer?, - duration_unit: Orb::Models::Plan::PlanPhase::duration_unit?, - maximum: Orb::Models::Plan::PlanPhase::Maximum?, - maximum_amount: String?, - minimum: Orb::Models::Plan::PlanPhase::Minimum?, - minimum_amount: String?, - name: String, - order: Integer - ) -> void - | (?Orb::Models::Plan::plan_phase | Orb::BaseModel data) -> void + def initialize: ( + id: String, + description: String?, + discount: Orb::Models::discount?, + duration: Integer?, + duration_unit: Orb::Models::Plan::PlanPhase::duration_unit?, + maximum: Orb::Models::Plan::PlanPhase::Maximum?, + maximum_amount: String?, + minimum: Orb::Models::Plan::PlanPhase::Minimum?, + minimum_amount: String?, + name: String, + order: Integer + ) -> void def to_hash: -> Orb::Models::Plan::plan_phase type duration_unit = :daily | :monthly | :quarterly | :semi_annual | :annual - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAILY: :daily MONTHLY: :monthly QUARTERLY: :quarterly SEMI_ANNUAL: :semi_annual ANNUAL: :annual - def self.values: -> ::Array[Orb::Models::Plan::PlanPhase::duration_unit] + def self?.values: -> ::Array[Orb::Models::Plan::PlanPhase::duration_unit] end type maximum = @@ -472,14 +445,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Plan::PlanPhase::maximum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Plan::PlanPhase::maximum end @@ -492,14 +461,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Plan::PlanPhase::minimum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Plan::PlanPhase::minimum end @@ -514,21 +479,21 @@ module Orb attr_accessor name: String - def initialize: - (id: String, created_at: Time, name: String) -> void - | (?Orb::Models::Plan::product | Orb::BaseModel data) -> void + def initialize: (id: String, created_at: Time, name: String) -> void def to_hash: -> Orb::Models::Plan::product end type status = :active | :archived | :draft - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ARCHIVED: :archived DRAFT: :draft - def self.values: -> ::Array[Orb::Models::Plan::status] + def self?.values: -> ::Array[Orb::Models::Plan::status] end type trial_config = @@ -542,21 +507,21 @@ module Orb attr_accessor trial_period_unit: Orb::Models::Plan::TrialConfig::trial_period_unit - def initialize: - ( - trial_period: Integer?, - trial_period_unit: Orb::Models::Plan::TrialConfig::trial_period_unit - ) -> void - | (?Orb::Models::Plan::trial_config | Orb::BaseModel data) -> void + def initialize: ( + trial_period: Integer?, + trial_period_unit: Orb::Models::Plan::TrialConfig::trial_period_unit + ) -> void def to_hash: -> Orb::Models::Plan::trial_config type trial_period_unit = :days - class TrialPeriodUnit < Orb::Enum + module TrialPeriodUnit + extend Orb::Enum + DAYS: :days - def self.values: -> ::Array[Orb::Models::Plan::TrialConfig::trial_period_unit] + def self?.values: -> ::Array[Orb::Models::Plan::TrialConfig::trial_period_unit] end end end diff --git a/sig/orb/models/plan_create_params.rbs b/sig/orb/models/plan_create_params.rbs index 05220558..6bae5799 100644 --- a/sig/orb/models/plan_create_params.rbs +++ b/sig/orb/models/plan_create_params.rbs @@ -37,19 +37,17 @@ module Orb Orb::Models::PlanCreateParams::status ) -> Orb::Models::PlanCreateParams::status - def initialize: - ( - currency: String, - name: String, - prices: ::Array[Orb::Models::PlanCreateParams::price], - default_invoice_memo: String?, - external_plan_id: String?, - metadata: ::Hash[Symbol, String?]?, - net_terms: Integer?, - status: Orb::Models::PlanCreateParams::status, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::plan_create_params | Orb::BaseModel data) -> void + def initialize: ( + currency: String, + name: String, + prices: ::Array[Orb::Models::PlanCreateParams::price], + ?default_invoice_memo: String?, + ?external_plan_id: String?, + ?metadata: ::Hash[Symbol, String?]?, + ?net_terms: Integer?, + ?status: Orb::Models::PlanCreateParams::status, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::plan_create_params @@ -80,7 +78,9 @@ module Orb | Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice | Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice - class Price < Orb::Union + module Price + extend Orb::Union + type new_plan_unit_price = { cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::cadence, @@ -131,35 +131,32 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::cadence, - item_id: String, - name: String, - unit_config: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_unit_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::cadence, + item_id: String, + name: String, + unit_config: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::UnitConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_unit_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -167,7 +164,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::cadence] end type unit_config = { unit_amount: String } @@ -175,12 +172,7 @@ module Orb class UnitConfig < Orb::BaseModel attr_accessor unit_amount: String - def initialize: - (unit_amount: String) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::unit_config - | Orb::BaseModel data - ) -> void + def initialize: (unit_amount: String) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::unit_config end @@ -196,25 +188,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::BillingCycleConfiguration::duration_unit] end end @@ -229,25 +218,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -302,35 +288,32 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::cadence, - item_id: String, - name: String, - package_config: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :package - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::cadence, + item_id: String, + name: String, + package_config: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::PackageConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :package + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_package_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -338,7 +321,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::cadence] end type package_config = @@ -349,12 +332,10 @@ module Orb attr_accessor package_size: Integer - def initialize: - (package_amount: String, package_size: Integer) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::package_config - | Orb::BaseModel data - ) -> void + def initialize: ( + package_amount: String, + package_size: Integer + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::package_config end @@ -370,25 +351,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -403,25 +381,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -476,35 +451,32 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::cadence, - item_id: String, - matrix_config: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :matrix - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_matrix_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::cadence, + item_id: String, + matrix_config: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :matrix + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_matrix_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -512,7 +484,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::cadence] end type matrix_config = @@ -529,16 +501,11 @@ module Orb attr_accessor matrix_values: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue] - def initialize: - ( - default_unit_amount: String, - dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue] - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::matrix_config - | Orb::BaseModel data - ) -> void + def initialize: ( + default_unit_amount: String, + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::MatrixValue] + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::matrix_config @@ -550,15 +517,10 @@ module Orb attr_accessor unit_amount: String - def initialize: - ( - dimension_values: ::Array[String?], - unit_amount: String - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::matrix_value - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String?], + unit_amount: String + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::MatrixConfig::matrix_value end @@ -575,25 +537,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::BillingCycleConfiguration::duration_unit] end end @@ -608,25 +567,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -681,35 +637,32 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::cadence, - item_id: String, - name: String, - tiered_config: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :tiered - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_tiered_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::cadence, + item_id: String, + name: String, + tiered_config: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :tiered + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_tiered_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -717,7 +670,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::cadence] end type tiered_config = @@ -728,14 +681,9 @@ module Orb class TieredConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier] - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::tiered_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::Tier] + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::tiered_config @@ -749,16 +697,11 @@ module Orb attr_accessor last_unit: Float? - def initialize: - ( - first_unit: Float, - unit_amount: String, - last_unit: Float? - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + first_unit: Float, + unit_amount: String, + ?last_unit: Float? + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::TieredConfig::tier end @@ -775,25 +718,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::BillingCycleConfiguration::duration_unit] end end @@ -808,25 +748,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -881,35 +818,32 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::cadence, - item_id: String, - name: String, - tiered_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :tiered_bps - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_tiered_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::cadence, + item_id: String, + name: String, + tiered_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :tiered_bps + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_tiered_bps_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -917,7 +851,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::cadence] end type tiered_bps_config = @@ -928,14 +862,9 @@ module Orb class TieredBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::tiered_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::tiered_bps_config @@ -956,17 +885,12 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - minimum_amount: String, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + minimum_amount: String, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::TieredBpsConfig::tier end @@ -983,25 +907,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1016,25 +937,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1089,28 +1007,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig, - cadence: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :bps - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BpsConfig, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :bps + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_bps_price @@ -1121,12 +1034,7 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - (bps: Float, per_unit_maximum: String?) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::bps_config - | Orb::BaseModel data - ) -> void + def initialize: (bps: Float, ?per_unit_maximum: String?) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::bps_config end @@ -1134,7 +1042,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1142,7 +1052,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::cadence] end type billing_cycle_configuration = @@ -1156,25 +1066,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1189,25 +1096,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1262,28 +1166,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - bulk_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig, - cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :bulk_bps - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_bulk_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_bps_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :bulk_bps + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_bulk_bps_price @@ -1295,14 +1194,9 @@ module Orb class BulkBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::bulk_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::bulk_bps_config @@ -1316,16 +1210,11 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BulkBpsConfig::tier end @@ -1334,7 +1223,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1342,7 +1233,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::cadence] end type billing_cycle_configuration = @@ -1356,25 +1247,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1389,25 +1277,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1462,28 +1347,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - bulk_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig, - cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :bulk - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_bulk_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_config: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig, + cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :bulk + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_bulk_price @@ -1495,14 +1375,9 @@ module Orb class BulkConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier] - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::bulk_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::Tier] + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::bulk_config @@ -1513,12 +1388,10 @@ module Orb attr_accessor maximum_units: Float? - def initialize: - (unit_amount: String, maximum_units: Float?) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + unit_amount: String, + ?maximum_units: Float? + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BulkConfig::tier end @@ -1527,7 +1400,9 @@ module Orb type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1535,7 +1410,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::cadence] end type billing_cycle_configuration = @@ -1549,25 +1424,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -1582,25 +1454,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1655,35 +1524,32 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::cadence, - item_id: String, - name: String, - threshold_total_amount_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :threshold_total_amount - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_threshold_total_amount_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::cadence, + item_id: String, + name: String, + threshold_total_amount_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :threshold_total_amount + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_threshold_total_amount_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1691,7 +1557,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::cadence] end type billing_cycle_configuration = @@ -1705,25 +1571,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] end end @@ -1738,25 +1601,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1811,35 +1671,32 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::cadence, - item_id: String, - name: String, - tiered_package_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :tiered_package - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::cadence, + item_id: String, + name: String, + tiered_package_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :tiered_package + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_tiered_package_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1847,7 +1704,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -1861,25 +1718,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -1894,25 +1748,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1967,35 +1818,32 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::cadence, - item_id: String, - name: String, - tiered_with_minimum_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :tiered_with_minimum - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_tiered_with_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::cadence, + item_id: String, + name: String, + tiered_with_minimum_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :tiered_with_minimum + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_tiered_with_minimum_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2003,7 +1851,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::cadence] end type billing_cycle_configuration = @@ -2017,25 +1865,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -2050,25 +1895,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2123,35 +1965,32 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::cadence, - item_id: String, - name: String, - unit_with_percent_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :unit_with_percent - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_unit_with_percent_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::cadence, + item_id: String, + name: String, + unit_with_percent_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :unit_with_percent + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_unit_with_percent_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2159,7 +1998,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::cadence] end type billing_cycle_configuration = @@ -2173,25 +2012,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] end end @@ -2206,25 +2042,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2279,35 +2112,32 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::cadence, - item_id: String, - name: String, - package_with_allocation_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :package_with_allocation - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_package_with_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::cadence, + item_id: String, + name: String, + package_with_allocation_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :package_with_allocation + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_package_with_allocation_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2315,7 +2145,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::cadence] end type billing_cycle_configuration = @@ -2329,25 +2159,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -2362,25 +2189,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2435,35 +2259,32 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::cadence, - item_id: String, - name: String, - tiered_with_proration_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :tiered_with_proration - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_tier_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::cadence, + item_id: String, + name: String, + tiered_with_proration_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :tiered_with_proration + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_tier_with_proration_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2471,7 +2292,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -2485,25 +2306,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -2518,25 +2336,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2591,35 +2406,32 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::cadence, - item_id: String, - name: String, - unit_with_proration_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :unit_with_proration - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_unit_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::cadence, + item_id: String, + name: String, + unit_with_proration_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :unit_with_proration + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_unit_with_proration_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2627,7 +2439,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -2641,25 +2453,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -2674,25 +2483,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2747,35 +2553,32 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::cadence, - grouped_allocation_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :grouped_allocation - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_grouped_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::cadence, + grouped_allocation_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :grouped_allocation + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_grouped_allocation_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2783,7 +2586,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::cadence] end type billing_cycle_configuration = @@ -2797,25 +2600,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -2830,25 +2630,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2903,35 +2700,32 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::cadence, - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :grouped_with_prorated_minimum - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_grouped_with_prorated_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::cadence, + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :grouped_with_prorated_minimum + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_grouped_with_prorated_minimum_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2939,7 +2733,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::cadence] end type billing_cycle_configuration = @@ -2953,25 +2747,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -2986,25 +2777,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3059,35 +2847,32 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::cadence, - grouped_with_metered_minimum_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :grouped_with_metered_minimum - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_grouped_with_metered_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::cadence, + grouped_with_metered_minimum_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :grouped_with_metered_minimum + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_grouped_with_metered_minimum_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3095,7 +2880,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::cadence] end type billing_cycle_configuration = @@ -3109,25 +2894,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -3142,25 +2924,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3215,35 +2994,32 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::cadence, - item_id: String, - matrix_with_display_name_config: ::Hash[Symbol, top], - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :matrix_with_display_name - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_matrix_with_display_name_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::cadence, + item_id: String, + matrix_with_display_name_config: ::Hash[Symbol, top], + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :matrix_with_display_name + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_matrix_with_display_name_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3251,7 +3027,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::cadence] end type billing_cycle_configuration = @@ -3265,25 +3041,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] end end @@ -3298,25 +3071,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3371,35 +3141,32 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :bulk_with_proration - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_bulk_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_with_proration_config: ::Hash[Symbol, top], + cadence: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :bulk_with_proration + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_bulk_with_proration_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3407,7 +3174,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -3421,25 +3188,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3454,25 +3218,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3527,35 +3288,32 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::cadence, - grouped_tiered_package_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :grouped_tiered_package - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_grouped_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::cadence, + grouped_tiered_package_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :grouped_tiered_package + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_grouped_tiered_package_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3563,7 +3321,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -3577,25 +3335,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -3610,25 +3365,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3683,35 +3435,32 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::cadence, - item_id: String, - max_group_tiered_package_config: ::Hash[Symbol, top], - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :max_group_tiered_package - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_max_group_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::cadence, + item_id: String, + max_group_tiered_package_config: ::Hash[Symbol, top], + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :max_group_tiered_package + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_max_group_tiered_package_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3719,7 +3468,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -3733,25 +3482,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -3766,25 +3512,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3839,35 +3582,32 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::cadence, - item_id: String, - name: String, - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :scalable_matrix_with_unit_pricing - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_scalable_matrix_with_unit_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::cadence, + item_id: String, + name: String, + scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :scalable_matrix_with_unit_pricing + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_scalable_matrix_with_unit_pricing_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3875,7 +3615,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::cadence] end type billing_cycle_configuration = @@ -3889,25 +3629,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -3922,25 +3659,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3995,35 +3729,32 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::cadence, - item_id: String, - name: String, - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :scalable_matrix_with_tiered_pricing - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_scalable_matrix_with_tiered_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::cadence, + item_id: String, + name: String, + scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :scalable_matrix_with_tiered_pricing + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_scalable_matrix_with_tiered_pricing_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4031,7 +3762,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::cadence] end type billing_cycle_configuration = @@ -4045,25 +3776,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -4078,25 +3806,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4151,35 +3876,32 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::cadence, - cumulative_grouped_bulk_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :cumulative_grouped_bulk - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::new_plan_cumulative_grouped_bulk_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::cadence, + cumulative_grouped_bulk_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :cumulative_grouped_bulk + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::new_plan_cumulative_grouped_bulk_price type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4187,7 +3909,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::cadence] end type billing_cycle_configuration = @@ -4201,25 +3923,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -4234,39 +3953,38 @@ module Orb attr_accessor duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::NewPlanCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end - def self.variants: -> [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] + def self?.variants: -> [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 type status = :active | :draft - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active DRAFT: :draft - def self.values: -> ::Array[Orb::Models::PlanCreateParams::status] + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::status] end end end diff --git a/sig/orb/models/plan_fetch_params.rbs b/sig/orb/models/plan_fetch_params.rbs index f7936936..1354f0de 100644 --- a/sig/orb/models/plan_fetch_params.rbs +++ b/sig/orb/models/plan_fetch_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::plan_fetch_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::plan_fetch_params end diff --git a/sig/orb/models/plan_list_params.rbs b/sig/orb/models/plan_list_params.rbs index f5d7b23e..9f23fe3f 100644 --- a/sig/orb/models/plan_list_params.rbs +++ b/sig/orb/models/plan_list_params.rbs @@ -36,29 +36,29 @@ module Orb Orb::Models::PlanListParams::status ) -> Orb::Models::PlanListParams::status - def initialize: - ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - cursor: String?, - limit: Integer, - status: Orb::Models::PlanListParams::status, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::plan_list_params | Orb::BaseModel data) -> void + def initialize: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?cursor: String?, + ?limit: Integer, + ?status: Orb::Models::PlanListParams::status, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::plan_list_params type status = :active | :archived | :draft - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ARCHIVED: :archived DRAFT: :draft - def self.values: -> ::Array[Orb::Models::PlanListParams::status] + def self?.values: -> ::Array[Orb::Models::PlanListParams::status] end end end diff --git a/sig/orb/models/plan_update_params.rbs b/sig/orb/models/plan_update_params.rbs index 0e7a5172..51ac1488 100644 --- a/sig/orb/models/plan_update_params.rbs +++ b/sig/orb/models/plan_update_params.rbs @@ -12,13 +12,11 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - external_plan_id: String?, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::plan_update_params | Orb::BaseModel data) -> void + def initialize: ( + ?external_plan_id: String?, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::plan_update_params end diff --git a/sig/orb/models/plans/external_plan_id_fetch_params.rbs b/sig/orb/models/plans/external_plan_id_fetch_params.rbs index 8f0b52a6..e7c555e3 100644 --- a/sig/orb/models/plans/external_plan_id_fetch_params.rbs +++ b/sig/orb/models/plans/external_plan_id_fetch_params.rbs @@ -7,12 +7,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::Plans::external_plan_id_fetch_params - | Orb::BaseModel data - ) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::Plans::external_plan_id_fetch_params end diff --git a/sig/orb/models/plans/external_plan_id_update_params.rbs b/sig/orb/models/plans/external_plan_id_update_params.rbs index 9ea9e594..2fb1db25 100644 --- a/sig/orb/models/plans/external_plan_id_update_params.rbs +++ b/sig/orb/models/plans/external_plan_id_update_params.rbs @@ -13,16 +13,11 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - external_plan_id: String?, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Plans::external_plan_id_update_params - | Orb::BaseModel data - ) -> void + def initialize: ( + ?external_plan_id: String?, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Plans::external_plan_id_update_params end diff --git a/sig/orb/models/price.rbs b/sig/orb/models/price.rbs index 5e3ff29c..d6fb1921 100644 --- a/sig/orb/models/price.rbs +++ b/sig/orb/models/price.rbs @@ -30,7 +30,9 @@ module Orb | Orb::Models::Price::ScalableMatrixWithTieredPricingPrice | Orb::Models::Price::CumulativeGroupedBulkPrice - class Price < Orb::Union + module Price + extend Orb::Union + type unit_price = { id: String, @@ -108,34 +110,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::UnitPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::UnitPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::UnitPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::UnitPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::UnitPrice::Item, - maximum: Orb::Models::Price::UnitPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::UnitPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::UnitPrice::price_type, - unit_config: Orb::Models::Price::UnitPrice::UnitConfig, - dimensional_price_configuration: Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration?, - model_type: :unit - ) -> void - | (?Orb::Models::Price::unit_price | Orb::BaseModel data) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::UnitPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::UnitPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::UnitPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::UnitPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::UnitPrice::Item, + maximum: Orb::Models::Price::UnitPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::UnitPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::UnitPrice::price_type, + unit_config: Orb::Models::Price::UnitPrice::UnitConfig, + ?dimensional_price_configuration: Orb::Models::Price::UnitPrice::DimensionalPriceConfiguration?, + ?model_type: :unit + ) -> void def to_hash: -> Orb::Models::Price::unit_price @@ -144,12 +144,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::UnitPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::UnitPrice::billable_metric end @@ -165,32 +160,31 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::UnitPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::UnitPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::UnitPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::UnitPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::UnitPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::UnitPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::UnitPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -198,7 +192,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::UnitPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::UnitPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -208,12 +202,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::UnitPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::UnitPrice::credit_allocation end @@ -229,25 +218,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::UnitPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::UnitPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::UnitPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -258,11 +244,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::UnitPrice::item | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::UnitPrice::item end @@ -275,14 +257,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::UnitPrice::maximum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::UnitPrice::maximum end @@ -295,25 +273,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::UnitPrice::minimum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::UnitPrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::UnitPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::UnitPrice::price_type] end type unit_config = { unit_amount: String } @@ -321,11 +297,7 @@ module Orb class UnitConfig < Orb::BaseModel attr_accessor unit_amount: String - def initialize: - (unit_amount: String) -> void - | ( - ?Orb::Models::Price::UnitPrice::unit_config | Orb::BaseModel data - ) -> void + def initialize: (unit_amount: String) -> void def to_hash: -> Orb::Models::Price::UnitPrice::unit_config end @@ -341,15 +313,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::UnitPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::UnitPrice::dimensional_price_configuration end @@ -432,34 +399,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::PackagePrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::PackagePrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::PackagePrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::PackagePrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::PackagePrice::Item, - maximum: Orb::Models::Price::PackagePrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::PackagePrice::Minimum?, - minimum_amount: String?, - name: String, - package_config: Orb::Models::Price::PackagePrice::PackageConfig, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::PackagePrice::price_type, - dimensional_price_configuration: Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration?, - model_type: :package - ) -> void - | (?Orb::Models::Price::package_price | Orb::BaseModel data) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::PackagePrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::PackagePrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::PackagePrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::PackagePrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::PackagePrice::Item, + maximum: Orb::Models::Price::PackagePrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::PackagePrice::Minimum?, + minimum_amount: String?, + name: String, + package_config: Orb::Models::Price::PackagePrice::PackageConfig, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::PackagePrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::PackagePrice::DimensionalPriceConfiguration?, + ?model_type: :package + ) -> void def to_hash: -> Orb::Models::Price::package_price @@ -468,12 +433,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::PackagePrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::PackagePrice::billable_metric end @@ -489,32 +449,31 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::PackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::PackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::PackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::PackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::PackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::PackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::PackagePrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -522,7 +481,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::PackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::PackagePrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -532,12 +491,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::PackagePrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::PackagePrice::credit_allocation end @@ -553,25 +507,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::PackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::PackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::PackagePrice::InvoicingCycleConfiguration::duration_unit] end end @@ -582,11 +533,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::PackagePrice::item | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::PackagePrice::item end @@ -599,14 +546,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::PackagePrice::maximum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::PackagePrice::maximum end @@ -619,14 +562,10 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::PackagePrice::minimum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::PackagePrice::minimum end @@ -638,23 +577,23 @@ module Orb attr_accessor package_size: Integer - def initialize: - (package_amount: String, package_size: Integer) -> void - | ( - ?Orb::Models::Price::PackagePrice::package_config - | Orb::BaseModel data - ) -> void + def initialize: ( + package_amount: String, + package_size: Integer + ) -> void def to_hash: -> Orb::Models::Price::PackagePrice::package_config end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::PackagePrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::PackagePrice::price_type] end type dimensional_price_configuration = @@ -668,15 +607,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::PackagePrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::PackagePrice::dimensional_price_configuration end @@ -759,34 +693,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::MatrixPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::MatrixPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::MatrixPrice::Item, - matrix_config: Orb::Models::Price::MatrixPrice::MatrixConfig, - maximum: Orb::Models::Price::MatrixPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::MatrixPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::MatrixPrice::price_type, - dimensional_price_configuration: Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration?, - model_type: :matrix - ) -> void - | (?Orb::Models::Price::matrix_price | Orb::BaseModel data) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::MatrixPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::MatrixPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::MatrixPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::MatrixPrice::Item, + matrix_config: Orb::Models::Price::MatrixPrice::MatrixConfig, + maximum: Orb::Models::Price::MatrixPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::MatrixPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::MatrixPrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::MatrixPrice::DimensionalPriceConfiguration?, + ?model_type: :matrix + ) -> void def to_hash: -> Orb::Models::Price::matrix_price @@ -795,12 +727,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::MatrixPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::MatrixPrice::billable_metric end @@ -816,32 +743,31 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::MatrixPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::MatrixPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::MatrixPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -849,7 +775,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::MatrixPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::MatrixPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -859,12 +785,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::MatrixPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::MatrixPrice::credit_allocation end @@ -880,25 +801,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::MatrixPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::MatrixPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::MatrixPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -909,11 +827,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::MatrixPrice::item | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::MatrixPrice::item end @@ -932,16 +846,11 @@ module Orb attr_accessor matrix_values: ::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue] - def initialize: - ( - default_unit_amount: String, - dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue] - ) -> void - | ( - ?Orb::Models::Price::MatrixPrice::matrix_config - | Orb::BaseModel data - ) -> void + def initialize: ( + default_unit_amount: String, + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::Price::MatrixPrice::MatrixConfig::MatrixValue] + ) -> void def to_hash: -> Orb::Models::Price::MatrixPrice::matrix_config @@ -953,12 +862,10 @@ module Orb attr_accessor unit_amount: String - def initialize: - (dimension_values: ::Array[String?], unit_amount: String) -> void - | ( - ?Orb::Models::Price::MatrixPrice::MatrixConfig::matrix_value - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String?], + unit_amount: String + ) -> void def to_hash: -> Orb::Models::Price::MatrixPrice::MatrixConfig::matrix_value end @@ -972,14 +879,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::MatrixPrice::maximum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::MatrixPrice::maximum end @@ -992,25 +895,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::MatrixPrice::minimum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::MatrixPrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::MatrixPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::MatrixPrice::price_type] end type dimensional_price_configuration = @@ -1024,15 +925,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::MatrixPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::MatrixPrice::dimensional_price_configuration end @@ -1115,34 +1011,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::TieredPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::TieredPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::TieredPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::TieredPrice::Item, - maximum: Orb::Models::Price::TieredPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::TieredPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredPrice::price_type, - tiered_config: Orb::Models::Price::TieredPrice::TieredConfig, - dimensional_price_configuration: Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration?, - model_type: :tiered - ) -> void - | (?Orb::Models::Price::tiered_price | Orb::BaseModel data) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::TieredPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::TieredPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::TieredPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::TieredPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::TieredPrice::Item, + maximum: Orb::Models::Price::TieredPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::TieredPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::TieredPrice::price_type, + tiered_config: Orb::Models::Price::TieredPrice::TieredConfig, + ?dimensional_price_configuration: Orb::Models::Price::TieredPrice::DimensionalPriceConfiguration?, + ?model_type: :tiered + ) -> void def to_hash: -> Orb::Models::Price::tiered_price @@ -1151,12 +1045,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::TieredPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::TieredPrice::billable_metric end @@ -1172,32 +1061,31 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::TieredPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::TieredPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::TieredPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::TieredPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::TieredPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::TieredPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::TieredPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -1205,7 +1093,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::TieredPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::TieredPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -1215,12 +1103,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::TieredPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::TieredPrice::credit_allocation end @@ -1236,25 +1119,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::TieredPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::TieredPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::TieredPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -1265,11 +1145,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::TieredPrice::item | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::TieredPrice::item end @@ -1282,14 +1158,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::TieredPrice::maximum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::TieredPrice::maximum end @@ -1302,25 +1174,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::TieredPrice::minimum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::TieredPrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::TieredPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::TieredPrice::price_type] end type tiered_config = @@ -1331,14 +1201,9 @@ module Orb class TieredConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier] - ) -> void - | ( - ?Orb::Models::Price::TieredPrice::tiered_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::Price::TieredPrice::TieredConfig::Tier] + ) -> void def to_hash: -> Orb::Models::Price::TieredPrice::tiered_config @@ -1352,16 +1217,11 @@ module Orb attr_accessor last_unit: Float? - def initialize: - ( - first_unit: Float, - unit_amount: String, - last_unit: Float? - ) -> void - | ( - ?Orb::Models::Price::TieredPrice::TieredConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + first_unit: Float, + unit_amount: String, + ?last_unit: Float? + ) -> void def to_hash: -> Orb::Models::Price::TieredPrice::TieredConfig::tier end @@ -1378,15 +1238,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::TieredPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::TieredPrice::dimensional_price_configuration end @@ -1469,36 +1324,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::TieredBpsPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredBpsPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::TieredBpsPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::TieredBpsPrice::Item, - maximum: Orb::Models::Price::TieredBpsPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::TieredBpsPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredBpsPrice::price_type, - tiered_bps_config: Orb::Models::Price::TieredBpsPrice::TieredBpsConfig, - dimensional_price_configuration: Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration?, - model_type: :tiered_bps - ) -> void - | ( - ?Orb::Models::Price::tiered_bps_price | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::TieredBpsPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::TieredBpsPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::TieredBpsPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::TieredBpsPrice::Item, + maximum: Orb::Models::Price::TieredBpsPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::TieredBpsPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::TieredBpsPrice::price_type, + tiered_bps_config: Orb::Models::Price::TieredBpsPrice::TieredBpsConfig, + ?dimensional_price_configuration: Orb::Models::Price::TieredBpsPrice::DimensionalPriceConfiguration?, + ?model_type: :tiered_bps + ) -> void def to_hash: -> Orb::Models::Price::tiered_bps_price @@ -1507,12 +1358,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::TieredBpsPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::TieredBpsPrice::billable_metric end @@ -1528,32 +1374,31 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::TieredBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::TieredBpsPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::TieredBpsPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -1561,7 +1406,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::TieredBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::TieredBpsPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -1571,12 +1416,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::TieredBpsPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::TieredBpsPrice::credit_allocation end @@ -1592,25 +1432,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::TieredBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::TieredBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::TieredBpsPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -1621,11 +1458,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::TieredBpsPrice::item | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::TieredBpsPrice::item end @@ -1638,14 +1471,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::TieredBpsPrice::maximum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::TieredBpsPrice::maximum end @@ -1658,25 +1487,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::TieredBpsPrice::minimum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::TieredBpsPrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::TieredBpsPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::TieredBpsPrice::price_type] end type tiered_bps_config = @@ -1687,14 +1514,9 @@ module Orb class TieredBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::Price::TieredBpsPrice::tiered_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::Price::TieredBpsPrice::tiered_bps_config @@ -1715,17 +1537,12 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - minimum_amount: String, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + minimum_amount: String, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::Price::TieredBpsPrice::TieredBpsConfig::tier end @@ -1742,15 +1559,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::TieredBpsPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::TieredBpsPrice::dimensional_price_configuration end @@ -1833,34 +1645,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::BpsPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::BpsPrice::BillingCycleConfiguration, - bps_config: Orb::Models::Price::BpsPrice::BpsConfig, - cadence: Orb::Models::Price::BpsPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::BpsPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::BpsPrice::Item, - maximum: Orb::Models::Price::BpsPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::BpsPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::BpsPrice::price_type, - dimensional_price_configuration: Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration?, - model_type: :bps - ) -> void - | (?Orb::Models::Price::bps_price | Orb::BaseModel data) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::BpsPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::BpsPrice::BillingCycleConfiguration, + bps_config: Orb::Models::Price::BpsPrice::BpsConfig, + cadence: Orb::Models::Price::BpsPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::BpsPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::BpsPrice::Item, + maximum: Orb::Models::Price::BpsPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::BpsPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::BpsPrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::BpsPrice::DimensionalPriceConfiguration?, + ?model_type: :bps + ) -> void def to_hash: -> Orb::Models::Price::bps_price @@ -1869,12 +1679,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::BpsPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::BpsPrice::billable_metric end @@ -1890,25 +1695,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::BpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::BpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::BpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::BpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::BpsPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::BpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::BpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1919,11 +1721,7 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - (bps: Float, per_unit_maximum: String?) -> void - | ( - ?Orb::Models::Price::BpsPrice::bps_config | Orb::BaseModel data - ) -> void + def initialize: (bps: Float, ?per_unit_maximum: String?) -> void def to_hash: -> Orb::Models::Price::BpsPrice::bps_config end @@ -1931,7 +1729,9 @@ module Orb type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -1939,7 +1739,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::BpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::BpsPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -1949,12 +1749,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::BpsPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::BpsPrice::credit_allocation end @@ -1970,25 +1765,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::BpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::BpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::BpsPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -1999,11 +1791,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::BpsPrice::item | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::BpsPrice::item end @@ -2016,14 +1804,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::BpsPrice::maximum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::BpsPrice::maximum end @@ -2036,25 +1820,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::BpsPrice::minimum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::BpsPrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::BpsPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::BpsPrice::price_type] end type dimensional_price_configuration = @@ -2068,15 +1850,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::BpsPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::BpsPrice::dimensional_price_configuration end @@ -2159,34 +1936,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::BulkBpsPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration, - bulk_bps_config: Orb::Models::Price::BulkBpsPrice::BulkBpsConfig, - cadence: Orb::Models::Price::BulkBpsPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::BulkBpsPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::BulkBpsPrice::Item, - maximum: Orb::Models::Price::BulkBpsPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::BulkBpsPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::BulkBpsPrice::price_type, - dimensional_price_configuration: Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration?, - model_type: :bulk_bps - ) -> void - | (?Orb::Models::Price::bulk_bps_price | Orb::BaseModel data) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::BulkBpsPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration, + bulk_bps_config: Orb::Models::Price::BulkBpsPrice::BulkBpsConfig, + cadence: Orb::Models::Price::BulkBpsPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::BulkBpsPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::BulkBpsPrice::Item, + maximum: Orb::Models::Price::BulkBpsPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::BulkBpsPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::BulkBpsPrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::BulkBpsPrice::DimensionalPriceConfiguration?, + ?model_type: :bulk_bps + ) -> void def to_hash: -> Orb::Models::Price::bulk_bps_price @@ -2195,12 +1970,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::BulkBpsPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::BulkBpsPrice::billable_metric end @@ -2216,25 +1986,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::BulkBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::BulkBpsPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::BulkBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -2246,14 +2013,9 @@ module Orb class BulkBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::Price::BulkBpsPrice::bulk_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::Price::BulkBpsPrice::bulk_bps_config @@ -2267,16 +2029,11 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::Price::BulkBpsPrice::BulkBpsConfig::tier end @@ -2285,7 +2042,9 @@ module Orb type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -2293,7 +2052,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::BulkBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::BulkBpsPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -2303,12 +2062,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::BulkBpsPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::BulkBpsPrice::credit_allocation end @@ -2324,25 +2078,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::BulkBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::BulkBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::BulkBpsPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -2353,11 +2104,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::BulkBpsPrice::item | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::BulkBpsPrice::item end @@ -2370,14 +2117,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::BulkBpsPrice::maximum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::BulkBpsPrice::maximum end @@ -2390,25 +2133,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::BulkBpsPrice::minimum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::BulkBpsPrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::BulkBpsPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::BulkBpsPrice::price_type] end type dimensional_price_configuration = @@ -2422,15 +2163,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::BulkBpsPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::BulkBpsPrice::dimensional_price_configuration end @@ -2513,34 +2249,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::BulkPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::BulkPrice::BillingCycleConfiguration, - bulk_config: Orb::Models::Price::BulkPrice::BulkConfig, - cadence: Orb::Models::Price::BulkPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::BulkPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::BulkPrice::Item, - maximum: Orb::Models::Price::BulkPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::BulkPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::BulkPrice::price_type, - dimensional_price_configuration: Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration?, - model_type: :bulk - ) -> void - | (?Orb::Models::Price::bulk_price | Orb::BaseModel data) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::BulkPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::BulkPrice::BillingCycleConfiguration, + bulk_config: Orb::Models::Price::BulkPrice::BulkConfig, + cadence: Orb::Models::Price::BulkPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::BulkPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::BulkPrice::Item, + maximum: Orb::Models::Price::BulkPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::BulkPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::BulkPrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::BulkPrice::DimensionalPriceConfiguration?, + ?model_type: :bulk + ) -> void def to_hash: -> Orb::Models::Price::bulk_price @@ -2549,12 +2283,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::BulkPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::BulkPrice::billable_metric end @@ -2570,25 +2299,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::BulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::BulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::BulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::BulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::BulkPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::BulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::BulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -2598,13 +2324,9 @@ module Orb class BulkConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier] - ) -> void - | ( - ?Orb::Models::Price::BulkPrice::bulk_config | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::Price::BulkPrice::BulkConfig::Tier] + ) -> void def to_hash: -> Orb::Models::Price::BulkPrice::bulk_config @@ -2615,12 +2337,10 @@ module Orb attr_accessor maximum_units: Float? - def initialize: - (unit_amount: String, maximum_units: Float?) -> void - | ( - ?Orb::Models::Price::BulkPrice::BulkConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + unit_amount: String, + ?maximum_units: Float? + ) -> void def to_hash: -> Orb::Models::Price::BulkPrice::BulkConfig::tier end @@ -2629,7 +2349,9 @@ module Orb type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -2637,7 +2359,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::BulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::BulkPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -2647,12 +2369,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::BulkPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::BulkPrice::credit_allocation end @@ -2668,25 +2385,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::BulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::BulkPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::BulkPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -2697,11 +2411,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::BulkPrice::item | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::BulkPrice::item end @@ -2714,14 +2424,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::BulkPrice::maximum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::BulkPrice::maximum end @@ -2734,25 +2440,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::BulkPrice::minimum | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::BulkPrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::BulkPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::BulkPrice::price_type] end type dimensional_price_configuration = @@ -2766,15 +2470,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::BulkPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::BulkPrice::dimensional_price_configuration end @@ -2857,37 +2556,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::ThresholdTotalAmountPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::ThresholdTotalAmountPrice::Item, - maximum: Orb::Models::Price::ThresholdTotalAmountPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::ThresholdTotalAmountPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::ThresholdTotalAmountPrice::price_type, - threshold_total_amount_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration?, - model_type: :threshold_total_amount - ) -> void - | ( - ?Orb::Models::Price::threshold_total_amount_price - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::ThresholdTotalAmountPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::ThresholdTotalAmountPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::ThresholdTotalAmountPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::ThresholdTotalAmountPrice::Item, + maximum: Orb::Models::Price::ThresholdTotalAmountPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::ThresholdTotalAmountPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::ThresholdTotalAmountPrice::price_type, + threshold_total_amount_config: ::Hash[Symbol, top], + ?dimensional_price_configuration: Orb::Models::Price::ThresholdTotalAmountPrice::DimensionalPriceConfiguration?, + ?model_type: :threshold_total_amount + ) -> void def to_hash: -> Orb::Models::Price::threshold_total_amount_price @@ -2896,12 +2590,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::ThresholdTotalAmountPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::ThresholdTotalAmountPrice::billable_metric end @@ -2917,32 +2606,31 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::ThresholdTotalAmountPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::ThresholdTotalAmountPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -2950,7 +2638,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmountPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmountPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -2960,12 +2648,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::ThresholdTotalAmountPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::ThresholdTotalAmountPrice::credit_allocation end @@ -2981,25 +2664,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::ThresholdTotalAmountPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::ThresholdTotalAmountPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -3010,12 +2690,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::ThresholdTotalAmountPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::ThresholdTotalAmountPrice::item end @@ -3028,15 +2703,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::ThresholdTotalAmountPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::ThresholdTotalAmountPrice::maximum end @@ -3049,26 +2719,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::ThresholdTotalAmountPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::ThresholdTotalAmountPrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmountPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmountPrice::price_type] end type dimensional_price_configuration = @@ -3082,15 +2749,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::ThresholdTotalAmountPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::ThresholdTotalAmountPrice::dimensional_price_configuration end @@ -3173,36 +2835,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::TieredPackagePrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredPackagePrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::TieredPackagePrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::TieredPackagePrice::Item, - maximum: Orb::Models::Price::TieredPackagePrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::TieredPackagePrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredPackagePrice::price_type, - tiered_package_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration?, - model_type: :tiered_package - ) -> void - | ( - ?Orb::Models::Price::tiered_package_price | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::TieredPackagePrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::TieredPackagePrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::TieredPackagePrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::TieredPackagePrice::Item, + maximum: Orb::Models::Price::TieredPackagePrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::TieredPackagePrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::TieredPackagePrice::price_type, + tiered_package_config: ::Hash[Symbol, top], + ?dimensional_price_configuration: Orb::Models::Price::TieredPackagePrice::DimensionalPriceConfiguration?, + ?model_type: :tiered_package + ) -> void def to_hash: -> Orb::Models::Price::tiered_package_price @@ -3211,12 +2869,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::TieredPackagePrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::TieredPackagePrice::billable_metric end @@ -3232,32 +2885,31 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::TieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::TieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::TieredPackagePrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -3265,7 +2917,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::TieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::TieredPackagePrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -3275,12 +2927,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::TieredPackagePrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::TieredPackagePrice::credit_allocation end @@ -3296,25 +2943,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::TieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::TieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::TieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end @@ -3325,12 +2969,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::TieredPackagePrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::TieredPackagePrice::item end @@ -3343,15 +2982,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::TieredPackagePrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::TieredPackagePrice::maximum end @@ -3364,26 +2998,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::TieredPackagePrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::TieredPackagePrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::TieredPackagePrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::TieredPackagePrice::price_type] end type dimensional_price_configuration = @@ -3397,15 +3028,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::TieredPackagePrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::TieredPackagePrice::dimensional_price_configuration end @@ -3488,36 +3114,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::GroupedTieredPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTieredPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::GroupedTieredPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - grouped_tiered_config: ::Hash[Symbol, top], - invoicing_cycle_configuration: Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::GroupedTieredPrice::Item, - maximum: Orb::Models::Price::GroupedTieredPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::GroupedTieredPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedTieredPrice::price_type, - dimensional_price_configuration: Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration?, - model_type: :grouped_tiered - ) -> void - | ( - ?Orb::Models::Price::grouped_tiered_price | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::GroupedTieredPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::GroupedTieredPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::GroupedTieredPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + grouped_tiered_config: ::Hash[Symbol, top], + invoicing_cycle_configuration: Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::GroupedTieredPrice::Item, + maximum: Orb::Models::Price::GroupedTieredPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::GroupedTieredPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::GroupedTieredPrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::GroupedTieredPrice::DimensionalPriceConfiguration?, + ?model_type: :grouped_tiered + ) -> void def to_hash: -> Orb::Models::Price::grouped_tiered_price @@ -3526,12 +3148,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::GroupedTieredPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPrice::billable_metric end @@ -3547,32 +3164,31 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::GroupedTieredPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -3580,7 +3196,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::GroupedTieredPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -3590,12 +3206,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::GroupedTieredPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPrice::credit_allocation end @@ -3611,25 +3222,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::GroupedTieredPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -3640,12 +3248,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::GroupedTieredPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPrice::item end @@ -3658,15 +3261,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::GroupedTieredPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPrice::maximum end @@ -3679,26 +3277,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::GroupedTieredPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::GroupedTieredPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPrice::price_type] end type dimensional_price_configuration = @@ -3712,15 +3307,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::GroupedTieredPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPrice::dimensional_price_configuration end @@ -3803,36 +3393,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::TieredWithMinimumPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredWithMinimumPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::TieredWithMinimumPrice::Item, - maximum: Orb::Models::Price::TieredWithMinimumPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::TieredWithMinimumPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredWithMinimumPrice::price_type, - tiered_with_minimum_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration?, - model_type: :tiered_with_minimum - ) -> void - | ( - ?Orb::Models::Price::tiered_with_minimum_price | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::TieredWithMinimumPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::TieredWithMinimumPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::TieredWithMinimumPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::TieredWithMinimumPrice::Item, + maximum: Orb::Models::Price::TieredWithMinimumPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::TieredWithMinimumPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::TieredWithMinimumPrice::price_type, + tiered_with_minimum_config: ::Hash[Symbol, top], + ?dimensional_price_configuration: Orb::Models::Price::TieredWithMinimumPrice::DimensionalPriceConfiguration?, + ?model_type: :tiered_with_minimum + ) -> void def to_hash: -> Orb::Models::Price::tiered_with_minimum_price @@ -3841,12 +3427,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::TieredWithMinimumPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::TieredWithMinimumPrice::billable_metric end @@ -3862,32 +3443,31 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::TieredWithMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::TieredWithMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::TieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -3895,7 +3475,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::TieredWithMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::TieredWithMinimumPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -3905,12 +3485,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::TieredWithMinimumPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::TieredWithMinimumPrice::credit_allocation end @@ -3926,25 +3501,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::TieredWithMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::TieredWithMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::TieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -3955,12 +3527,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::TieredWithMinimumPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::TieredWithMinimumPrice::item end @@ -3973,15 +3540,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::TieredWithMinimumPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::TieredWithMinimumPrice::maximum end @@ -3994,26 +3556,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::TieredWithMinimumPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::TieredWithMinimumPrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::TieredWithMinimumPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::TieredWithMinimumPrice::price_type] end type dimensional_price_configuration = @@ -4027,15 +3586,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::TieredWithMinimumPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::TieredWithMinimumPrice::dimensional_price_configuration end @@ -4118,37 +3672,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredPackageWithMinimumPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::TieredPackageWithMinimumPrice::Item, - maximum: Orb::Models::Price::TieredPackageWithMinimumPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredPackageWithMinimumPrice::price_type, - tiered_package_with_minimum_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration?, - model_type: :tiered_package_with_minimum - ) -> void - | ( - ?Orb::Models::Price::tiered_package_with_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::TieredPackageWithMinimumPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::TieredPackageWithMinimumPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::TieredPackageWithMinimumPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::TieredPackageWithMinimumPrice::Item, + maximum: Orb::Models::Price::TieredPackageWithMinimumPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::TieredPackageWithMinimumPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::TieredPackageWithMinimumPrice::price_type, + tiered_package_with_minimum_config: ::Hash[Symbol, top], + ?dimensional_price_configuration: Orb::Models::Price::TieredPackageWithMinimumPrice::DimensionalPriceConfiguration?, + ?model_type: :tiered_package_with_minimum + ) -> void def to_hash: -> Orb::Models::Price::tiered_package_with_minimum_price @@ -4157,12 +3706,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::TieredPackageWithMinimumPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::TieredPackageWithMinimumPrice::billable_metric end @@ -4178,32 +3722,31 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::TieredPackageWithMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::TieredPackageWithMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -4211,7 +3754,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -4221,12 +3764,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::TieredPackageWithMinimumPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::TieredPackageWithMinimumPrice::credit_allocation end @@ -4242,25 +3780,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::TieredPackageWithMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::TieredPackageWithMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -4271,12 +3806,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::TieredPackageWithMinimumPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::TieredPackageWithMinimumPrice::item end @@ -4289,15 +3819,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::TieredPackageWithMinimumPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::TieredPackageWithMinimumPrice::maximum end @@ -4310,26 +3835,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::TieredPackageWithMinimumPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::TieredPackageWithMinimumPrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimumPrice::price_type] end type dimensional_price_configuration = @@ -4343,15 +3865,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::TieredPackageWithMinimumPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::TieredPackageWithMinimumPrice::dimensional_price_configuration end @@ -4434,37 +3951,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::PackageWithAllocationPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::PackageWithAllocationPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::PackageWithAllocationPrice::Item, - maximum: Orb::Models::Price::PackageWithAllocationPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::PackageWithAllocationPrice::Minimum?, - minimum_amount: String?, - name: String, - package_with_allocation_config: ::Hash[Symbol, top], - plan_phase_order: Integer?, - price_type: Orb::Models::Price::PackageWithAllocationPrice::price_type, - dimensional_price_configuration: Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration?, - model_type: :package_with_allocation - ) -> void - | ( - ?Orb::Models::Price::package_with_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::PackageWithAllocationPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::PackageWithAllocationPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::PackageWithAllocationPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::PackageWithAllocationPrice::Item, + maximum: Orb::Models::Price::PackageWithAllocationPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::PackageWithAllocationPrice::Minimum?, + minimum_amount: String?, + name: String, + package_with_allocation_config: ::Hash[Symbol, top], + plan_phase_order: Integer?, + price_type: Orb::Models::Price::PackageWithAllocationPrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::PackageWithAllocationPrice::DimensionalPriceConfiguration?, + ?model_type: :package_with_allocation + ) -> void def to_hash: -> Orb::Models::Price::package_with_allocation_price @@ -4473,12 +3985,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::PackageWithAllocationPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::PackageWithAllocationPrice::billable_metric end @@ -4494,32 +4001,31 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::PackageWithAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::PackageWithAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::PackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -4527,7 +4033,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::PackageWithAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::PackageWithAllocationPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -4537,12 +4043,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::PackageWithAllocationPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::PackageWithAllocationPrice::credit_allocation end @@ -4558,25 +4059,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::PackageWithAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::PackageWithAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::PackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -4587,12 +4085,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::PackageWithAllocationPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::PackageWithAllocationPrice::item end @@ -4605,15 +4098,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::PackageWithAllocationPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::PackageWithAllocationPrice::maximum end @@ -4626,26 +4114,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::PackageWithAllocationPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::PackageWithAllocationPrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::PackageWithAllocationPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::PackageWithAllocationPrice::price_type] end type dimensional_price_configuration = @@ -4659,15 +4144,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::PackageWithAllocationPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::PackageWithAllocationPrice::dimensional_price_configuration end @@ -4750,36 +4230,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::UnitWithPercentPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::UnitWithPercentPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::UnitWithPercentPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::UnitWithPercentPrice::Item, - maximum: Orb::Models::Price::UnitWithPercentPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::UnitWithPercentPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::UnitWithPercentPrice::price_type, - unit_with_percent_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration?, - model_type: :unit_with_percent - ) -> void - | ( - ?Orb::Models::Price::unit_with_percent_price | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::UnitWithPercentPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::UnitWithPercentPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::UnitWithPercentPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::UnitWithPercentPrice::Item, + maximum: Orb::Models::Price::UnitWithPercentPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::UnitWithPercentPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::UnitWithPercentPrice::price_type, + unit_with_percent_config: ::Hash[Symbol, top], + ?dimensional_price_configuration: Orb::Models::Price::UnitWithPercentPrice::DimensionalPriceConfiguration?, + ?model_type: :unit_with_percent + ) -> void def to_hash: -> Orb::Models::Price::unit_with_percent_price @@ -4788,12 +4264,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::UnitWithPercentPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::UnitWithPercentPrice::billable_metric end @@ -4809,32 +4280,31 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::UnitWithPercentPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::UnitWithPercentPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::UnitWithPercentPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -4842,7 +4312,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::UnitWithPercentPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::UnitWithPercentPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -4852,12 +4322,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::UnitWithPercentPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::UnitWithPercentPrice::credit_allocation end @@ -4873,25 +4338,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::UnitWithPercentPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::UnitWithPercentPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::UnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -4902,12 +4364,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::UnitWithPercentPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::UnitWithPercentPrice::item end @@ -4920,15 +4377,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::UnitWithPercentPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::UnitWithPercentPrice::maximum end @@ -4941,26 +4393,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::UnitWithPercentPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::UnitWithPercentPrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::UnitWithPercentPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::UnitWithPercentPrice::price_type] end type dimensional_price_configuration = @@ -4974,15 +4423,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::UnitWithPercentPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::UnitWithPercentPrice::dimensional_price_configuration end @@ -5065,37 +4509,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixWithAllocationPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::MatrixWithAllocationPrice::Item, - matrix_with_allocation_config: Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig, - maximum: Orb::Models::Price::MatrixWithAllocationPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::MatrixWithAllocationPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::MatrixWithAllocationPrice::price_type, - dimensional_price_configuration: Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration?, - model_type: :matrix_with_allocation - ) -> void - | ( - ?Orb::Models::Price::matrix_with_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::MatrixWithAllocationPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::MatrixWithAllocationPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::MatrixWithAllocationPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::MatrixWithAllocationPrice::Item, + matrix_with_allocation_config: Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig, + maximum: Orb::Models::Price::MatrixWithAllocationPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::MatrixWithAllocationPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::MatrixWithAllocationPrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::MatrixWithAllocationPrice::DimensionalPriceConfiguration?, + ?model_type: :matrix_with_allocation + ) -> void def to_hash: -> Orb::Models::Price::matrix_with_allocation_price @@ -5104,12 +4543,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::MatrixWithAllocationPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::billable_metric end @@ -5125,32 +4559,31 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::MatrixWithAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::MatrixWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -5158,7 +4591,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::MatrixWithAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::MatrixWithAllocationPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -5168,12 +4601,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::MatrixWithAllocationPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::credit_allocation end @@ -5189,25 +4617,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::MatrixWithAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::MatrixWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -5218,12 +4643,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::MatrixWithAllocationPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::item end @@ -5245,17 +4665,12 @@ module Orb attr_accessor matrix_values: ::Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] - def initialize: - ( - allocation: Float, - default_unit_amount: String, - dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] - ) -> void - | ( - ?Orb::Models::Price::MatrixWithAllocationPrice::matrix_with_allocation_config - | Orb::BaseModel data - ) -> void + def initialize: ( + allocation: Float, + default_unit_amount: String, + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] + ) -> void def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::matrix_with_allocation_config @@ -5267,12 +4682,10 @@ module Orb attr_accessor unit_amount: String - def initialize: - (dimension_values: ::Array[String?], unit_amount: String) -> void - | ( - ?Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::matrix_value - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String?], + unit_amount: String + ) -> void def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::MatrixWithAllocationConfig::matrix_value end @@ -5286,15 +4699,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::MatrixWithAllocationPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::maximum end @@ -5307,26 +4715,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::MatrixWithAllocationPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::MatrixWithAllocationPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::MatrixWithAllocationPrice::price_type] end type dimensional_price_configuration = @@ -5340,15 +4745,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::MatrixWithAllocationPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::MatrixWithAllocationPrice::dimensional_price_configuration end @@ -5431,37 +4831,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::TieredWithProrationPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredWithProrationPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::TieredWithProrationPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::TieredWithProrationPrice::Item, - maximum: Orb::Models::Price::TieredWithProrationPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::TieredWithProrationPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredWithProrationPrice::price_type, - tiered_with_proration_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration?, - model_type: :tiered_with_proration - ) -> void - | ( - ?Orb::Models::Price::tiered_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::TieredWithProrationPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::TieredWithProrationPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::TieredWithProrationPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::TieredWithProrationPrice::Item, + maximum: Orb::Models::Price::TieredWithProrationPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::TieredWithProrationPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::TieredWithProrationPrice::price_type, + tiered_with_proration_config: ::Hash[Symbol, top], + ?dimensional_price_configuration: Orb::Models::Price::TieredWithProrationPrice::DimensionalPriceConfiguration?, + ?model_type: :tiered_with_proration + ) -> void def to_hash: -> Orb::Models::Price::tiered_with_proration_price @@ -5470,12 +4865,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::TieredWithProrationPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::TieredWithProrationPrice::billable_metric end @@ -5491,32 +4881,31 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::TieredWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::TieredWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::TieredWithProrationPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -5524,7 +4913,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::TieredWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::TieredWithProrationPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -5534,12 +4923,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::TieredWithProrationPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::TieredWithProrationPrice::credit_allocation end @@ -5555,25 +4939,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::TieredWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::TieredWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::TieredWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -5584,12 +4965,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::TieredWithProrationPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::TieredWithProrationPrice::item end @@ -5602,15 +4978,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::TieredWithProrationPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::TieredWithProrationPrice::maximum end @@ -5623,26 +4994,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::TieredWithProrationPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::TieredWithProrationPrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::TieredWithProrationPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::TieredWithProrationPrice::price_type] end type dimensional_price_configuration = @@ -5656,15 +5024,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::TieredWithProrationPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::TieredWithProrationPrice::dimensional_price_configuration end @@ -5747,36 +5110,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::UnitWithProrationPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::UnitWithProrationPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::UnitWithProrationPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::UnitWithProrationPrice::Item, - maximum: Orb::Models::Price::UnitWithProrationPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::UnitWithProrationPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::UnitWithProrationPrice::price_type, - unit_with_proration_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration?, - model_type: :unit_with_proration - ) -> void - | ( - ?Orb::Models::Price::unit_with_proration_price | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::UnitWithProrationPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::UnitWithProrationPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::UnitWithProrationPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::UnitWithProrationPrice::Item, + maximum: Orb::Models::Price::UnitWithProrationPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::UnitWithProrationPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::UnitWithProrationPrice::price_type, + unit_with_proration_config: ::Hash[Symbol, top], + ?dimensional_price_configuration: Orb::Models::Price::UnitWithProrationPrice::DimensionalPriceConfiguration?, + ?model_type: :unit_with_proration + ) -> void def to_hash: -> Orb::Models::Price::unit_with_proration_price @@ -5785,12 +5144,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::UnitWithProrationPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::UnitWithProrationPrice::billable_metric end @@ -5806,32 +5160,31 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::UnitWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::UnitWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::UnitWithProrationPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -5839,7 +5192,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::UnitWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::UnitWithProrationPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -5849,12 +5202,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::UnitWithProrationPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::UnitWithProrationPrice::credit_allocation end @@ -5870,25 +5218,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::UnitWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::UnitWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::UnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -5899,12 +5244,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::UnitWithProrationPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::UnitWithProrationPrice::item end @@ -5917,15 +5257,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::UnitWithProrationPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::UnitWithProrationPrice::maximum end @@ -5938,26 +5273,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::UnitWithProrationPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::UnitWithProrationPrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::UnitWithProrationPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::UnitWithProrationPrice::price_type] end type dimensional_price_configuration = @@ -5971,15 +5303,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::UnitWithProrationPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::UnitWithProrationPrice::dimensional_price_configuration end @@ -6062,36 +5389,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::GroupedAllocationPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedAllocationPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::GroupedAllocationPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - grouped_allocation_config: ::Hash[Symbol, top], - invoicing_cycle_configuration: Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::GroupedAllocationPrice::Item, - maximum: Orb::Models::Price::GroupedAllocationPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::GroupedAllocationPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedAllocationPrice::price_type, - dimensional_price_configuration: Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration?, - model_type: :grouped_allocation - ) -> void - | ( - ?Orb::Models::Price::grouped_allocation_price | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::GroupedAllocationPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::GroupedAllocationPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::GroupedAllocationPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + grouped_allocation_config: ::Hash[Symbol, top], + invoicing_cycle_configuration: Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::GroupedAllocationPrice::Item, + maximum: Orb::Models::Price::GroupedAllocationPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::GroupedAllocationPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::GroupedAllocationPrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::GroupedAllocationPrice::DimensionalPriceConfiguration?, + ?model_type: :grouped_allocation + ) -> void def to_hash: -> Orb::Models::Price::grouped_allocation_price @@ -6100,12 +5423,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::GroupedAllocationPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::GroupedAllocationPrice::billable_metric end @@ -6121,32 +5439,31 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::GroupedAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::GroupedAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::GroupedAllocationPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -6154,7 +5471,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::GroupedAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::GroupedAllocationPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -6164,12 +5481,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::GroupedAllocationPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::GroupedAllocationPrice::credit_allocation end @@ -6185,25 +5497,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::GroupedAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::GroupedAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::GroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -6214,12 +5523,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::GroupedAllocationPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::GroupedAllocationPrice::item end @@ -6232,15 +5536,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::GroupedAllocationPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedAllocationPrice::maximum end @@ -6253,26 +5552,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::GroupedAllocationPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedAllocationPrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::GroupedAllocationPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::GroupedAllocationPrice::price_type] end type dimensional_price_configuration = @@ -6286,15 +5582,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::GroupedAllocationPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedAllocationPrice::dimensional_price_configuration end @@ -6377,37 +5668,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithProratedMinimumPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::GroupedWithProratedMinimumPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], - invoicing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::GroupedWithProratedMinimumPrice::Item, - maximum: Orb::Models::Price::GroupedWithProratedMinimumPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedWithProratedMinimumPrice::price_type, - dimensional_price_configuration: Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration?, - model_type: :grouped_with_prorated_minimum - ) -> void - | ( - ?Orb::Models::Price::grouped_with_prorated_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::GroupedWithProratedMinimumPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::GroupedWithProratedMinimumPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], + invoicing_cycle_configuration: Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::GroupedWithProratedMinimumPrice::Item, + maximum: Orb::Models::Price::GroupedWithProratedMinimumPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::GroupedWithProratedMinimumPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::GroupedWithProratedMinimumPrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::GroupedWithProratedMinimumPrice::DimensionalPriceConfiguration?, + ?model_type: :grouped_with_prorated_minimum + ) -> void def to_hash: -> Orb::Models::Price::grouped_with_prorated_minimum_price @@ -6416,12 +5702,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::GroupedWithProratedMinimumPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::billable_metric end @@ -6437,32 +5718,31 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::GroupedWithProratedMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -6470,7 +5750,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -6480,12 +5760,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::GroupedWithProratedMinimumPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::credit_allocation end @@ -6501,25 +5776,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::GroupedWithProratedMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -6530,12 +5802,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::GroupedWithProratedMinimumPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::item end @@ -6548,15 +5815,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::GroupedWithProratedMinimumPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::maximum end @@ -6569,26 +5831,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::GroupedWithProratedMinimumPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimumPrice::price_type] end type dimensional_price_configuration = @@ -6602,15 +5861,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::GroupedWithProratedMinimumPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedWithProratedMinimumPrice::dimensional_price_configuration end @@ -6693,37 +5947,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithMeteredMinimumPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::GroupedWithMeteredMinimumPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - grouped_with_metered_minimum_config: ::Hash[Symbol, top], - invoicing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Item, - maximum: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedWithMeteredMinimumPrice::price_type, - dimensional_price_configuration: Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration?, - model_type: :grouped_with_metered_minimum - ) -> void - | ( - ?Orb::Models::Price::grouped_with_metered_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::GroupedWithMeteredMinimumPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::GroupedWithMeteredMinimumPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + grouped_with_metered_minimum_config: ::Hash[Symbol, top], + invoicing_cycle_configuration: Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Item, + maximum: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::GroupedWithMeteredMinimumPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::GroupedWithMeteredMinimumPrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::GroupedWithMeteredMinimumPrice::DimensionalPriceConfiguration?, + ?model_type: :grouped_with_metered_minimum + ) -> void def to_hash: -> Orb::Models::Price::grouped_with_metered_minimum_price @@ -6732,12 +5981,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::GroupedWithMeteredMinimumPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::billable_metric end @@ -6753,32 +5997,31 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::GroupedWithMeteredMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -6786,7 +6029,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -6796,12 +6039,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::GroupedWithMeteredMinimumPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::credit_allocation end @@ -6817,25 +6055,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::GroupedWithMeteredMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -6846,12 +6081,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::GroupedWithMeteredMinimumPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::item end @@ -6864,15 +6094,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::GroupedWithMeteredMinimumPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::maximum end @@ -6885,26 +6110,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::GroupedWithMeteredMinimumPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimumPrice::price_type] end type dimensional_price_configuration = @@ -6918,15 +6140,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::GroupedWithMeteredMinimumPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedWithMeteredMinimumPrice::dimensional_price_configuration end @@ -7009,37 +6226,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixWithDisplayNamePrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::MatrixWithDisplayNamePrice::Item, - matrix_with_display_name_config: ::Hash[Symbol, top], - maximum: Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::MatrixWithDisplayNamePrice::price_type, - dimensional_price_configuration: Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration?, - model_type: :matrix_with_display_name - ) -> void - | ( - ?Orb::Models::Price::matrix_with_display_name_price - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::MatrixWithDisplayNamePrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::MatrixWithDisplayNamePrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::MatrixWithDisplayNamePrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::MatrixWithDisplayNamePrice::Item, + matrix_with_display_name_config: ::Hash[Symbol, top], + maximum: Orb::Models::Price::MatrixWithDisplayNamePrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::MatrixWithDisplayNamePrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::MatrixWithDisplayNamePrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::MatrixWithDisplayNamePrice::DimensionalPriceConfiguration?, + ?model_type: :matrix_with_display_name + ) -> void def to_hash: -> Orb::Models::Price::matrix_with_display_name_price @@ -7048,12 +6260,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::MatrixWithDisplayNamePrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::MatrixWithDisplayNamePrice::billable_metric end @@ -7069,32 +6276,31 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::MatrixWithDisplayNamePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::MatrixWithDisplayNamePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -7102,7 +6308,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -7112,12 +6318,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::MatrixWithDisplayNamePrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::MatrixWithDisplayNamePrice::credit_allocation end @@ -7133,25 +6334,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::MatrixWithDisplayNamePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::MatrixWithDisplayNamePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] end end @@ -7162,12 +6360,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::MatrixWithDisplayNamePrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::MatrixWithDisplayNamePrice::item end @@ -7180,15 +6373,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::MatrixWithDisplayNamePrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::MatrixWithDisplayNamePrice::maximum end @@ -7201,26 +6389,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::MatrixWithDisplayNamePrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::MatrixWithDisplayNamePrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayNamePrice::price_type] end type dimensional_price_configuration = @@ -7234,15 +6419,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::MatrixWithDisplayNamePrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::MatrixWithDisplayNamePrice::dimensional_price_configuration end @@ -7325,36 +6505,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::BulkWithProrationPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration, - bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::Price::BulkWithProrationPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::BulkWithProrationPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::BulkWithProrationPrice::Item, - maximum: Orb::Models::Price::BulkWithProrationPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::BulkWithProrationPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::BulkWithProrationPrice::price_type, - dimensional_price_configuration: Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration?, - model_type: :bulk_with_proration - ) -> void - | ( - ?Orb::Models::Price::bulk_with_proration_price | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::BulkWithProrationPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration, + bulk_with_proration_config: ::Hash[Symbol, top], + cadence: Orb::Models::Price::BulkWithProrationPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::BulkWithProrationPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::BulkWithProrationPrice::Item, + maximum: Orb::Models::Price::BulkWithProrationPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::BulkWithProrationPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::BulkWithProrationPrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::BulkWithProrationPrice::DimensionalPriceConfiguration?, + ?model_type: :bulk_with_proration + ) -> void def to_hash: -> Orb::Models::Price::bulk_with_proration_price @@ -7363,12 +6539,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::BulkWithProrationPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::BulkWithProrationPrice::billable_metric end @@ -7384,32 +6555,31 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::BulkWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::BulkWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::BulkWithProrationPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -7417,7 +6587,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::BulkWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::BulkWithProrationPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -7427,12 +6597,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::BulkWithProrationPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::BulkWithProrationPrice::credit_allocation end @@ -7448,25 +6613,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::BulkWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::BulkWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::BulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -7477,12 +6639,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::BulkWithProrationPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::BulkWithProrationPrice::item end @@ -7495,15 +6652,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::BulkWithProrationPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::BulkWithProrationPrice::maximum end @@ -7516,26 +6668,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::BulkWithProrationPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::BulkWithProrationPrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::BulkWithProrationPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::BulkWithProrationPrice::price_type] end type dimensional_price_configuration = @@ -7549,15 +6698,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::BulkWithProrationPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::BulkWithProrationPrice::dimensional_price_configuration end @@ -7640,37 +6784,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTieredPackagePrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::GroupedTieredPackagePrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - grouped_tiered_package_config: ::Hash[Symbol, top], - invoicing_cycle_configuration: Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::GroupedTieredPackagePrice::Item, - maximum: Orb::Models::Price::GroupedTieredPackagePrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::GroupedTieredPackagePrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedTieredPackagePrice::price_type, - dimensional_price_configuration: Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration?, - model_type: :grouped_tiered_package - ) -> void - | ( - ?Orb::Models::Price::grouped_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::GroupedTieredPackagePrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::GroupedTieredPackagePrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::GroupedTieredPackagePrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + grouped_tiered_package_config: ::Hash[Symbol, top], + invoicing_cycle_configuration: Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::GroupedTieredPackagePrice::Item, + maximum: Orb::Models::Price::GroupedTieredPackagePrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::GroupedTieredPackagePrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::GroupedTieredPackagePrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::GroupedTieredPackagePrice::DimensionalPriceConfiguration?, + ?model_type: :grouped_tiered_package + ) -> void def to_hash: -> Orb::Models::Price::grouped_tiered_package_price @@ -7679,12 +6818,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::GroupedTieredPackagePrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPackagePrice::billable_metric end @@ -7700,32 +6834,31 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::GroupedTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -7733,7 +6866,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::GroupedTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPackagePrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -7743,12 +6876,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::GroupedTieredPackagePrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPackagePrice::credit_allocation end @@ -7764,25 +6892,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::GroupedTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end @@ -7793,12 +6918,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::GroupedTieredPackagePrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPackagePrice::item end @@ -7811,15 +6931,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::GroupedTieredPackagePrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPackagePrice::maximum end @@ -7832,26 +6947,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::GroupedTieredPackagePrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPackagePrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::GroupedTieredPackagePrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPackagePrice::price_type] end type dimensional_price_configuration = @@ -7865,15 +6977,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::GroupedTieredPackagePrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::GroupedTieredPackagePrice::dimensional_price_configuration end @@ -7956,37 +7063,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::MaxGroupTieredPackagePrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::MaxGroupTieredPackagePrice::Item, - max_group_tiered_package_config: ::Hash[Symbol, top], - maximum: Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::MaxGroupTieredPackagePrice::price_type, - dimensional_price_configuration: Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration?, - model_type: :max_group_tiered_package - ) -> void - | ( - ?Orb::Models::Price::max_group_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::MaxGroupTieredPackagePrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::MaxGroupTieredPackagePrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::MaxGroupTieredPackagePrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::MaxGroupTieredPackagePrice::Item, + max_group_tiered_package_config: ::Hash[Symbol, top], + maximum: Orb::Models::Price::MaxGroupTieredPackagePrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::MaxGroupTieredPackagePrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::MaxGroupTieredPackagePrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::MaxGroupTieredPackagePrice::DimensionalPriceConfiguration?, + ?model_type: :max_group_tiered_package + ) -> void def to_hash: -> Orb::Models::Price::max_group_tiered_package_price @@ -7995,12 +7097,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::MaxGroupTieredPackagePrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::MaxGroupTieredPackagePrice::billable_metric end @@ -8016,32 +7113,31 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::MaxGroupTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::MaxGroupTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -8049,7 +7145,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -8059,12 +7155,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::MaxGroupTieredPackagePrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::MaxGroupTieredPackagePrice::credit_allocation end @@ -8080,25 +7171,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::MaxGroupTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::MaxGroupTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end @@ -8109,12 +7197,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::MaxGroupTieredPackagePrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::MaxGroupTieredPackagePrice::item end @@ -8127,15 +7210,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::MaxGroupTieredPackagePrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::MaxGroupTieredPackagePrice::maximum end @@ -8148,26 +7226,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::MaxGroupTieredPackagePrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::MaxGroupTieredPackagePrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackagePrice::price_type] end type dimensional_price_configuration = @@ -8181,15 +7256,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::MaxGroupTieredPackagePrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::MaxGroupTieredPackagePrice::dimensional_price_configuration end @@ -8272,37 +7342,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Item, - maximum: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::price_type, - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration?, - model_type: :scalable_matrix_with_unit_pricing - ) -> void - | ( - ?Orb::Models::Price::scalable_matrix_with_unit_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Item, + maximum: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::price_type, + scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], + ?dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::DimensionalPriceConfiguration?, + ?model_type: :scalable_matrix_with_unit_pricing + ) -> void def to_hash: -> Orb::Models::Price::scalable_matrix_with_unit_pricing_price @@ -8311,12 +7376,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::billable_metric end @@ -8332,32 +7392,31 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -8365,7 +7424,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -8375,12 +7434,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::credit_allocation end @@ -8396,25 +7450,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -8425,12 +7476,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::item end @@ -8443,15 +7489,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::maximum end @@ -8464,26 +7505,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::price_type] end type dimensional_price_configuration = @@ -8497,15 +7535,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithUnitPricingPrice::dimensional_price_configuration end @@ -8588,37 +7621,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Item, - maximum: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::price_type, - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], - dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration?, - model_type: :scalable_matrix_with_tiered_pricing - ) -> void - | ( - ?Orb::Models::Price::scalable_matrix_with_tiered_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::CreditAllocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Item, + maximum: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::price_type, + scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], + ?dimensional_price_configuration: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::DimensionalPriceConfiguration?, + ?model_type: :scalable_matrix_with_tiered_pricing + ) -> void def to_hash: -> Orb::Models::Price::scalable_matrix_with_tiered_pricing_price @@ -8627,12 +7655,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::billable_metric end @@ -8648,32 +7671,31 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -8681,7 +7703,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -8691,12 +7713,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::credit_allocation end @@ -8712,25 +7729,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -8741,12 +7755,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::item end @@ -8759,15 +7768,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::maximum end @@ -8780,26 +7784,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::price_type] end type dimensional_price_configuration = @@ -8813,15 +7814,10 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::ScalableMatrixWithTieredPricingPrice::dimensional_price_configuration end @@ -8904,37 +7900,32 @@ module Orb attr_accessor dimensional_price_configuration: Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration? - def initialize: - ( - id: String, - billable_metric: Orb::Models::Price::CumulativeGroupedBulkPrice::BillableMetric?, - billing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration, - cadence: Orb::Models::Price::CumulativeGroupedBulkPrice::cadence, - conversion_rate: Float?, - created_at: Time, - credit_allocation: Orb::Models::Price::CumulativeGroupedBulkPrice::CreditAllocation?, - cumulative_grouped_bulk_config: ::Hash[Symbol, top], - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, - item: Orb::Models::Price::CumulativeGroupedBulkPrice::Item, - maximum: Orb::Models::Price::CumulativeGroupedBulkPrice::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Models::Price::CumulativeGroupedBulkPrice::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::CumulativeGroupedBulkPrice::price_type, - dimensional_price_configuration: Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration?, - model_type: :cumulative_grouped_bulk - ) -> void - | ( - ?Orb::Models::Price::cumulative_grouped_bulk_price - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billable_metric: Orb::Models::Price::CumulativeGroupedBulkPrice::BillableMetric?, + billing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration, + cadence: Orb::Models::Price::CumulativeGroupedBulkPrice::cadence, + conversion_rate: Float?, + created_at: Time, + credit_allocation: Orb::Models::Price::CumulativeGroupedBulkPrice::CreditAllocation?, + cumulative_grouped_bulk_config: ::Hash[Symbol, top], + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, + item: Orb::Models::Price::CumulativeGroupedBulkPrice::Item, + maximum: Orb::Models::Price::CumulativeGroupedBulkPrice::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Models::Price::CumulativeGroupedBulkPrice::Minimum?, + minimum_amount: String?, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::CumulativeGroupedBulkPrice::price_type, + ?dimensional_price_configuration: Orb::Models::Price::CumulativeGroupedBulkPrice::DimensionalPriceConfiguration?, + ?model_type: :cumulative_grouped_bulk + ) -> void def to_hash: -> Orb::Models::Price::cumulative_grouped_bulk_price @@ -8943,12 +7934,7 @@ module Orb class BillableMetric < Orb::BaseModel attr_accessor id: String - def initialize: - (id: String) -> void - | ( - ?Orb::Models::Price::CumulativeGroupedBulkPrice::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String) -> void def to_hash: -> Orb::Models::Price::CumulativeGroupedBulkPrice::billable_metric end @@ -8964,32 +7950,31 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::CumulativeGroupedBulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::CumulativeGroupedBulkPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] end end type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -8997,7 +7982,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::cadence] end type credit_allocation = { allows_rollover: bool, currency: String } @@ -9007,12 +7992,7 @@ module Orb attr_accessor currency: String - def initialize: - (allows_rollover: bool, currency: String) -> void - | ( - ?Orb::Models::Price::CumulativeGroupedBulkPrice::credit_allocation - | Orb::BaseModel data - ) -> void + def initialize: (allows_rollover: bool, currency: String) -> void def to_hash: -> Orb::Models::Price::CumulativeGroupedBulkPrice::credit_allocation end @@ -9028,25 +8008,22 @@ module Orb attr_accessor duration_unit: Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::Price::CumulativeGroupedBulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::Price::CumulativeGroupedBulkPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] end end @@ -9057,12 +8034,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::Price::CumulativeGroupedBulkPrice::item - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::Price::CumulativeGroupedBulkPrice::item end @@ -9075,15 +8047,10 @@ module Orb attr_accessor maximum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String - ) -> void - | ( - ?Orb::Models::Price::CumulativeGroupedBulkPrice::maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::CumulativeGroupedBulkPrice::maximum end @@ -9096,26 +8063,23 @@ module Orb attr_accessor minimum_amount: String - def initialize: - ( - applies_to_price_ids: ::Array[String], - minimum_amount: String - ) -> void - | ( - ?Orb::Models::Price::CumulativeGroupedBulkPrice::minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + minimum_amount: String + ) -> void def to_hash: -> Orb::Models::Price::CumulativeGroupedBulkPrice::minimum end type price_type = :usage_price | :fixed_price - class PriceType < Orb::Enum + module PriceType + extend Orb::Enum + USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::price_type] + def self?.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulkPrice::price_type] end type dimensional_price_configuration = @@ -9129,21 +8093,16 @@ module Orb attr_accessor dimensional_price_group_id: String - def initialize: - ( - dimension_values: ::Array[String], - dimensional_price_group_id: String - ) -> void - | ( - ?Orb::Models::Price::CumulativeGroupedBulkPrice::dimensional_price_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String], + dimensional_price_group_id: String + ) -> void def to_hash: -> Orb::Models::Price::CumulativeGroupedBulkPrice::dimensional_price_configuration end end - def self.variants: -> [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] + def self?.variants: -> [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 end end diff --git a/sig/orb/models/price_create_params.rbs b/sig/orb/models/price_create_params.rbs index fc176747..600179b8 100644 --- a/sig/orb/models/price_create_params.rbs +++ b/sig/orb/models/price_create_params.rbs @@ -135,60 +135,60 @@ module Orb attr_accessor cumulative_grouped_bulk_config: ::Hash[Symbol, top] - def initialize: - ( - cadence: Orb::Models::PriceCreateParams::cadence, - currency: String, - item_id: String, - model_type: Orb::Models::PriceCreateParams::model_type, - name: String, - unit_config: Orb::Models::PriceCreateParams::UnitConfig, - 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: ::Hash[Symbol, top], - tiered_package_config: ::Hash[Symbol, top], - grouped_tiered_config: ::Hash[Symbol, top], - max_group_tiered_package_config: ::Hash[Symbol, top], - tiered_with_minimum_config: ::Hash[Symbol, top], - package_with_allocation_config: ::Hash[Symbol, top], - tiered_package_with_minimum_config: ::Hash[Symbol, top], - unit_with_percent_config: ::Hash[Symbol, top], - tiered_with_proration_config: ::Hash[Symbol, top], - unit_with_proration_config: ::Hash[Symbol, top], - grouped_allocation_config: ::Hash[Symbol, top], - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], - grouped_with_metered_minimum_config: ::Hash[Symbol, top], - matrix_with_display_name_config: ::Hash[Symbol, top], - bulk_with_proration_config: ::Hash[Symbol, top], - grouped_tiered_package_config: ::Hash[Symbol, top], - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], - cumulative_grouped_bulk_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PriceCreateParams::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::price_create_params | Orb::BaseModel data) -> void + def initialize: ( + cadence: Orb::Models::PriceCreateParams::cadence, + currency: String, + item_id: String, + model_type: Orb::Models::PriceCreateParams::model_type, + name: String, + unit_config: Orb::Models::PriceCreateParams::UnitConfig, + 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: ::Hash[Symbol, top], + tiered_package_config: ::Hash[Symbol, top], + grouped_tiered_config: ::Hash[Symbol, top], + max_group_tiered_package_config: ::Hash[Symbol, top], + tiered_with_minimum_config: ::Hash[Symbol, top], + package_with_allocation_config: ::Hash[Symbol, top], + tiered_package_with_minimum_config: ::Hash[Symbol, top], + unit_with_percent_config: ::Hash[Symbol, top], + tiered_with_proration_config: ::Hash[Symbol, top], + unit_with_proration_config: ::Hash[Symbol, top], + grouped_allocation_config: ::Hash[Symbol, top], + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], + grouped_with_metered_minimum_config: ::Hash[Symbol, top], + matrix_with_display_name_config: ::Hash[Symbol, top], + bulk_with_proration_config: ::Hash[Symbol, top], + grouped_tiered_package_config: ::Hash[Symbol, top], + scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], + cumulative_grouped_bulk_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PriceCreateParams::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::price_create_params type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -196,15 +196,17 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::PriceCreateParams::cadence] + def self?.values: -> ::Array[Orb::Models::PriceCreateParams::cadence] end type model_type = :cumulative_grouped_bulk - class ModelType < Orb::Enum + module ModelType + extend Orb::Enum + CUMULATIVE_GROUPED_BULK: :cumulative_grouped_bulk - def self.values: -> ::Array[Orb::Models::PriceCreateParams::model_type] + def self?.values: -> ::Array[Orb::Models::PriceCreateParams::model_type] end type unit_config = { unit_amount: String } @@ -212,11 +214,7 @@ module Orb class UnitConfig < Orb::BaseModel attr_accessor unit_amount: String - def initialize: - (unit_amount: String) -> void - | ( - ?Orb::Models::PriceCreateParams::unit_config | Orb::BaseModel data - ) -> void + def initialize: (unit_amount: String) -> void def to_hash: -> Orb::Models::PriceCreateParams::unit_config end @@ -232,25 +230,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PriceCreateParams::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PriceCreateParams::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PriceCreateParams::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PriceCreateParams::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PriceCreateParams::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PriceCreateParams::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PriceCreateParams::BillingCycleConfiguration::duration_unit] end end @@ -265,25 +260,22 @@ module Orb attr_accessor duration_unit: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::PriceCreateParams::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::PriceCreateParams::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::PriceCreateParams::InvoicingCycleConfiguration::duration_unit] end end @@ -294,12 +286,7 @@ module Orb attr_accessor package_size: Integer - def initialize: - (package_amount: String, package_size: Integer) -> void - | ( - ?Orb::Models::PriceCreateParams::package_config - | Orb::BaseModel data - ) -> void + def initialize: (package_amount: String, package_size: Integer) -> void def to_hash: -> Orb::Models::PriceCreateParams::package_config end @@ -318,15 +305,11 @@ module Orb attr_accessor matrix_values: ::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] - def initialize: - ( - default_unit_amount: String, - dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] - ) -> void - | ( - ?Orb::Models::PriceCreateParams::matrix_config | Orb::BaseModel data - ) -> void + def initialize: ( + default_unit_amount: String, + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::PriceCreateParams::MatrixConfig::MatrixValue] + ) -> void def to_hash: -> Orb::Models::PriceCreateParams::matrix_config @@ -338,12 +321,10 @@ module Orb attr_accessor unit_amount: String - def initialize: - (dimension_values: ::Array[String?], unit_amount: String) -> void - | ( - ?Orb::Models::PriceCreateParams::MatrixConfig::matrix_value - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String?], + unit_amount: String + ) -> void def to_hash: -> Orb::Models::PriceCreateParams::MatrixConfig::matrix_value end @@ -366,17 +347,12 @@ module Orb attr_accessor matrix_values: ::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] - def initialize: - ( - allocation: Float, - default_unit_amount: String, - dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] - ) -> void - | ( - ?Orb::Models::PriceCreateParams::matrix_with_allocation_config - | Orb::BaseModel data - ) -> void + def initialize: ( + allocation: Float, + default_unit_amount: String, + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::MatrixValue] + ) -> void def to_hash: -> Orb::Models::PriceCreateParams::matrix_with_allocation_config @@ -388,12 +364,10 @@ module Orb attr_accessor unit_amount: String - def initialize: - (dimension_values: ::Array[String?], unit_amount: String) -> void - | ( - ?Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::matrix_value - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String?], + unit_amount: String + ) -> void def to_hash: -> Orb::Models::PriceCreateParams::MatrixWithAllocationConfig::matrix_value end @@ -405,13 +379,9 @@ module Orb class TieredConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier] - ) -> void - | ( - ?Orb::Models::PriceCreateParams::tiered_config | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::PriceCreateParams::TieredConfig::Tier] + ) -> void def to_hash: -> Orb::Models::PriceCreateParams::tiered_config @@ -425,12 +395,11 @@ module Orb attr_accessor last_unit: Float? - def initialize: - (first_unit: Float, unit_amount: String, last_unit: Float?) -> void - | ( - ?Orb::Models::PriceCreateParams::TieredConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + first_unit: Float, + unit_amount: String, + ?last_unit: Float? + ) -> void def to_hash: -> Orb::Models::PriceCreateParams::TieredConfig::tier end @@ -444,14 +413,9 @@ module Orb class TieredBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::PriceCreateParams::tiered_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::PriceCreateParams::TieredBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::PriceCreateParams::tiered_bps_config @@ -472,17 +436,12 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - minimum_amount: String, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::PriceCreateParams::TieredBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + minimum_amount: String, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::PriceCreateParams::TieredBpsConfig::tier end @@ -495,11 +454,7 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - (bps: Float, per_unit_maximum: String?) -> void - | ( - ?Orb::Models::PriceCreateParams::bps_config | Orb::BaseModel data - ) -> void + def initialize: (bps: Float, ?per_unit_maximum: String?) -> void def to_hash: -> Orb::Models::PriceCreateParams::bps_config end @@ -510,14 +465,9 @@ module Orb class BulkBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::PriceCreateParams::bulk_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::PriceCreateParams::BulkBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::PriceCreateParams::bulk_bps_config @@ -531,16 +481,11 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::PriceCreateParams::BulkBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::PriceCreateParams::BulkBpsConfig::tier end @@ -552,13 +497,9 @@ module Orb class BulkConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier] - ) -> void - | ( - ?Orb::Models::PriceCreateParams::bulk_config | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::PriceCreateParams::BulkConfig::Tier] + ) -> void def to_hash: -> Orb::Models::PriceCreateParams::bulk_config @@ -569,12 +510,7 @@ module Orb attr_accessor maximum_units: Float? - def initialize: - (unit_amount: String, maximum_units: Float?) -> void - | ( - ?Orb::Models::PriceCreateParams::BulkConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: (unit_amount: String, ?maximum_units: Float?) -> void def to_hash: -> Orb::Models::PriceCreateParams::BulkConfig::tier end diff --git a/sig/orb/models/price_evaluate_params.rbs b/sig/orb/models/price_evaluate_params.rbs index 5fba14c8..14b07520 100644 --- a/sig/orb/models/price_evaluate_params.rbs +++ b/sig/orb/models/price_evaluate_params.rbs @@ -29,17 +29,15 @@ module Orb def grouping_keys=: (::Array[String]) -> ::Array[String] - def initialize: - ( - timeframe_end: Time, - timeframe_start: Time, - customer_id: String?, - external_customer_id: String?, - filter: String?, - grouping_keys: ::Array[String], - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::price_evaluate_params | Orb::BaseModel data) -> void + def initialize: ( + timeframe_end: Time, + timeframe_start: Time, + ?customer_id: String?, + ?external_customer_id: String?, + ?filter: String?, + ?grouping_keys: ::Array[String], + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::price_evaluate_params end diff --git a/sig/orb/models/price_evaluate_response.rbs b/sig/orb/models/price_evaluate_response.rbs index be91ac13..a3efe784 100644 --- a/sig/orb/models/price_evaluate_response.rbs +++ b/sig/orb/models/price_evaluate_response.rbs @@ -6,9 +6,7 @@ module Orb class PriceEvaluateResponse < Orb::BaseModel attr_accessor data: ::Array[Orb::Models::EvaluatePriceGroup] - def initialize: - (data: ::Array[Orb::Models::EvaluatePriceGroup]) -> void - | (?Orb::Models::price_evaluate_response | Orb::BaseModel data) -> void + def initialize: (data: ::Array[Orb::Models::EvaluatePriceGroup]) -> void def to_hash: -> Orb::Models::price_evaluate_response end diff --git a/sig/orb/models/price_fetch_params.rbs b/sig/orb/models/price_fetch_params.rbs index cb8d1461..b5f68aad 100644 --- a/sig/orb/models/price_fetch_params.rbs +++ b/sig/orb/models/price_fetch_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::price_fetch_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::price_fetch_params end diff --git a/sig/orb/models/price_list_params.rbs b/sig/orb/models/price_list_params.rbs index 041bc358..3d331900 100644 --- a/sig/orb/models/price_list_params.rbs +++ b/sig/orb/models/price_list_params.rbs @@ -13,13 +13,11 @@ module Orb def limit=: (Integer) -> Integer - def initialize: - ( - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::price_list_params | Orb::BaseModel data) -> void + def initialize: ( + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::price_list_params end diff --git a/sig/orb/models/price_update_params.rbs b/sig/orb/models/price_update_params.rbs index 08aa69fc..6fb75cd3 100644 --- a/sig/orb/models/price_update_params.rbs +++ b/sig/orb/models/price_update_params.rbs @@ -9,12 +9,10 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::price_update_params | Orb::BaseModel data) -> void + def initialize: ( + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::price_update_params end diff --git a/sig/orb/models/prices/external_price_id_fetch_params.rbs b/sig/orb/models/prices/external_price_id_fetch_params.rbs index 8e583dd0..0bb37c0c 100644 --- a/sig/orb/models/prices/external_price_id_fetch_params.rbs +++ b/sig/orb/models/prices/external_price_id_fetch_params.rbs @@ -7,12 +7,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::Prices::external_price_id_fetch_params - | Orb::BaseModel data - ) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::Prices::external_price_id_fetch_params end diff --git a/sig/orb/models/prices/external_price_id_update_params.rbs b/sig/orb/models/prices/external_price_id_update_params.rbs index 23895fcb..b706a797 100644 --- a/sig/orb/models/prices/external_price_id_update_params.rbs +++ b/sig/orb/models/prices/external_price_id_update_params.rbs @@ -10,15 +10,10 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::Prices::external_price_id_update_params - | Orb::BaseModel data - ) -> void + def initialize: ( + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::Prices::external_price_id_update_params end diff --git a/sig/orb/models/subscription.rbs b/sig/orb/models/subscription.rbs index 12725b41..6fe0eadc 100644 --- a/sig/orb/models/subscription.rbs +++ b/sig/orb/models/subscription.rbs @@ -80,35 +80,33 @@ module Orb attr_accessor trial_info: Orb::Models::Subscription::TrialInfo - def initialize: - ( - id: String, - active_plan_phase_order: Integer?, - adjustment_intervals: ::Array[Orb::Models::Subscription::AdjustmentInterval], - auto_collection: bool?, - billing_cycle_anchor_configuration: Orb::Models::Subscription::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, - default_invoice_memo: String?, - discount_intervals: ::Array[Orb::Models::Subscription::discount_interval], - end_date: Time?, - fixed_fee_quantity_schedule: ::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule], - invoicing_threshold: String?, - maximum_intervals: ::Array[Orb::Models::Subscription::MaximumInterval], - metadata: ::Hash[Symbol, String], - minimum_intervals: ::Array[Orb::Models::Subscription::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: ::Array[Orb::Models::Subscription::PriceInterval], - redeemed_coupon: Orb::Models::Subscription::RedeemedCoupon?, - start_date: Time, - status: Orb::Models::Subscription::status, - trial_info: Orb::Models::Subscription::TrialInfo - ) -> void - | (?Orb::Models::subscription | Orb::BaseModel data) -> void + def initialize: ( + id: String, + active_plan_phase_order: Integer?, + adjustment_intervals: ::Array[Orb::Models::Subscription::AdjustmentInterval], + auto_collection: bool?, + billing_cycle_anchor_configuration: Orb::Models::Subscription::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + customer: Orb::Models::Customer, + default_invoice_memo: String?, + discount_intervals: ::Array[Orb::Models::Subscription::discount_interval], + end_date: Time?, + fixed_fee_quantity_schedule: ::Array[Orb::Models::Subscription::FixedFeeQuantitySchedule], + invoicing_threshold: String?, + maximum_intervals: ::Array[Orb::Models::Subscription::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::Subscription::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: ::Array[Orb::Models::Subscription::PriceInterval], + redeemed_coupon: Orb::Models::Subscription::RedeemedCoupon?, + start_date: Time, + status: Orb::Models::Subscription::status, + trial_info: Orb::Models::Subscription::TrialInfo + ) -> void def to_hash: -> Orb::Models::subscription @@ -132,18 +130,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - id: String, - adjustment: Orb::Models::Subscription::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time - ) -> void - | ( - ?Orb::Models::Subscription::adjustment_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + adjustment: Orb::Models::Subscription::AdjustmentInterval::adjustment, + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::Subscription::adjustment_interval @@ -154,7 +147,9 @@ module Orb | Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment | Orb::Models::Subscription::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type plan_phase_usage_discount_adjustment = { id: String, @@ -181,20 +176,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end @@ -225,20 +215,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end @@ -269,20 +254,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end @@ -316,21 +296,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end @@ -361,25 +336,20 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::Subscription::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end - def self.variants: -> [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] + def self?.variants: -> [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 end @@ -393,12 +363,11 @@ module Orb attr_accessor year: Integer? - def initialize: - (day: Integer, month: Integer?, year: Integer?) -> void - | ( - ?Orb::Models::Subscription::billing_cycle_anchor_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + day: Integer, + ?month: Integer?, + ?year: Integer? + ) -> void def to_hash: -> Orb::Models::Subscription::billing_cycle_anchor_configuration end @@ -408,7 +377,9 @@ module Orb | Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval | Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + type amount_discount_interval = { amount_discount: String, @@ -432,19 +403,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - discount_type: :amount - ) -> void - | ( - ?Orb::Models::Subscription::DiscountInterval::amount_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + ?discount_type: :amount + ) -> void def to_hash: -> Orb::Models::Subscription::DiscountInterval::amount_discount_interval end @@ -472,19 +438,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - percentage_discount: Float, - start_date: Time, - discount_type: :percentage - ) -> void - | ( - ?Orb::Models::Subscription::DiscountInterval::percentage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + percentage_discount: Float, + start_date: Time, + ?discount_type: :percentage + ) -> void def to_hash: -> Orb::Models::Subscription::DiscountInterval::percentage_discount_interval end @@ -512,24 +473,19 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - usage_discount: Float, - discount_type: :usage - ) -> void - | ( - ?Orb::Models::Subscription::DiscountInterval::usage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + usage_discount: Float, + ?discount_type: :usage + ) -> void def to_hash: -> Orb::Models::Subscription::DiscountInterval::usage_discount_interval end - def self.variants: -> [Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval] + def self?.variants: -> [Orb::Models::Subscription::DiscountInterval::AmountDiscountInterval, Orb::Models::Subscription::DiscountInterval::PercentageDiscountInterval, Orb::Models::Subscription::DiscountInterval::UsageDiscountInterval] end type fixed_fee_quantity_schedule = @@ -544,17 +500,12 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - end_date: Time?, - price_id: String, - quantity: Float, - start_date: Time - ) -> void - | ( - ?Orb::Models::Subscription::fixed_fee_quantity_schedule - | Orb::BaseModel data - ) -> void + def initialize: ( + end_date: Time?, + price_id: String, + quantity: Float, + start_date: Time + ) -> void def to_hash: -> Orb::Models::Subscription::fixed_fee_quantity_schedule end @@ -579,17 +530,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - maximum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::Subscription::maximum_interval | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + maximum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::Subscription::maximum_interval end @@ -614,17 +561,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - minimum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::Subscription::minimum_interval | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + minimum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::Subscription::minimum_interval end @@ -664,22 +607,18 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - end_date: Time?, - filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition]?, - price: Orb::Models::price, - start_date: Time, - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::Subscription::price_interval | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + end_date: Time?, + filter: String?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::Subscription::PriceInterval::FixedFeeQuantityTransition]?, + price: Orb::Models::price, + start_date: Time, + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::Subscription::price_interval @@ -693,12 +632,11 @@ module Orb attr_accessor quantity: Integer - def initialize: - (effective_date: Time, price_id: String, quantity: Integer) -> void - | ( - ?Orb::Models::Subscription::PriceInterval::fixed_fee_quantity_transition - | Orb::BaseModel data - ) -> void + def initialize: ( + effective_date: Time, + price_id: String, + quantity: Integer + ) -> void def to_hash: -> Orb::Models::Subscription::PriceInterval::fixed_fee_quantity_transition end @@ -714,23 +652,25 @@ module Orb attr_accessor start_date: Time - def initialize: - (coupon_id: String, end_date: Time?, start_date: Time) -> void - | ( - ?Orb::Models::Subscription::redeemed_coupon | Orb::BaseModel data - ) -> void + def initialize: ( + coupon_id: String, + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::Subscription::redeemed_coupon end type status = :active | :ended | :upcoming - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ENDED: :ended UPCOMING: :upcoming - def self.values: -> ::Array[Orb::Models::Subscription::status] + def self?.values: -> ::Array[Orb::Models::Subscription::status] end type trial_info = { end_date: Time? } @@ -738,11 +678,7 @@ module Orb class TrialInfo < Orb::BaseModel attr_accessor end_date: Time? - def initialize: - (end_date: Time?) -> void - | ( - ?Orb::Models::Subscription::trial_info | Orb::BaseModel data - ) -> void + def initialize: (end_date: Time?) -> void def to_hash: -> Orb::Models::Subscription::trial_info end diff --git a/sig/orb/models/subscription_cancel_params.rbs b/sig/orb/models/subscription_cancel_params.rbs index 91fcd3c1..b0d0c92d 100644 --- a/sig/orb/models/subscription_cancel_params.rbs +++ b/sig/orb/models/subscription_cancel_params.rbs @@ -18,28 +18,26 @@ module Orb attr_accessor cancellation_date: Time? - def initialize: - ( - cancel_option: Orb::Models::SubscriptionCancelParams::cancel_option, - allow_invoice_credit_or_void: bool?, - cancellation_date: Time?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::subscription_cancel_params | Orb::BaseModel data - ) -> void + def initialize: ( + cancel_option: Orb::Models::SubscriptionCancelParams::cancel_option, + ?allow_invoice_credit_or_void: bool?, + ?cancellation_date: Time?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::subscription_cancel_params type cancel_option = :end_of_subscription_term | :immediate | :requested_date - class CancelOption < Orb::Enum + module CancelOption + extend Orb::Enum + END_OF_SUBSCRIPTION_TERM: :end_of_subscription_term IMMEDIATE: :immediate REQUESTED_DATE: :requested_date - def self.values: -> ::Array[Orb::Models::SubscriptionCancelParams::cancel_option] + def self?.values: -> ::Array[Orb::Models::SubscriptionCancelParams::cancel_option] end end end diff --git a/sig/orb/models/subscription_cancel_response.rbs b/sig/orb/models/subscription_cancel_response.rbs index 4d79f665..d96e8bae 100644 --- a/sig/orb/models/subscription_cancel_response.rbs +++ b/sig/orb/models/subscription_cancel_response.rbs @@ -80,37 +80,33 @@ module Orb attr_accessor trial_info: Orb::Models::SubscriptionCancelResponse::TrialInfo - def initialize: - ( - id: String, - active_plan_phase_order: Integer?, - adjustment_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval], - auto_collection: bool?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, - default_invoice_memo: String?, - discount_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::discount_interval], - end_date: Time?, - fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule], - invoicing_threshold: String?, - maximum_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval], - metadata: ::Hash[Symbol, String], - minimum_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval], - redeemed_coupon: Orb::Models::SubscriptionCancelResponse::RedeemedCoupon?, - start_date: Time, - status: Orb::Models::SubscriptionCancelResponse::status, - trial_info: Orb::Models::SubscriptionCancelResponse::TrialInfo - ) -> void - | ( - ?Orb::Models::subscription_cancel_response | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + active_plan_phase_order: Integer?, + adjustment_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::AdjustmentInterval], + auto_collection: bool?, + billing_cycle_anchor_configuration: Orb::Models::SubscriptionCancelResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + customer: Orb::Models::Customer, + default_invoice_memo: String?, + discount_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::discount_interval], + end_date: Time?, + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionCancelResponse::FixedFeeQuantitySchedule], + invoicing_threshold: String?, + maximum_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: ::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval], + redeemed_coupon: Orb::Models::SubscriptionCancelResponse::RedeemedCoupon?, + start_date: Time, + status: Orb::Models::SubscriptionCancelResponse::status, + trial_info: Orb::Models::SubscriptionCancelResponse::TrialInfo + ) -> void def to_hash: -> Orb::Models::subscription_cancel_response @@ -134,18 +130,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - id: String, - adjustment: Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::adjustment_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + adjustment: Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::adjustment, + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::adjustment_interval @@ -156,7 +147,9 @@ module Orb | Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment | Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type plan_phase_usage_discount_adjustment = { id: String, @@ -183,20 +176,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end @@ -227,20 +215,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end @@ -271,20 +254,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end @@ -318,21 +296,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end @@ -363,25 +336,20 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end - def self.variants: -> [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] + def self?.variants: -> [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 end @@ -395,12 +363,11 @@ module Orb attr_accessor year: Integer? - def initialize: - (day: Integer, month: Integer?, year: Integer?) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::billing_cycle_anchor_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + day: Integer, + ?month: Integer?, + ?year: Integer? + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::billing_cycle_anchor_configuration end @@ -410,7 +377,9 @@ module Orb | Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval | Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + type amount_discount_interval = { amount_discount: String, @@ -434,19 +403,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - discount_type: :amount - ) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::DiscountInterval::amount_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + ?discount_type: :amount + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::amount_discount_interval end @@ -474,19 +438,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - percentage_discount: Float, - start_date: Time, - discount_type: :percentage - ) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::DiscountInterval::percentage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + percentage_discount: Float, + start_date: Time, + ?discount_type: :percentage + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::percentage_discount_interval end @@ -514,24 +473,19 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - usage_discount: Float, - discount_type: :usage - ) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::DiscountInterval::usage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + usage_discount: Float, + ?discount_type: :usage + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::DiscountInterval::usage_discount_interval end - def self.variants: -> [Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval] + def self?.variants: -> [Orb::Models::SubscriptionCancelResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCancelResponse::DiscountInterval::UsageDiscountInterval] end type fixed_fee_quantity_schedule = @@ -546,17 +500,12 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - end_date: Time?, - price_id: String, - quantity: Float, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::fixed_fee_quantity_schedule - | Orb::BaseModel data - ) -> void + def initialize: ( + end_date: Time?, + price_id: String, + quantity: Float, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::fixed_fee_quantity_schedule end @@ -581,18 +530,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - maximum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::maximum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + maximum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::maximum_interval end @@ -617,18 +561,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - minimum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::minimum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + minimum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::minimum_interval end @@ -668,23 +607,18 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - end_date: Time?, - filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition]?, - price: Orb::Models::price, - start_date: Time, - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::price_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + end_date: Time?, + filter: String?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionCancelResponse::PriceInterval::FixedFeeQuantityTransition]?, + price: Orb::Models::price, + start_date: Time, + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::price_interval @@ -698,12 +632,11 @@ module Orb attr_accessor quantity: Integer - def initialize: - (effective_date: Time, price_id: String, quantity: Integer) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::PriceInterval::fixed_fee_quantity_transition - | Orb::BaseModel data - ) -> void + def initialize: ( + effective_date: Time, + price_id: String, + quantity: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::PriceInterval::fixed_fee_quantity_transition end @@ -719,24 +652,25 @@ module Orb attr_accessor start_date: Time - def initialize: - (coupon_id: String, end_date: Time?, start_date: Time) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::redeemed_coupon - | Orb::BaseModel data - ) -> void + def initialize: ( + coupon_id: String, + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::redeemed_coupon end type status = :active | :ended | :upcoming - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ENDED: :ended UPCOMING: :upcoming - def self.values: -> ::Array[Orb::Models::SubscriptionCancelResponse::status] + def self?.values: -> ::Array[Orb::Models::SubscriptionCancelResponse::status] end type trial_info = { end_date: Time? } @@ -744,12 +678,7 @@ module Orb class TrialInfo < Orb::BaseModel attr_accessor end_date: Time? - def initialize: - (end_date: Time?) -> void - | ( - ?Orb::Models::SubscriptionCancelResponse::trial_info - | Orb::BaseModel data - ) -> void + def initialize: (end_date: Time?) -> void def to_hash: -> Orb::Models::SubscriptionCancelResponse::trial_info end diff --git a/sig/orb/models/subscription_create_params.rbs b/sig/orb/models/subscription_create_params.rbs index 7ec37406..15a47f57 100644 --- a/sig/orb/models/subscription_create_params.rbs +++ b/sig/orb/models/subscription_create_params.rbs @@ -104,44 +104,40 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - add_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]?, - add_prices: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice]?, - align_billing_with_subscription_start_date: bool, - auto_collection: bool?, - aws_region: String?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration?, - coupon_redemption_code: String?, - credits_overage_rate: Float?, - customer_id: String?, - default_invoice_memo: String?, - end_date: Time?, - external_customer_id: String?, - external_marketplace: Orb::Models::SubscriptionCreateParams::external_marketplace?, - external_marketplace_reporting_id: String?, - external_plan_id: String?, - filter: String?, - initial_phase_order: Integer?, - invoicing_threshold: String?, - metadata: ::Hash[Symbol, String?]?, - net_terms: Integer?, - per_credit_overage_amount: Float?, - plan_id: String?, - plan_version_number: Integer?, - price_overrides: ::Array[top]?, - remove_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment]?, - remove_prices: ::Array[Orb::Models::SubscriptionCreateParams::RemovePrice]?, - replace_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment]?, - replace_prices: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice]?, - start_date: Time?, - trial_duration_days: Integer?, - usage_customer_ids: ::Array[String]?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::subscription_create_params | Orb::BaseModel data - ) -> void + def initialize: ( + ?add_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]?, + ?add_prices: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice]?, + ?align_billing_with_subscription_start_date: bool, + ?auto_collection: bool?, + ?aws_region: String?, + ?billing_cycle_anchor_configuration: Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration?, + ?coupon_redemption_code: String?, + ?credits_overage_rate: Float?, + ?customer_id: String?, + ?default_invoice_memo: String?, + ?end_date: Time?, + ?external_customer_id: String?, + ?external_marketplace: Orb::Models::SubscriptionCreateParams::external_marketplace?, + ?external_marketplace_reporting_id: String?, + ?external_plan_id: String?, + ?filter: String?, + ?initial_phase_order: Integer?, + ?invoicing_threshold: String?, + ?metadata: ::Hash[Symbol, String?]?, + ?net_terms: Integer?, + ?per_credit_overage_amount: Float?, + ?plan_id: String?, + ?plan_version_number: Integer?, + ?price_overrides: ::Array[top]?, + ?remove_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment]?, + ?remove_prices: ::Array[Orb::Models::SubscriptionCreateParams::RemovePrice]?, + ?replace_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment]?, + ?replace_prices: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice]?, + ?start_date: Time?, + ?trial_duration_days: Integer?, + ?usage_customer_ids: ::Array[String]?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::subscription_create_params @@ -162,17 +158,12 @@ module Orb attr_accessor start_date: Time? - def initialize: - ( - adjustment: Orb::Models::SubscriptionCreateParams::AddAdjustment::adjustment, - end_date: Time?, - plan_phase_order: Integer?, - start_date: Time? - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::add_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + adjustment: Orb::Models::SubscriptionCreateParams::AddAdjustment::adjustment, + ?end_date: Time?, + ?plan_phase_order: Integer?, + ?start_date: Time? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::add_adjustment @@ -183,7 +174,9 @@ module Orb | Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMinimum | Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::NewMaximum - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type new_percentage_discount = { adjustment_type: :percentage_discount, @@ -203,17 +196,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - percentage_discount: Float, - is_invoice_level: bool, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_percentage_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + percentage_discount: Float, + ?is_invoice_level: bool, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_percentage_discount end @@ -237,17 +225,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - usage_discount: Float, - is_invoice_level: bool, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_usage_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + usage_discount: Float, + ?is_invoice_level: bool, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_usage_discount end @@ -271,17 +254,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_amount_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + ?is_invoice_level: bool, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_amount_discount end @@ -308,18 +286,13 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - item_id: String, - minimum_amount: String, - is_invoice_level: bool, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + item_id: String, + minimum_amount: String, + ?is_invoice_level: bool, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_minimum end @@ -343,22 +316,17 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String, - is_invoice_level: bool, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String, + ?is_invoice_level: bool, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddAdjustment::Adjustment::new_maximum end - def self.variants: -> [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] + def self?.variants: -> [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 end @@ -397,23 +365,18 @@ module Orb attr_accessor start_date: Time? - def initialize: - ( - allocation_price: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice?, - discounts: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount]?, - end_date: Time?, - external_price_id: String?, - maximum_amount: String?, - minimum_amount: String?, - plan_phase_order: Integer?, - price: Orb::Models::SubscriptionCreateParams::AddPrice::price?, - price_id: String?, - start_date: Time? - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::add_price - | Orb::BaseModel data - ) -> void + def initialize: ( + ?allocation_price: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice?, + ?discounts: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount]?, + ?end_date: Time?, + ?external_price_id: String?, + ?maximum_amount: String?, + ?minimum_amount: String?, + ?plan_phase_order: Integer?, + ?price: Orb::Models::SubscriptionCreateParams::AddPrice::price?, + ?price_id: String?, + ?start_date: Time? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::add_price @@ -434,24 +397,21 @@ module Orb attr_accessor expires_at_end_of_cadence: bool - def initialize: - ( - amount: String, - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::cadence, - currency: String, - expires_at_end_of_cadence: bool - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::cadence, + currency: String, + expires_at_end_of_cadence: bool + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::allocation_price type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -459,7 +419,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::AllocationPrice::cadence] end end @@ -480,28 +440,25 @@ module Orb attr_accessor usage_discount: Float? - def initialize: - ( - discount_type: Orb::Models::SubscriptionCreateParams::AddPrice::Discount::discount_type, - amount_discount: String?, - percentage_discount: Float?, - usage_discount: Float? - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::discount - | Orb::BaseModel data - ) -> void + def initialize: ( + discount_type: Orb::Models::SubscriptionCreateParams::AddPrice::Discount::discount_type, + ?amount_discount: String?, + ?percentage_discount: Float?, + ?usage_discount: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::discount type discount_type = :percentage | :usage | :amount - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE: :percentage USAGE: :usage AMOUNT: :amount - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount::discount_type] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Discount::discount_type] end end @@ -532,7 +489,9 @@ module Orb | Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice | Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice - class Price < Orb::Union + module Price + extend Orb::Union + type new_subscription_unit_price = { cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::cadence, @@ -586,29 +545,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::cadence, - item_id: String, - name: String, - unit_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_unit_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::cadence, + item_id: String, + name: String, + unit_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_unit_price @@ -620,7 +574,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -628,7 +584,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::cadence] end type unit_config = { unit_amount: String } @@ -636,12 +592,7 @@ module Orb class UnitConfig < Orb::BaseModel attr_accessor unit_amount: String - def initialize: - (unit_amount: String) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::unit_config - | Orb::BaseModel data - ) -> void + def initialize: (unit_amount: String) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::unit_config end @@ -657,25 +608,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit] end end @@ -690,25 +638,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -766,29 +711,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::cadence, - item_id: String, - name: String, - package_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :package - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::cadence, + item_id: String, + name: String, + package_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :package + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_package_price @@ -800,7 +740,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -808,7 +750,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::cadence] end type package_config = @@ -819,12 +761,10 @@ module Orb attr_accessor package_size: Integer - def initialize: - (package_amount: String, package_size: Integer) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::package_config - | Orb::BaseModel data - ) -> void + def initialize: ( + package_amount: String, + package_size: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::package_config end @@ -840,25 +780,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -873,25 +810,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -949,29 +883,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::cadence, - item_id: String, - matrix_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :matrix - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_matrix_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::cadence, + item_id: String, + matrix_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :matrix + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_matrix_price @@ -983,7 +912,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -991,7 +922,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::cadence] end type matrix_config = @@ -1008,16 +939,11 @@ module Orb attr_accessor matrix_values: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - def initialize: - ( - default_unit_amount: String, - dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::matrix_config - | Orb::BaseModel data - ) -> void + def initialize: ( + default_unit_amount: String, + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::matrix_config @@ -1029,15 +955,10 @@ module Orb attr_accessor unit_amount: String - def initialize: - ( - dimension_values: ::Array[String?], - unit_amount: String - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::matrix_value - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String?], + unit_amount: String + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::matrix_value end @@ -1054,25 +975,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit] end end @@ -1087,25 +1005,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1163,29 +1078,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::cadence, - item_id: String, - name: String, - tiered_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tiered_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::cadence, + item_id: String, + name: String, + tiered_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tiered_price @@ -1197,7 +1107,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1205,7 +1117,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::cadence] end type tiered_config = @@ -1216,14 +1128,9 @@ module Orb class TieredConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::tiered_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::tiered_config @@ -1237,16 +1144,11 @@ module Orb attr_accessor last_unit: Float? - def initialize: - ( - first_unit: Float, - unit_amount: String, - last_unit: Float? - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + first_unit: Float, + unit_amount: String, + ?last_unit: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::tier end @@ -1263,25 +1165,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit] end end @@ -1296,25 +1195,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1372,29 +1268,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::cadence, - item_id: String, - name: String, - tiered_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_bps - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tiered_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::cadence, + item_id: String, + name: String, + tiered_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_bps + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tiered_bps_price @@ -1406,7 +1297,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1414,7 +1307,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::cadence] end type tiered_bps_config = @@ -1425,14 +1318,9 @@ module Orb class TieredBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config @@ -1453,17 +1341,12 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - minimum_amount: String, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + minimum_amount: String, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::tier end @@ -1480,25 +1363,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1513,25 +1393,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1589,29 +1466,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bps - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bps + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_bps_price @@ -1622,12 +1494,7 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - (bps: Float, per_unit_maximum: String?) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::bps_config - | Orb::BaseModel data - ) -> void + def initialize: (bps: Float, ?per_unit_maximum: String?) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::bps_config end @@ -1640,7 +1507,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1648,7 +1517,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::cadence] end type billing_cycle_configuration = @@ -1662,25 +1531,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1695,25 +1561,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1771,29 +1634,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bulk_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bulk_bps - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_bulk_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_bps_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bulk_bps + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_bulk_bps_price @@ -1805,14 +1663,9 @@ module Orb class BulkBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config @@ -1830,16 +1683,11 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::tier end @@ -1853,7 +1701,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1861,7 +1711,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::cadence] end type billing_cycle_configuration = @@ -1875,25 +1725,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1908,25 +1755,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1984,29 +1828,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bulk_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bulk - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_bulk_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bulk + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_bulk_price @@ -2018,14 +1857,9 @@ module Orb class BulkConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::bulk_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::bulk_config @@ -2036,12 +1870,10 @@ module Orb attr_accessor maximum_units: Float? - def initialize: - (unit_amount: String, maximum_units: Float?) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + unit_amount: String, + ?maximum_units: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::tier end @@ -2055,7 +1887,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2063,7 +1897,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::cadence] end type billing_cycle_configuration = @@ -2077,25 +1911,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -2110,25 +1941,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2186,29 +2014,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence, - item_id: String, - name: String, - threshold_total_amount_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :threshold_total_amount - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_threshold_total_amount_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence, + item_id: String, + name: String, + threshold_total_amount_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :threshold_total_amount + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_threshold_total_amount_price @@ -2220,7 +2043,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2228,7 +2053,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence] end type billing_cycle_configuration = @@ -2242,25 +2067,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void - + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit + ) -> void + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] end end @@ -2275,25 +2097,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2351,29 +2170,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::cadence, - item_id: String, - name: String, - tiered_package_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::cadence, + item_id: String, + name: String, + tiered_package_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tiered_package_price @@ -2385,7 +2199,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2393,7 +2209,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -2407,25 +2223,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -2440,25 +2253,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2516,29 +2326,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence, - item_id: String, - name: String, - tiered_with_minimum_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_with_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tiered_with_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence, + item_id: String, + name: String, + tiered_with_minimum_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_with_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tiered_with_minimum_price @@ -2550,7 +2355,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2558,7 +2365,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence] end type billing_cycle_configuration = @@ -2572,25 +2379,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -2605,25 +2409,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2681,29 +2482,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::cadence, - item_id: String, - name: String, - unit_with_percent_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :unit_with_percent - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_unit_with_percent_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::cadence, + item_id: String, + name: String, + unit_with_percent_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :unit_with_percent + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_unit_with_percent_price @@ -2715,7 +2511,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2723,7 +2521,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::cadence] end type billing_cycle_configuration = @@ -2737,25 +2535,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] end end @@ -2770,25 +2565,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2846,29 +2638,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence, - item_id: String, - name: String, - package_with_allocation_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :package_with_allocation - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_package_with_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence, + item_id: String, + name: String, + package_with_allocation_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :package_with_allocation + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_package_with_allocation_price @@ -2880,7 +2667,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2888,7 +2677,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence] end type billing_cycle_configuration = @@ -2902,25 +2691,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -2935,25 +2721,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3011,29 +2794,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::cadence, - item_id: String, - name: String, - tiered_with_proration_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tier_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::cadence, + item_id: String, + name: String, + tiered_with_proration_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_tier_with_proration_price @@ -3045,7 +2823,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3053,7 +2833,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -3067,25 +2847,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3100,25 +2877,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3176,29 +2950,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::cadence, - item_id: String, - name: String, - unit_with_proration_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :unit_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_unit_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::cadence, + item_id: String, + name: String, + unit_with_proration_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :unit_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_unit_with_proration_price @@ -3210,7 +2979,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3218,7 +2989,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -3232,25 +3003,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3265,25 +3033,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3341,29 +3106,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::cadence, - grouped_allocation_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_allocation - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_grouped_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::cadence, + grouped_allocation_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_allocation + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_grouped_allocation_price @@ -3375,7 +3135,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3383,7 +3145,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::cadence] end type billing_cycle_configuration = @@ -3397,25 +3159,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3430,25 +3189,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3506,29 +3262,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence, - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_with_prorated_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_grouped_with_prorated_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence, + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_with_prorated_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_grouped_with_prorated_minimum_price @@ -3540,7 +3291,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3548,7 +3301,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence] end type billing_cycle_configuration = @@ -3562,25 +3315,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -3595,25 +3345,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3671,29 +3418,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bulk_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_bulk_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_with_proration_config: ::Hash[Symbol, top], + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bulk_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_bulk_with_proration_price @@ -3705,7 +3447,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3713,7 +3457,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -3727,25 +3471,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3760,25 +3501,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3836,29 +3574,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::cadence, - item_id: String, - name: String, - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :scalable_matrix_with_unit_pricing - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_scalable_matrix_with_unit_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::cadence, + item_id: String, + name: String, + scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :scalable_matrix_with_unit_pricing + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_scalable_matrix_with_unit_pricing_price @@ -3870,7 +3603,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3878,7 +3613,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::cadence] end type billing_cycle_configuration = @@ -3892,25 +3627,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -3925,25 +3657,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4001,29 +3730,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::cadence, - item_id: String, - name: String, - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :scalable_matrix_with_tiered_pricing - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_scalable_matrix_with_tiered_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::cadence, + item_id: String, + name: String, + scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :scalable_matrix_with_tiered_pricing + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_scalable_matrix_with_tiered_pricing_price @@ -4035,7 +3759,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4043,7 +3769,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::cadence] end type billing_cycle_configuration = @@ -4057,25 +3783,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -4090,25 +3813,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4166,29 +3886,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::cadence, - cumulative_grouped_bulk_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :cumulative_grouped_bulk - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_cumulative_grouped_bulk_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::cadence, + cumulative_grouped_bulk_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :cumulative_grouped_bulk + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_cumulative_grouped_bulk_price @@ -4200,7 +3915,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4208,7 +3925,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::cadence] end type billing_cycle_configuration = @@ -4222,25 +3939,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -4255,25 +3969,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4331,32 +4042,27 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::cadence, - item_id: String, - max_group_tiered_package_config: ::Hash[Symbol, top], - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :max_group_tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_max_group_tiered_package_price - | Orb::BaseModel data - ) -> void - - def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_max_group_tiered_package_price - + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::cadence, + item_id: String, + max_group_tiered_package_config: ::Hash[Symbol, top], + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :max_group_tiered_package + ) -> void + + def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_max_group_tiered_package_price + type cadence = :annual | :semi_annual @@ -4365,7 +4071,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4373,7 +4081,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -4387,25 +4095,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -4420,25 +4125,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4496,29 +4198,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence, - grouped_with_metered_minimum_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_with_metered_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_grouped_with_metered_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence, + grouped_with_metered_minimum_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_with_metered_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_grouped_with_metered_minimum_price @@ -4530,7 +4227,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4538,7 +4237,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence] end type billing_cycle_configuration = @@ -4552,25 +4251,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -4585,25 +4281,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4661,29 +4354,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::cadence, - item_id: String, - matrix_with_display_name_config: ::Hash[Symbol, top], - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :matrix_with_display_name - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_matrix_with_display_name_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::cadence, + item_id: String, + matrix_with_display_name_config: ::Hash[Symbol, top], + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :matrix_with_display_name + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_matrix_with_display_name_price @@ -4695,7 +4383,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4703,7 +4393,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::cadence] end type billing_cycle_configuration = @@ -4717,25 +4407,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] end end @@ -4750,25 +4437,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4826,29 +4510,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::cadence, - grouped_tiered_package_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_grouped_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::cadence, + grouped_tiered_package_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::new_subscription_grouped_tiered_package_price @@ -4860,7 +4539,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4868,7 +4549,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -4882,25 +4563,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -4915,30 +4593,27 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end - def self.variants: -> [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::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice] + def self?.variants: -> [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::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice] end end @@ -4952,24 +4627,25 @@ module Orb attr_accessor year: Integer? - def initialize: - (day: Integer, month: Integer?, year: Integer?) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::billing_cycle_anchor_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + day: Integer, + ?month: Integer?, + ?year: Integer? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::billing_cycle_anchor_configuration end type external_marketplace = :google | :aws | :azure - class ExternalMarketplace < Orb::Enum + module ExternalMarketplace + extend Orb::Enum + GOOGLE: :google AWS: :aws AZURE: :azure - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::external_marketplace] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::external_marketplace] end type remove_adjustment = { adjustment_id: String } @@ -4977,12 +4653,7 @@ module Orb class RemoveAdjustment < Orb::BaseModel attr_accessor adjustment_id: String - def initialize: - (adjustment_id: String) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::remove_adjustment - | Orb::BaseModel data - ) -> void + def initialize: (adjustment_id: String) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::remove_adjustment end @@ -4994,12 +4665,10 @@ module Orb attr_accessor price_id: String? - def initialize: - (external_price_id: String?, price_id: String?) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::remove_price - | Orb::BaseModel data - ) -> void + def initialize: ( + ?external_price_id: String?, + ?price_id: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::remove_price end @@ -5015,15 +4684,10 @@ module Orb attr_accessor replaces_adjustment_id: String - def initialize: - ( - adjustment: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::adjustment, - replaces_adjustment_id: String - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::replace_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + adjustment: Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::adjustment, + replaces_adjustment_id: String + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::replace_adjustment @@ -5034,7 +4698,9 @@ module Orb | Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMinimum | Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::NewMaximum - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type new_percentage_discount = { adjustment_type: :percentage_discount, @@ -5054,17 +4720,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - percentage_discount: Float, - is_invoice_level: bool, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_percentage_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + percentage_discount: Float, + ?is_invoice_level: bool, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_percentage_discount end @@ -5088,17 +4749,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - usage_discount: Float, - is_invoice_level: bool, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_usage_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + usage_discount: Float, + ?is_invoice_level: bool, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_usage_discount end @@ -5122,17 +4778,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_amount_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + ?is_invoice_level: bool, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_amount_discount end @@ -5159,18 +4810,13 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - item_id: String, - minimum_amount: String, - is_invoice_level: bool, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + item_id: String, + minimum_amount: String, + ?is_invoice_level: bool, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_minimum end @@ -5194,22 +4840,17 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String, - is_invoice_level: bool, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String, + ?is_invoice_level: bool, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::new_maximum end - def self.variants: -> [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] + def self?.variants: -> [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 end @@ -5245,22 +4886,17 @@ module Orb attr_accessor price_id: String? - def initialize: - ( - replaces_price_id: String, - allocation_price: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice?, - discounts: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount]?, - external_price_id: String?, - fixed_price_quantity: Float?, - maximum_amount: String?, - minimum_amount: String?, - price: Orb::Models::SubscriptionCreateParams::ReplacePrice::price?, - price_id: String? - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::replace_price - | Orb::BaseModel data - ) -> void + def initialize: ( + replaces_price_id: String, + ?allocation_price: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice?, + ?discounts: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount]?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?maximum_amount: String?, + ?minimum_amount: String?, + ?price: Orb::Models::SubscriptionCreateParams::ReplacePrice::price?, + ?price_id: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::replace_price @@ -5281,24 +4917,21 @@ module Orb attr_accessor expires_at_end_of_cadence: bool - def initialize: - ( - amount: String, - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::cadence, - currency: String, - expires_at_end_of_cadence: bool - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::cadence, + currency: String, + expires_at_end_of_cadence: bool + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::allocation_price type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -5306,7 +4939,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::AllocationPrice::cadence] end end @@ -5327,28 +4960,25 @@ module Orb attr_accessor usage_discount: Float? - def initialize: - ( - discount_type: Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::discount_type, - amount_discount: String?, - percentage_discount: Float?, - usage_discount: Float? - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::discount - | Orb::BaseModel data - ) -> void + def initialize: ( + discount_type: Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::discount_type, + ?amount_discount: String?, + ?percentage_discount: Float?, + ?usage_discount: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::discount type discount_type = :percentage | :usage | :amount - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE: :percentage USAGE: :usage AMOUNT: :amount - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::discount_type] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Discount::discount_type] end end @@ -5379,7 +5009,9 @@ module Orb | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice | Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice - class Price < Orb::Union + module Price + extend Orb::Union + type new_subscription_unit_price = { cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::cadence, @@ -5433,29 +5065,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::cadence, - item_id: String, - name: String, - unit_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_unit_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::cadence, + item_id: String, + name: String, + unit_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_unit_price @@ -5467,7 +5094,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -5475,7 +5104,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::cadence] end type unit_config = { unit_amount: String } @@ -5483,12 +5112,7 @@ module Orb class UnitConfig < Orb::BaseModel attr_accessor unit_amount: String - def initialize: - (unit_amount: String) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::unit_config - | Orb::BaseModel data - ) -> void + def initialize: (unit_amount: String) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::unit_config end @@ -5504,25 +5128,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit] end end @@ -5537,25 +5158,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -5613,29 +5231,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::cadence, - item_id: String, - name: String, - package_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :package - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::cadence, + item_id: String, + name: String, + package_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :package + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_package_price @@ -5647,7 +5260,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -5655,7 +5270,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::cadence] end type package_config = @@ -5666,12 +5281,10 @@ module Orb attr_accessor package_size: Integer - def initialize: - (package_amount: String, package_size: Integer) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::package_config - | Orb::BaseModel data - ) -> void + def initialize: ( + package_amount: String, + package_size: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::package_config end @@ -5687,25 +5300,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -5720,25 +5330,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -5796,29 +5403,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::cadence, - item_id: String, - matrix_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :matrix - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_matrix_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::cadence, + item_id: String, + matrix_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :matrix + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_matrix_price @@ -5830,7 +5432,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -5838,7 +5442,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::cadence] end type matrix_config = @@ -5855,16 +5459,11 @@ module Orb attr_accessor matrix_values: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - def initialize: - ( - default_unit_amount: String, - dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::matrix_config - | Orb::BaseModel data - ) -> void + def initialize: ( + default_unit_amount: String, + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::matrix_config @@ -5876,15 +5475,10 @@ module Orb attr_accessor unit_amount: String - def initialize: - ( - dimension_values: ::Array[String?], - unit_amount: String - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::matrix_value - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String?], + unit_amount: String + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::matrix_value end @@ -5901,25 +5495,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit] end end @@ -5934,25 +5525,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6010,29 +5598,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::cadence, - item_id: String, - name: String, - tiered_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tiered_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::cadence, + item_id: String, + name: String, + tiered_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tiered_price @@ -6044,7 +5627,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -6052,7 +5637,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::cadence] end type tiered_config = @@ -6063,14 +5648,9 @@ module Orb class TieredConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::tiered_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::tiered_config @@ -6084,16 +5664,11 @@ module Orb attr_accessor last_unit: Float? - def initialize: - ( - first_unit: Float, - unit_amount: String, - last_unit: Float? - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + first_unit: Float, + unit_amount: String, + ?last_unit: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::tier end @@ -6110,25 +5685,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit] end end @@ -6143,25 +5715,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6219,29 +5788,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::cadence, - item_id: String, - name: String, - tiered_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_bps - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tiered_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::cadence, + item_id: String, + name: String, + tiered_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_bps + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tiered_bps_price @@ -6253,7 +5817,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -6261,7 +5827,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::cadence] end type tiered_bps_config = @@ -6272,14 +5838,9 @@ module Orb class TieredBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config @@ -6300,17 +5861,12 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - minimum_amount: String, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + minimum_amount: String, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::tier end @@ -6327,25 +5883,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -6360,25 +5913,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6436,29 +5986,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bps - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bps + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_bps_price @@ -6469,12 +6014,7 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - (bps: Float, per_unit_maximum: String?) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::bps_config - | Orb::BaseModel data - ) -> void + def initialize: (bps: Float, ?per_unit_maximum: String?) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::bps_config end @@ -6487,7 +6027,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -6495,7 +6037,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::cadence] end type billing_cycle_configuration = @@ -6509,25 +6051,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -6542,25 +6081,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6618,29 +6154,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bulk_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bulk_bps - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_bulk_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_bps_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bulk_bps + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_bulk_bps_price @@ -6652,14 +6183,9 @@ module Orb class BulkBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config @@ -6677,16 +6203,11 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::tier end @@ -6700,7 +6221,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -6708,7 +6231,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::cadence] end type billing_cycle_configuration = @@ -6722,25 +6245,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -6755,25 +6275,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6831,29 +6348,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bulk_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bulk - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_bulk_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bulk + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_bulk_price @@ -6865,14 +6377,9 @@ module Orb class BulkConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::bulk_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::bulk_config @@ -6883,12 +6390,10 @@ module Orb attr_accessor maximum_units: Float? - def initialize: - (unit_amount: String, maximum_units: Float?) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + unit_amount: String, + ?maximum_units: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::tier end @@ -6902,7 +6407,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -6910,7 +6417,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::cadence] end type billing_cycle_configuration = @@ -6924,25 +6431,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -6957,25 +6461,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7033,29 +6534,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence, - item_id: String, - name: String, - threshold_total_amount_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :threshold_total_amount - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_threshold_total_amount_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence, + item_id: String, + name: String, + threshold_total_amount_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :threshold_total_amount + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_threshold_total_amount_price @@ -7067,7 +6563,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -7075,7 +6573,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence] end type billing_cycle_configuration = @@ -7089,25 +6587,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] end end @@ -7122,25 +6617,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7198,29 +6690,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::cadence, - item_id: String, - name: String, - tiered_package_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::cadence, + item_id: String, + name: String, + tiered_package_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tiered_package_price @@ -7232,7 +6719,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -7240,7 +6729,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -7254,25 +6743,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -7287,25 +6773,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7363,29 +6846,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence, - item_id: String, - name: String, - tiered_with_minimum_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_with_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tiered_with_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence, + item_id: String, + name: String, + tiered_with_minimum_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_with_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tiered_with_minimum_price @@ -7397,7 +6875,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -7405,7 +6885,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence] end type billing_cycle_configuration = @@ -7419,25 +6899,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -7452,25 +6929,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7528,29 +7002,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::cadence, - item_id: String, - name: String, - unit_with_percent_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :unit_with_percent - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_unit_with_percent_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::cadence, + item_id: String, + name: String, + unit_with_percent_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :unit_with_percent + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_unit_with_percent_price @@ -7562,7 +7031,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -7570,7 +7041,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::cadence] end type billing_cycle_configuration = @@ -7584,25 +7055,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] end end @@ -7617,25 +7085,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7693,29 +7158,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence, - item_id: String, - name: String, - package_with_allocation_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :package_with_allocation - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_package_with_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence, + item_id: String, + name: String, + package_with_allocation_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :package_with_allocation + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_package_with_allocation_price @@ -7727,7 +7187,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -7735,7 +7197,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence] end type billing_cycle_configuration = @@ -7749,25 +7211,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -7782,25 +7241,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7858,29 +7314,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::cadence, - item_id: String, - name: String, - tiered_with_proration_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tier_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::cadence, + item_id: String, + name: String, + tiered_with_proration_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_tier_with_proration_price @@ -7892,7 +7343,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -7900,7 +7353,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -7914,25 +7367,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -7947,25 +7397,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -8023,29 +7470,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::cadence, - item_id: String, - name: String, - unit_with_proration_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :unit_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_unit_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::cadence, + item_id: String, + name: String, + unit_with_proration_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :unit_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_unit_with_proration_price @@ -8057,7 +7499,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -8065,7 +7509,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -8079,25 +7523,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -8112,25 +7553,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -8188,29 +7626,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::cadence, - grouped_allocation_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_allocation - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_grouped_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::cadence, + grouped_allocation_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_allocation + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_grouped_allocation_price @@ -8222,7 +7655,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -8230,7 +7665,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::cadence] end type billing_cycle_configuration = @@ -8244,25 +7679,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -8277,25 +7709,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -8353,29 +7782,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence, - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_with_prorated_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_grouped_with_prorated_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence, + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_with_prorated_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_grouped_with_prorated_minimum_price @@ -8387,7 +7811,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -8395,7 +7821,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence] end type billing_cycle_configuration = @@ -8409,25 +7835,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -8442,25 +7865,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -8518,29 +7938,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bulk_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_bulk_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_with_proration_config: ::Hash[Symbol, top], + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bulk_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_bulk_with_proration_price @@ -8552,7 +7967,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -8560,7 +7977,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -8574,25 +7991,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -8607,25 +8021,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -8683,29 +8094,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::cadence, - item_id: String, - name: String, - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :scalable_matrix_with_unit_pricing - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_scalable_matrix_with_unit_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::cadence, + item_id: String, + name: String, + scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :scalable_matrix_with_unit_pricing + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_scalable_matrix_with_unit_pricing_price @@ -8717,7 +8123,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -8725,7 +8133,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::cadence] end type billing_cycle_configuration = @@ -8739,25 +8147,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -8772,25 +8177,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -8848,29 +8250,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::cadence, - item_id: String, - name: String, - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :scalable_matrix_with_tiered_pricing - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_scalable_matrix_with_tiered_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::cadence, + item_id: String, + name: String, + scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :scalable_matrix_with_tiered_pricing + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_scalable_matrix_with_tiered_pricing_price @@ -8882,7 +8279,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -8890,7 +8289,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::cadence] end type billing_cycle_configuration = @@ -8904,25 +8303,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -8937,25 +8333,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -9013,29 +8406,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::cadence, - cumulative_grouped_bulk_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :cumulative_grouped_bulk - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_cumulative_grouped_bulk_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::cadence, + cumulative_grouped_bulk_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :cumulative_grouped_bulk + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_cumulative_grouped_bulk_price @@ -9047,7 +8435,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -9055,7 +8445,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::cadence] end type billing_cycle_configuration = @@ -9069,25 +8459,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -9102,25 +8489,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -9178,29 +8562,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::cadence, - item_id: String, - max_group_tiered_package_config: ::Hash[Symbol, top], - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :max_group_tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_max_group_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::cadence, + item_id: String, + max_group_tiered_package_config: ::Hash[Symbol, top], + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :max_group_tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_max_group_tiered_package_price @@ -9212,7 +8591,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -9220,7 +8601,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -9234,25 +8615,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -9267,25 +8645,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -9343,29 +8718,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence, - grouped_with_metered_minimum_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_with_metered_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_grouped_with_metered_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence, + grouped_with_metered_minimum_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_with_metered_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_grouped_with_metered_minimum_price @@ -9377,7 +8747,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -9385,7 +8757,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence] end type billing_cycle_configuration = @@ -9399,25 +8771,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -9432,25 +8801,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -9508,29 +8874,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::cadence, - item_id: String, - matrix_with_display_name_config: ::Hash[Symbol, top], - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :matrix_with_display_name - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_matrix_with_display_name_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::cadence, + item_id: String, + matrix_with_display_name_config: ::Hash[Symbol, top], + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :matrix_with_display_name + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_matrix_with_display_name_price @@ -9542,7 +8903,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -9550,7 +8913,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::cadence] end type billing_cycle_configuration = @@ -9564,25 +8927,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] end end @@ -9597,25 +8957,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -9673,29 +9030,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::cadence, - grouped_tiered_package_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_grouped_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::cadence, + grouped_tiered_package_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::new_subscription_grouped_tiered_package_price @@ -9707,7 +9059,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -9715,7 +9069,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -9729,25 +9083,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -9762,30 +9113,27 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end - def self.variants: -> [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::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice] + def self?.variants: -> [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::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice] end end end diff --git a/sig/orb/models/subscription_create_response.rbs b/sig/orb/models/subscription_create_response.rbs index 63cae447..d351f396 100644 --- a/sig/orb/models/subscription_create_response.rbs +++ b/sig/orb/models/subscription_create_response.rbs @@ -80,37 +80,33 @@ module Orb attr_accessor trial_info: Orb::Models::SubscriptionCreateResponse::TrialInfo - def initialize: - ( - id: String, - active_plan_phase_order: Integer?, - adjustment_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval], - auto_collection: bool?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, - default_invoice_memo: String?, - discount_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::discount_interval], - end_date: Time?, - fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule], - invoicing_threshold: String?, - maximum_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval], - metadata: ::Hash[Symbol, String], - minimum_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval], - redeemed_coupon: Orb::Models::SubscriptionCreateResponse::RedeemedCoupon?, - start_date: Time, - status: Orb::Models::SubscriptionCreateResponse::status, - trial_info: Orb::Models::SubscriptionCreateResponse::TrialInfo - ) -> void - | ( - ?Orb::Models::subscription_create_response | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + active_plan_phase_order: Integer?, + adjustment_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::AdjustmentInterval], + auto_collection: bool?, + billing_cycle_anchor_configuration: Orb::Models::SubscriptionCreateResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + customer: Orb::Models::Customer, + default_invoice_memo: String?, + discount_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::discount_interval], + end_date: Time?, + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionCreateResponse::FixedFeeQuantitySchedule], + invoicing_threshold: String?, + maximum_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: ::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval], + redeemed_coupon: Orb::Models::SubscriptionCreateResponse::RedeemedCoupon?, + start_date: Time, + status: Orb::Models::SubscriptionCreateResponse::status, + trial_info: Orb::Models::SubscriptionCreateResponse::TrialInfo + ) -> void def to_hash: -> Orb::Models::subscription_create_response @@ -134,18 +130,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - id: String, - adjustment: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::adjustment_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + adjustment: Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::adjustment, + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::adjustment_interval @@ -156,7 +147,9 @@ module Orb | Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment | Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type plan_phase_usage_discount_adjustment = { id: String, @@ -183,20 +176,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end @@ -227,20 +215,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end @@ -271,20 +254,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end @@ -318,21 +296,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end @@ -363,25 +336,20 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end - def self.variants: -> [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] + def self?.variants: -> [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 end @@ -395,12 +363,11 @@ module Orb attr_accessor year: Integer? - def initialize: - (day: Integer, month: Integer?, year: Integer?) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::billing_cycle_anchor_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + day: Integer, + ?month: Integer?, + ?year: Integer? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::billing_cycle_anchor_configuration end @@ -410,7 +377,9 @@ module Orb | Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval | Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + type amount_discount_interval = { amount_discount: String, @@ -434,19 +403,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - discount_type: :amount - ) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::DiscountInterval::amount_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + ?discount_type: :amount + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::DiscountInterval::amount_discount_interval end @@ -474,19 +438,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - percentage_discount: Float, - start_date: Time, - discount_type: :percentage - ) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::DiscountInterval::percentage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + percentage_discount: Float, + start_date: Time, + ?discount_type: :percentage + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::DiscountInterval::percentage_discount_interval end @@ -514,24 +473,19 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - usage_discount: Float, - discount_type: :usage - ) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::DiscountInterval::usage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + usage_discount: Float, + ?discount_type: :usage + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::DiscountInterval::usage_discount_interval end - def self.variants: -> [Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval] + def self?.variants: -> [Orb::Models::SubscriptionCreateResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionCreateResponse::DiscountInterval::UsageDiscountInterval] end type fixed_fee_quantity_schedule = @@ -546,17 +500,12 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - end_date: Time?, - price_id: String, - quantity: Float, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::fixed_fee_quantity_schedule - | Orb::BaseModel data - ) -> void + def initialize: ( + end_date: Time?, + price_id: String, + quantity: Float, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::fixed_fee_quantity_schedule end @@ -581,18 +530,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - maximum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::maximum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + maximum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::maximum_interval end @@ -617,18 +561,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - minimum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::minimum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + minimum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::minimum_interval end @@ -668,23 +607,18 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - end_date: Time?, - filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition]?, - price: Orb::Models::price, - start_date: Time, - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::price_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + end_date: Time?, + filter: String?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionCreateResponse::PriceInterval::FixedFeeQuantityTransition]?, + price: Orb::Models::price, + start_date: Time, + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::price_interval @@ -698,12 +632,11 @@ module Orb attr_accessor quantity: Integer - def initialize: - (effective_date: Time, price_id: String, quantity: Integer) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::PriceInterval::fixed_fee_quantity_transition - | Orb::BaseModel data - ) -> void + def initialize: ( + effective_date: Time, + price_id: String, + quantity: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::PriceInterval::fixed_fee_quantity_transition end @@ -719,24 +652,25 @@ module Orb attr_accessor start_date: Time - def initialize: - (coupon_id: String, end_date: Time?, start_date: Time) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::redeemed_coupon - | Orb::BaseModel data - ) -> void + def initialize: ( + coupon_id: String, + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::redeemed_coupon end type status = :active | :ended | :upcoming - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ENDED: :ended UPCOMING: :upcoming - def self.values: -> ::Array[Orb::Models::SubscriptionCreateResponse::status] + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateResponse::status] end type trial_info = { end_date: Time? } @@ -744,12 +678,7 @@ module Orb class TrialInfo < Orb::BaseModel attr_accessor end_date: Time? - def initialize: - (end_date: Time?) -> void - | ( - ?Orb::Models::SubscriptionCreateResponse::trial_info - | Orb::BaseModel data - ) -> void + def initialize: (end_date: Time?) -> void def to_hash: -> Orb::Models::SubscriptionCreateResponse::trial_info end diff --git a/sig/orb/models/subscription_fetch_costs_params.rbs b/sig/orb/models/subscription_fetch_costs_params.rbs index 2c6dd039..01780204 100644 --- a/sig/orb/models/subscription_fetch_costs_params.rbs +++ b/sig/orb/models/subscription_fetch_costs_params.rbs @@ -21,27 +21,25 @@ module Orb attr_accessor view_mode: Orb::Models::SubscriptionFetchCostsParams::view_mode? - def initialize: - ( - currency: String?, - timeframe_end: Time?, - timeframe_start: Time?, - view_mode: Orb::Models::SubscriptionFetchCostsParams::view_mode?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::subscription_fetch_costs_params | Orb::BaseModel data - ) -> void + def initialize: ( + ?currency: String?, + ?timeframe_end: Time?, + ?timeframe_start: Time?, + ?view_mode: Orb::Models::SubscriptionFetchCostsParams::view_mode?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::subscription_fetch_costs_params type view_mode = :periodic | :cumulative - class ViewMode < Orb::Enum + module ViewMode + extend Orb::Enum + PERIODIC: :periodic CUMULATIVE: :cumulative - def self.values: -> ::Array[Orb::Models::SubscriptionFetchCostsParams::view_mode] + def self?.values: -> ::Array[Orb::Models::SubscriptionFetchCostsParams::view_mode] end end end diff --git a/sig/orb/models/subscription_fetch_costs_response.rbs b/sig/orb/models/subscription_fetch_costs_response.rbs index 8d28c0f5..27f26ba9 100644 --- a/sig/orb/models/subscription_fetch_costs_response.rbs +++ b/sig/orb/models/subscription_fetch_costs_response.rbs @@ -6,13 +6,9 @@ module Orb class SubscriptionFetchCostsResponse < Orb::BaseModel attr_accessor data: ::Array[Orb::Models::SubscriptionFetchCostsResponse::Data] - def initialize: - ( - data: ::Array[Orb::Models::SubscriptionFetchCostsResponse::Data] - ) -> void - | ( - ?Orb::Models::subscription_fetch_costs_response | Orb::BaseModel data - ) -> void + def initialize: ( + data: ::Array[Orb::Models::SubscriptionFetchCostsResponse::Data] + ) -> void def to_hash: -> Orb::Models::subscription_fetch_costs_response @@ -36,18 +32,13 @@ module Orb attr_accessor total: String - def initialize: - ( - per_price_costs: ::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost], - subtotal: String, - timeframe_end: Time, - timeframe_start: Time, - total: String - ) -> void - | ( - ?Orb::Models::SubscriptionFetchCostsResponse::data - | Orb::BaseModel data - ) -> void + def initialize: ( + per_price_costs: ::Array[Orb::Models::SubscriptionFetchCostsResponse::Data::PerPriceCost], + subtotal: String, + timeframe_end: Time, + timeframe_start: Time, + total: String + ) -> void def to_hash: -> Orb::Models::SubscriptionFetchCostsResponse::data @@ -71,18 +62,13 @@ module Orb attr_accessor quantity: Float? - def initialize: - ( - price: Orb::Models::price, - price_id: String, - subtotal: String, - total: String, - quantity: Float? - ) -> void - | ( - ?Orb::Models::SubscriptionFetchCostsResponse::Data::per_price_cost - | Orb::BaseModel data - ) -> void + def initialize: ( + price: Orb::Models::price, + price_id: String, + subtotal: String, + total: String, + ?quantity: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionFetchCostsResponse::Data::per_price_cost end diff --git a/sig/orb/models/subscription_fetch_params.rbs b/sig/orb/models/subscription_fetch_params.rbs index 0ddfd0bd..5eef1b0d 100644 --- a/sig/orb/models/subscription_fetch_params.rbs +++ b/sig/orb/models/subscription_fetch_params.rbs @@ -6,11 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::subscription_fetch_params | Orb::BaseModel data - ) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::subscription_fetch_params end diff --git a/sig/orb/models/subscription_fetch_schedule_params.rbs b/sig/orb/models/subscription_fetch_schedule_params.rbs index 0906b95d..9b6eb3dd 100644 --- a/sig/orb/models/subscription_fetch_schedule_params.rbs +++ b/sig/orb/models/subscription_fetch_schedule_params.rbs @@ -29,19 +29,15 @@ module Orb attr_accessor start_date_lte: Time? - def initialize: - ( - cursor: String?, - limit: Integer, - start_date_gt: Time?, - start_date_gte: Time?, - start_date_lt: Time?, - start_date_lte: Time?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::subscription_fetch_schedule_params | Orb::BaseModel data - ) -> void + def initialize: ( + ?cursor: String?, + ?limit: Integer, + ?start_date_gt: Time?, + ?start_date_gte: Time?, + ?start_date_lt: Time?, + ?start_date_lte: Time?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::subscription_fetch_schedule_params end diff --git a/sig/orb/models/subscription_fetch_schedule_response.rbs b/sig/orb/models/subscription_fetch_schedule_response.rbs index 1d25b050..b0338e96 100644 --- a/sig/orb/models/subscription_fetch_schedule_response.rbs +++ b/sig/orb/models/subscription_fetch_schedule_response.rbs @@ -17,17 +17,12 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - created_at: Time, - end_date: Time?, - plan: Orb::Models::SubscriptionFetchScheduleResponse::Plan, - start_date: Time - ) -> void - | ( - ?Orb::Models::subscription_fetch_schedule_response - | Orb::BaseModel data - ) -> void + def initialize: ( + created_at: Time, + end_date: Time?, + plan: Orb::Models::SubscriptionFetchScheduleResponse::Plan, + start_date: Time + ) -> void def to_hash: -> Orb::Models::subscription_fetch_schedule_response @@ -40,12 +35,11 @@ module Orb attr_accessor name: String? - def initialize: - (id: String?, external_plan_id: String?, name: String?) -> void - | ( - ?Orb::Models::SubscriptionFetchScheduleResponse::plan - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String?, + external_plan_id: String?, + name: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionFetchScheduleResponse::plan end diff --git a/sig/orb/models/subscription_fetch_usage_params.rbs b/sig/orb/models/subscription_fetch_usage_params.rbs index 4201d5ed..4efed748 100644 --- a/sig/orb/models/subscription_fetch_usage_params.rbs +++ b/sig/orb/models/subscription_fetch_usage_params.rbs @@ -39,41 +39,41 @@ module Orb attr_accessor view_mode: Orb::Models::SubscriptionFetchUsageParams::view_mode? - def initialize: - ( - billable_metric_id: String?, - first_dimension_key: String?, - first_dimension_value: String?, - granularity: Orb::Models::SubscriptionFetchUsageParams::granularity?, - group_by: String?, - second_dimension_key: String?, - second_dimension_value: String?, - timeframe_end: Time?, - timeframe_start: Time?, - view_mode: Orb::Models::SubscriptionFetchUsageParams::view_mode?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::subscription_fetch_usage_params | Orb::BaseModel data - ) -> void + def initialize: ( + ?billable_metric_id: String?, + ?first_dimension_key: String?, + ?first_dimension_value: String?, + ?granularity: Orb::Models::SubscriptionFetchUsageParams::granularity?, + ?group_by: String?, + ?second_dimension_key: String?, + ?second_dimension_value: String?, + ?timeframe_end: Time?, + ?timeframe_start: Time?, + ?view_mode: Orb::Models::SubscriptionFetchUsageParams::view_mode?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::subscription_fetch_usage_params type granularity = :day - class Granularity < Orb::Enum + module Granularity + extend Orb::Enum + DAY: :day - def self.values: -> ::Array[Orb::Models::SubscriptionFetchUsageParams::granularity] + def self?.values: -> ::Array[Orb::Models::SubscriptionFetchUsageParams::granularity] end type view_mode = :periodic | :cumulative - class ViewMode < Orb::Enum + module ViewMode + extend Orb::Enum + PERIODIC: :periodic CUMULATIVE: :cumulative - def self.values: -> ::Array[Orb::Models::SubscriptionFetchUsageParams::view_mode] + def self?.values: -> ::Array[Orb::Models::SubscriptionFetchUsageParams::view_mode] end end end diff --git a/sig/orb/models/subscription_list_params.rbs b/sig/orb/models/subscription_list_params.rbs index dda75a9e..73d76b70 100644 --- a/sig/orb/models/subscription_list_params.rbs +++ b/sig/orb/models/subscription_list_params.rbs @@ -38,31 +38,31 @@ module Orb attr_accessor status: Orb::Models::SubscriptionListParams::status? - def initialize: - ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - cursor: String?, - customer_id: ::Array[String]?, - external_customer_id: ::Array[String]?, - limit: Integer, - status: Orb::Models::SubscriptionListParams::status?, - request_options: Orb::request_opts - ) -> void - | (?Orb::Models::subscription_list_params | Orb::BaseModel data) -> void + def initialize: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?cursor: String?, + ?customer_id: ::Array[String]?, + ?external_customer_id: ::Array[String]?, + ?limit: Integer, + ?status: Orb::Models::SubscriptionListParams::status?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::subscription_list_params type status = :active | :ended | :upcoming - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ENDED: :ended UPCOMING: :upcoming - def self.values: -> ::Array[Orb::Models::SubscriptionListParams::status] + def self?.values: -> ::Array[Orb::Models::SubscriptionListParams::status] end end end diff --git a/sig/orb/models/subscription_price_intervals_params.rbs b/sig/orb/models/subscription_price_intervals_params.rbs index 6f8bd32f..7194855e 100644 --- a/sig/orb/models/subscription_price_intervals_params.rbs +++ b/sig/orb/models/subscription_price_intervals_params.rbs @@ -40,19 +40,14 @@ module Orb ::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment] ) -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment] - def initialize: - ( - add: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add], - add_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], - allow_invoice_credit_or_void: bool?, - edit: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit], - edit_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment], - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::subscription_price_intervals_params - | Orb::BaseModel data - ) -> void + def initialize: ( + ?add: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add], + ?add_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], + ?allow_invoice_credit_or_void: bool?, + ?edit: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit], + ?edit_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment], + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::subscription_price_intervals_params @@ -97,32 +92,29 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - start_date: Orb::Models::SubscriptionPriceIntervalsParams::Add::start_date, - allocation_price: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice?, - discounts: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::discount]?, - end_date: Orb::Models::SubscriptionPriceIntervalsParams::Add::end_date?, - external_price_id: String?, - filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]?, - maximum_amount: Float?, - minimum_amount: Float?, - price: Orb::Models::SubscriptionPriceIntervalsParams::Add::price?, - price_id: String?, - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::add - | Orb::BaseModel data - ) -> void + def initialize: ( + start_date: Orb::Models::SubscriptionPriceIntervalsParams::Add::start_date, + ?allocation_price: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice?, + ?discounts: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::discount]?, + ?end_date: Orb::Models::SubscriptionPriceIntervalsParams::Add::end_date?, + ?external_price_id: String?, + ?filter: String?, + ?fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::FixedFeeQuantityTransition]?, + ?maximum_amount: Float?, + ?minimum_amount: Float?, + ?price: Orb::Models::SubscriptionPriceIntervalsParams::Add::price?, + ?price_id: String?, + ?usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::add type start_date = Time | Orb::Models::billing_cycle_relative_date - class StartDate < Orb::Union - def self.variants: -> [Time, Orb::Models::billing_cycle_relative_date] + module StartDate + extend Orb::Union + + def self?.variants: -> [Time, Orb::Models::billing_cycle_relative_date] end type allocation_price = @@ -142,24 +134,21 @@ module Orb attr_accessor expires_at_end_of_cadence: bool - def initialize: - ( - amount: String, - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::cadence, - currency: String, - expires_at_end_of_cadence: bool - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::cadence, + currency: String, + expires_at_end_of_cadence: bool + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::allocation_price type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -167,7 +156,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::AllocationPrice::cadence] end end @@ -176,7 +165,9 @@ module Orb | Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams | Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams - class Discount < Orb::Union + module Discount + extend Orb::Union + type amount_discount_creation_params = { amount_discount: Float, discount_type: :amount } @@ -185,12 +176,10 @@ module Orb attr_accessor discount_type: :amount - def initialize: - (amount_discount: Float, discount_type: :amount) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::amount_discount_creation_params - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: Float, + ?discount_type: :amount + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::amount_discount_creation_params end @@ -203,12 +192,10 @@ module Orb attr_accessor percentage_discount: Float - def initialize: - (percentage_discount: Float, discount_type: :percentage) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::percentage_discount_creation_params - | Orb::BaseModel data - ) -> void + def initialize: ( + percentage_discount: Float, + ?discount_type: :percentage + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::percentage_discount_creation_params end @@ -221,23 +208,23 @@ module Orb attr_accessor usage_discount: Float - def initialize: - (usage_discount: Float, discount_type: :usage) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::usage_discount_creation_params - | Orb::BaseModel data - ) -> void + def initialize: ( + usage_discount: Float, + ?discount_type: :usage + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::usage_discount_creation_params end - def self.variants: -> [Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams] + def self?.variants: -> [Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::AmountDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::PercentageDiscountCreationParams, Orb::Models::SubscriptionPriceIntervalsParams::Add::Discount::UsageDiscountCreationParams] end type end_date = Time | Orb::Models::billing_cycle_relative_date - class EndDate < Orb::Union - def self.variants: -> [Time, Orb::Models::billing_cycle_relative_date] + module EndDate + extend Orb::Union + + def self?.variants: -> [Time, Orb::Models::billing_cycle_relative_date] end type fixed_fee_quantity_transition = @@ -248,12 +235,7 @@ module Orb attr_accessor quantity: Integer - def initialize: - (effective_date: Time, quantity: Integer) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::fixed_fee_quantity_transition - | Orb::BaseModel data - ) -> void + def initialize: (effective_date: Time, quantity: Integer) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::fixed_fee_quantity_transition end @@ -288,7 +270,9 @@ module Orb | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice | Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice - class Price < Orb::Union + module Price + extend Orb::Union + type new_floating_unit_price = { cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::cadence, @@ -339,28 +323,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::cadence, - currency: String, - item_id: String, - name: String, - unit_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_unit_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::cadence, + currency: String, + item_id: String, + name: String, + unit_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::UnitConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_unit_price @@ -372,7 +351,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -380,7 +361,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::cadence] end type unit_config = { unit_amount: String } @@ -388,12 +369,7 @@ module Orb class UnitConfig < Orb::BaseModel attr_accessor unit_amount: String - def initialize: - (unit_amount: String) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::unit_config - | Orb::BaseModel data - ) -> void + def initialize: (unit_amount: String) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::unit_config end @@ -409,25 +385,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::BillingCycleConfiguration::duration_unit] end end @@ -442,25 +415,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -515,28 +485,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::cadence, - currency: String, - item_id: String, - name: String, - package_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :package - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::cadence, + currency: String, + item_id: String, + name: String, + package_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::PackageConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :package + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_package_price @@ -548,7 +513,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -556,7 +523,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::cadence] end type package_config = @@ -567,12 +534,10 @@ module Orb attr_accessor package_size: Integer - def initialize: - (package_amount: String, package_size: Integer) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::package_config - | Orb::BaseModel data - ) -> void + def initialize: ( + package_amount: String, + package_size: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::package_config end @@ -588,25 +553,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -621,25 +583,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -694,28 +653,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::cadence, - currency: String, - item_id: String, - matrix_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :matrix - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_matrix_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::cadence, + currency: String, + item_id: String, + matrix_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :matrix + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_matrix_price @@ -727,7 +681,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -735,7 +691,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::cadence] end type matrix_config = @@ -752,16 +708,11 @@ module Orb attr_accessor matrix_values: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue] - def initialize: - ( - default_unit_amount: String, - dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue] - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::matrix_config - | Orb::BaseModel data - ) -> void + def initialize: ( + default_unit_amount: String, + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::MatrixValue] + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::matrix_config @@ -773,15 +724,10 @@ module Orb attr_accessor unit_amount: String - def initialize: - ( - dimension_values: ::Array[String?], - unit_amount: String - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::matrix_value - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String?], + unit_amount: String + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::MatrixConfig::matrix_value end @@ -798,25 +744,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::BillingCycleConfiguration::duration_unit] end end @@ -831,25 +774,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -904,28 +844,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::cadence, - currency: String, - item_id: String, - matrix_with_allocation_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :matrix_with_allocation - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_matrix_with_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::cadence, + currency: String, + item_id: String, + matrix_with_allocation_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :matrix_with_allocation + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_matrix_with_allocation_price @@ -937,7 +872,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -945,7 +882,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::cadence] end type matrix_with_allocation_config = @@ -965,17 +902,12 @@ module Orb attr_accessor matrix_values: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] - def initialize: - ( - allocation: Float, - default_unit_amount: String, - dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::matrix_with_allocation_config - | Orb::BaseModel data - ) -> void + def initialize: ( + allocation: Float, + default_unit_amount: String, + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::MatrixValue] + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::matrix_with_allocation_config @@ -987,15 +919,10 @@ module Orb attr_accessor unit_amount: String - def initialize: - ( - dimension_values: ::Array[String?], - unit_amount: String - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::matrix_value - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String?], + unit_amount: String + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::MatrixWithAllocationConfig::matrix_value end @@ -1012,25 +939,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -1045,25 +969,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1118,28 +1039,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::cadence, - currency: String, - item_id: String, - name: String, - tiered_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :tiered - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::cadence, + currency: String, + item_id: String, + name: String, + tiered_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :tiered + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_price @@ -1151,7 +1067,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1159,7 +1077,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::cadence] end type tiered_config = @@ -1170,14 +1088,9 @@ module Orb class TieredConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::tiered_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::tiered_config @@ -1191,16 +1104,11 @@ module Orb attr_accessor last_unit: Float? - def initialize: - ( - first_unit: Float, - unit_amount: String, - last_unit: Float? - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + first_unit: Float, + unit_amount: String, + ?last_unit: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::TieredConfig::tier end @@ -1217,25 +1125,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::BillingCycleConfiguration::duration_unit] end end @@ -1250,25 +1155,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1323,28 +1225,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::cadence, - currency: String, - item_id: String, - name: String, - tiered_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :tiered_bps - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::cadence, + currency: String, + item_id: String, + name: String, + tiered_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :tiered_bps + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_bps_price @@ -1356,7 +1253,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1364,7 +1263,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::cadence] end type tiered_bps_config = @@ -1375,14 +1274,9 @@ module Orb class TieredBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::tiered_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::tiered_bps_config @@ -1403,17 +1297,12 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - minimum_amount: String, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + minimum_amount: String, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::TieredBpsConfig::tier end @@ -1430,25 +1319,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1463,25 +1349,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1536,28 +1419,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig, - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::cadence, - currency: String, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :bps - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BpsConfig, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::cadence, + currency: String, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :bps + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_bps_price @@ -1568,12 +1446,7 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - (bps: Float, per_unit_maximum: String?) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::bps_config - | Orb::BaseModel data - ) -> void + def initialize: (bps: Float, ?per_unit_maximum: String?) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::bps_config end @@ -1586,7 +1459,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1594,7 +1469,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::cadence] end type billing_cycle_configuration = @@ -1608,25 +1483,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1641,25 +1513,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1714,28 +1583,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - bulk_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig, - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::cadence, - currency: String, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :bulk_bps - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_bulk_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_bps_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::cadence, + currency: String, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :bulk_bps + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_bulk_bps_price @@ -1747,14 +1611,9 @@ module Orb class BulkBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::bulk_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::bulk_bps_config @@ -1772,16 +1631,11 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BulkBpsConfig::tier end @@ -1795,7 +1649,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1803,7 +1659,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::cadence] end type billing_cycle_configuration = @@ -1817,25 +1673,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1850,25 +1703,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1923,28 +1773,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - bulk_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig, - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::cadence, - currency: String, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :bulk - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_bulk_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig, + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::cadence, + currency: String, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :bulk + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_bulk_price @@ -1956,14 +1801,9 @@ module Orb class BulkConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::bulk_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::bulk_config @@ -1974,12 +1814,10 @@ module Orb attr_accessor maximum_units: Float? - def initialize: - (unit_amount: String, maximum_units: Float?) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + unit_amount: String, + ?maximum_units: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BulkConfig::tier end @@ -1993,7 +1831,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2001,7 +1841,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::cadence] end type billing_cycle_configuration = @@ -2015,25 +1855,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -2048,25 +1885,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void - + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void + def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2121,28 +1955,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::cadence, - currency: String, - item_id: String, - name: String, - threshold_total_amount_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :threshold_total_amount - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_threshold_total_amount_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::cadence, + currency: String, + item_id: String, + name: String, + threshold_total_amount_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :threshold_total_amount + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_threshold_total_amount_price @@ -2154,7 +1983,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2162,7 +1993,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::cadence] end type billing_cycle_configuration = @@ -2176,25 +2007,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] end end @@ -2209,25 +2037,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2282,28 +2107,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::cadence, - currency: String, - item_id: String, - name: String, - tiered_package_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::cadence, + currency: String, + item_id: String, + name: String, + tiered_package_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_package_price @@ -2315,7 +2135,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2323,7 +2145,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -2337,25 +2159,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -2370,25 +2189,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2443,28 +2259,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::cadence, - currency: String, - grouped_tiered_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :grouped_tiered - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_tiered_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::cadence, + currency: String, + grouped_tiered_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :grouped_tiered + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_tiered_price @@ -2476,7 +2287,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2484,7 +2297,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::cadence] end type billing_cycle_configuration = @@ -2498,25 +2311,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::BillingCycleConfiguration::duration_unit] end end @@ -2531,25 +2341,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2604,28 +2411,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::cadence, - currency: String, - item_id: String, - max_group_tiered_package_config: ::Hash[Symbol, top], - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :max_group_tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_max_group_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::cadence, + currency: String, + item_id: String, + max_group_tiered_package_config: ::Hash[Symbol, top], + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :max_group_tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_max_group_tiered_package_price @@ -2637,7 +2439,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2645,7 +2449,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -2659,25 +2463,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -2692,25 +2493,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2765,28 +2563,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::cadence, - currency: String, - item_id: String, - name: String, - tiered_with_minimum_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :tiered_with_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_with_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::cadence, + currency: String, + item_id: String, + name: String, + tiered_with_minimum_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :tiered_with_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_with_minimum_price @@ -2798,7 +2591,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2806,7 +2601,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::cadence] end type billing_cycle_configuration = @@ -2820,25 +2615,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -2853,25 +2645,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2926,28 +2715,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::cadence, - currency: String, - item_id: String, - name: String, - package_with_allocation_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :package_with_allocation - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_package_with_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::cadence, + currency: String, + item_id: String, + name: String, + package_with_allocation_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :package_with_allocation + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_package_with_allocation_price @@ -2959,7 +2743,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2967,7 +2753,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::cadence] end type billing_cycle_configuration = @@ -2981,25 +2767,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3014,25 +2797,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3087,28 +2867,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::cadence, - currency: String, - item_id: String, - name: String, - tiered_package_with_minimum_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :tiered_package_with_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_package_with_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::cadence, + currency: String, + item_id: String, + name: String, + tiered_package_with_minimum_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :tiered_package_with_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_package_with_minimum_price @@ -3120,7 +2895,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3128,7 +2905,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::cadence] end type billing_cycle_configuration = @@ -3142,25 +2919,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -3175,25 +2949,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredPackageWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3248,28 +3019,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::cadence, - currency: String, - item_id: String, - name: String, - unit_with_percent_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :unit_with_percent - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_unit_with_percent_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::cadence, + currency: String, + item_id: String, + name: String, + unit_with_percent_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :unit_with_percent + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_unit_with_percent_price @@ -3281,7 +3047,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3289,7 +3057,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::cadence] end type billing_cycle_configuration = @@ -3303,25 +3071,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] end end @@ -3336,25 +3101,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3409,28 +3171,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::cadence, - currency: String, - item_id: String, - name: String, - tiered_with_proration_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :tiered_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::cadence, + currency: String, + item_id: String, + name: String, + tiered_with_proration_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :tiered_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_tiered_with_proration_price @@ -3442,7 +3199,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3450,7 +3209,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -3464,25 +3223,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3497,25 +3253,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingTieredWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3570,28 +3323,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::cadence, - currency: String, - item_id: String, - name: String, - unit_with_proration_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :unit_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_unit_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::cadence, + currency: String, + item_id: String, + name: String, + unit_with_proration_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :unit_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_unit_with_proration_price @@ -3603,7 +3351,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3611,7 +3361,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -3625,25 +3375,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3658,25 +3405,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3731,28 +3475,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::cadence, - currency: String, - grouped_allocation_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :grouped_allocation - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::cadence, + currency: String, + grouped_allocation_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :grouped_allocation + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_allocation_price @@ -3764,7 +3503,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3772,7 +3513,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::cadence] end type billing_cycle_configuration = @@ -3786,25 +3527,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3819,25 +3557,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3892,28 +3627,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::cadence, - currency: String, - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :grouped_with_prorated_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_with_prorated_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::cadence, + currency: String, + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :grouped_with_prorated_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_with_prorated_minimum_price @@ -3925,7 +3655,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3933,7 +3665,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::cadence] end type billing_cycle_configuration = @@ -3947,25 +3679,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -3980,25 +3709,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4053,28 +3779,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::cadence, - currency: String, - grouped_with_metered_minimum_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :grouped_with_metered_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_with_metered_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::cadence, + currency: String, + grouped_with_metered_minimum_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :grouped_with_metered_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_with_metered_minimum_price @@ -4086,7 +3807,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4094,7 +3817,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::cadence] end type billing_cycle_configuration = @@ -4108,25 +3831,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -4141,25 +3861,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4214,28 +3931,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::cadence, - currency: String, - item_id: String, - matrix_with_display_name_config: ::Hash[Symbol, top], - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :matrix_with_display_name - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_matrix_with_display_name_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::cadence, + currency: String, + item_id: String, + matrix_with_display_name_config: ::Hash[Symbol, top], + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :matrix_with_display_name + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_matrix_with_display_name_price @@ -4247,7 +3959,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4255,7 +3969,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::cadence] end type billing_cycle_configuration = @@ -4269,25 +3983,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] end end @@ -4302,25 +4013,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4375,28 +4083,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::cadence, - currency: String, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :bulk_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_bulk_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_with_proration_config: ::Hash[Symbol, top], + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::cadence, + currency: String, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :bulk_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_bulk_with_proration_price @@ -4408,7 +4111,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4416,7 +4121,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -4430,25 +4135,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -4463,25 +4165,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4536,28 +4235,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::cadence, - currency: String, - grouped_tiered_package_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :grouped_tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::cadence, + currency: String, + grouped_tiered_package_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :grouped_tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_grouped_tiered_package_price @@ -4569,7 +4263,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4577,7 +4273,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -4591,25 +4287,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -4624,25 +4317,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4697,28 +4387,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::cadence, - currency: String, - item_id: String, - name: String, - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :scalable_matrix_with_unit_pricing - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_scalable_matrix_with_unit_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::cadence, + currency: String, + item_id: String, + name: String, + scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :scalable_matrix_with_unit_pricing + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_scalable_matrix_with_unit_pricing_price @@ -4730,7 +4415,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4738,7 +4425,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::cadence] end type billing_cycle_configuration = @@ -4752,25 +4439,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -4785,25 +4469,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4858,28 +4539,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::cadence, - currency: String, - item_id: String, - name: String, - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :scalable_matrix_with_tiered_pricing - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_scalable_matrix_with_tiered_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::cadence, + currency: String, + item_id: String, + name: String, + scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :scalable_matrix_with_tiered_pricing + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_scalable_matrix_with_tiered_pricing_price @@ -4891,7 +4567,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4899,7 +4577,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::cadence] end type billing_cycle_configuration = @@ -4913,25 +4591,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -4946,25 +4621,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -5019,28 +4691,23 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - def initialize: - ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::cadence, - cumulative_grouped_bulk_config: ::Hash[Symbol, top], - currency: String, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - model_type: :cumulative_grouped_bulk - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_cumulative_grouped_bulk_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::cadence, + cumulative_grouped_bulk_config: ::Hash[Symbol, top], + currency: String, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :cumulative_grouped_bulk + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::new_floating_cumulative_grouped_bulk_price @@ -5052,7 +4719,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -5060,7 +4729,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::cadence] end type billing_cycle_configuration = @@ -5074,25 +4743,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -5107,30 +4773,27 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::NewFloatingCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end - def self.variants: -> [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] + def self?.variants: -> [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 end @@ -5148,16 +4811,11 @@ module Orb attr_accessor end_date: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::end_date? - def initialize: - ( - adjustment: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::adjustment, - start_date: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::start_date, - end_date: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::end_date? - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::add_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + adjustment: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::adjustment, + start_date: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::start_date, + ?end_date: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::end_date? + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::add_adjustment @@ -5168,7 +4826,9 @@ module Orb | Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMinimum | Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::NewMaximum - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type new_percentage_discount = { adjustment_type: :percentage_discount, @@ -5188,17 +4848,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - percentage_discount: Float, - is_invoice_level: bool, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_percentage_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + percentage_discount: Float, + ?is_invoice_level: bool, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_percentage_discount end @@ -5222,17 +4877,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - usage_discount: Float, - is_invoice_level: bool, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_usage_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + usage_discount: Float, + ?is_invoice_level: bool, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_usage_discount end @@ -5256,17 +4906,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_amount_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + ?is_invoice_level: bool, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_amount_discount end @@ -5293,18 +4938,13 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - item_id: String, - minimum_amount: String, - is_invoice_level: bool, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + item_id: String, + minimum_amount: String, + ?is_invoice_level: bool, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_minimum end @@ -5328,34 +4968,33 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String, - is_invoice_level: bool, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String, + ?is_invoice_level: bool, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::new_maximum end - def self.variants: -> [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] + def self?.variants: -> [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 type start_date = Time | Orb::Models::billing_cycle_relative_date - class StartDate < Orb::Union - def self.variants: -> [Time, Orb::Models::billing_cycle_relative_date] + module StartDate + extend Orb::Union + + def self?.variants: -> [Time, Orb::Models::billing_cycle_relative_date] end type end_date = Time | Orb::Models::billing_cycle_relative_date - class EndDate < Orb::Union - def self.variants: -> [Time, Orb::Models::billing_cycle_relative_date] + module EndDate + extend Orb::Union + + def self?.variants: -> [Time, Orb::Models::billing_cycle_relative_date] end end @@ -5389,27 +5028,24 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - price_interval_id: String, - billing_cycle_day: Integer?, - end_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::end_date?, - filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]?, - start_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::start_date, - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::edit - | Orb::BaseModel data - ) -> void + def initialize: ( + price_interval_id: String, + ?billing_cycle_day: Integer?, + ?end_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::end_date?, + ?filter: String?, + ?fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit::FixedFeeQuantityTransition]?, + ?start_date: Orb::Models::SubscriptionPriceIntervalsParams::Edit::start_date, + ?usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::edit type end_date = Time | Orb::Models::billing_cycle_relative_date - class EndDate < Orb::Union - def self.variants: -> [Time, Orb::Models::billing_cycle_relative_date] + module EndDate + extend Orb::Union + + def self?.variants: -> [Time, Orb::Models::billing_cycle_relative_date] end type fixed_fee_quantity_transition = @@ -5420,20 +5056,17 @@ module Orb attr_accessor quantity: Integer - def initialize: - (effective_date: Time, quantity: Integer) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::Edit::fixed_fee_quantity_transition - | Orb::BaseModel data - ) -> void + def initialize: (effective_date: Time, quantity: Integer) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::Edit::fixed_fee_quantity_transition end type start_date = Time | Orb::Models::billing_cycle_relative_date - class StartDate < Orb::Union - def self.variants: -> [Time, Orb::Models::billing_cycle_relative_date] + module StartDate + extend Orb::Union + + def self?.variants: -> [Time, Orb::Models::billing_cycle_relative_date] end end @@ -5455,29 +5088,28 @@ module Orb Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::start_date ) -> Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::start_date - def initialize: - ( - adjustment_interval_id: String, - end_date: Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::end_date?, - start_date: Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::start_date - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsParams::edit_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + adjustment_interval_id: String, + ?end_date: Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::end_date?, + ?start_date: Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment::start_date + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsParams::edit_adjustment type end_date = Time | Orb::Models::billing_cycle_relative_date - class EndDate < Orb::Union - def self.variants: -> [Time, Orb::Models::billing_cycle_relative_date] + module EndDate + extend Orb::Union + + def self?.variants: -> [Time, Orb::Models::billing_cycle_relative_date] end type start_date = Time | Orb::Models::billing_cycle_relative_date - class StartDate < Orb::Union - def self.variants: -> [Time, Orb::Models::billing_cycle_relative_date] + module StartDate + extend Orb::Union + + def self?.variants: -> [Time, Orb::Models::billing_cycle_relative_date] end end end diff --git a/sig/orb/models/subscription_price_intervals_response.rbs b/sig/orb/models/subscription_price_intervals_response.rbs index b3716efa..943111bd 100644 --- a/sig/orb/models/subscription_price_intervals_response.rbs +++ b/sig/orb/models/subscription_price_intervals_response.rbs @@ -80,38 +80,33 @@ module Orb attr_accessor trial_info: Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo - def initialize: - ( - id: String, - active_plan_phase_order: Integer?, - adjustment_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval], - auto_collection: bool?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, - default_invoice_memo: String?, - discount_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::discount_interval], - end_date: Time?, - fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule], - invoicing_threshold: String?, - maximum_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval], - metadata: ::Hash[Symbol, String], - minimum_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval], - redeemed_coupon: Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon?, - start_date: Time, - status: Orb::Models::SubscriptionPriceIntervalsResponse::status, - trial_info: Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo - ) -> void - | ( - ?Orb::Models::subscription_price_intervals_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + active_plan_phase_order: Integer?, + adjustment_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval], + auto_collection: bool?, + billing_cycle_anchor_configuration: Orb::Models::SubscriptionPriceIntervalsResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + customer: Orb::Models::Customer, + default_invoice_memo: String?, + discount_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::discount_interval], + end_date: Time?, + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::FixedFeeQuantitySchedule], + invoicing_threshold: String?, + maximum_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval], + redeemed_coupon: Orb::Models::SubscriptionPriceIntervalsResponse::RedeemedCoupon?, + start_date: Time, + status: Orb::Models::SubscriptionPriceIntervalsResponse::status, + trial_info: Orb::Models::SubscriptionPriceIntervalsResponse::TrialInfo + ) -> void def to_hash: -> Orb::Models::subscription_price_intervals_response @@ -135,18 +130,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - id: String, - adjustment: Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::adjustment_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + adjustment: Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::adjustment, + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::adjustment_interval @@ -157,7 +147,9 @@ module Orb | Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment | Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type plan_phase_usage_discount_adjustment = { id: String, @@ -184,20 +176,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end @@ -228,20 +215,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end @@ -272,20 +254,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end @@ -319,21 +296,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end @@ -364,25 +336,20 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end - def self.variants: -> [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] + def self?.variants: -> [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 end @@ -396,12 +363,11 @@ module Orb attr_accessor year: Integer? - def initialize: - (day: Integer, month: Integer?, year: Integer?) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::billing_cycle_anchor_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + day: Integer, + ?month: Integer?, + ?year: Integer? + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::billing_cycle_anchor_configuration end @@ -411,7 +377,9 @@ module Orb | Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval | Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + type amount_discount_interval = { amount_discount: String, @@ -435,19 +403,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - discount_type: :amount - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::amount_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + ?discount_type: :amount + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::amount_discount_interval end @@ -475,19 +438,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - percentage_discount: Float, - start_date: Time, - discount_type: :percentage - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::percentage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + percentage_discount: Float, + start_date: Time, + ?discount_type: :percentage + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::percentage_discount_interval end @@ -515,24 +473,19 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - usage_discount: Float, - discount_type: :usage - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::usage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + usage_discount: Float, + ?discount_type: :usage + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::usage_discount_interval end - def self.variants: -> [Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval] + def self?.variants: -> [Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionPriceIntervalsResponse::DiscountInterval::UsageDiscountInterval] end type fixed_fee_quantity_schedule = @@ -547,17 +500,12 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - end_date: Time?, - price_id: String, - quantity: Float, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::fixed_fee_quantity_schedule - | Orb::BaseModel data - ) -> void + def initialize: ( + end_date: Time?, + price_id: String, + quantity: Float, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::fixed_fee_quantity_schedule end @@ -582,18 +530,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - maximum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::maximum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + maximum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::maximum_interval end @@ -618,18 +561,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - minimum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::minimum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + minimum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::minimum_interval end @@ -669,23 +607,18 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - end_date: Time?, - filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition]?, - price: Orb::Models::price, - start_date: Time, - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::price_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + end_date: Time?, + filter: String?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::FixedFeeQuantityTransition]?, + price: Orb::Models::price, + start_date: Time, + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::price_interval @@ -699,12 +632,11 @@ module Orb attr_accessor quantity: Integer - def initialize: - (effective_date: Time, price_id: String, quantity: Integer) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::fixed_fee_quantity_transition - | Orb::BaseModel data - ) -> void + def initialize: ( + effective_date: Time, + price_id: String, + quantity: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::PriceInterval::fixed_fee_quantity_transition end @@ -720,24 +652,25 @@ module Orb attr_accessor start_date: Time - def initialize: - (coupon_id: String, end_date: Time?, start_date: Time) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::redeemed_coupon - | Orb::BaseModel data - ) -> void + def initialize: ( + coupon_id: String, + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::redeemed_coupon end type status = :active | :ended | :upcoming - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ENDED: :ended UPCOMING: :upcoming - def self.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::status] + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsResponse::status] end type trial_info = { end_date: Time? } @@ -745,12 +678,7 @@ module Orb class TrialInfo < Orb::BaseModel attr_accessor end_date: Time? - def initialize: - (end_date: Time?) -> void - | ( - ?Orb::Models::SubscriptionPriceIntervalsResponse::trial_info - | Orb::BaseModel data - ) -> void + def initialize: (end_date: Time?) -> void def to_hash: -> Orb::Models::SubscriptionPriceIntervalsResponse::trial_info end diff --git a/sig/orb/models/subscription_schedule_plan_change_params.rbs b/sig/orb/models/subscription_schedule_plan_change_params.rbs index d57f4fc9..696ae65f 100644 --- a/sig/orb/models/subscription_schedule_plan_change_params.rbs +++ b/sig/orb/models/subscription_schedule_plan_change_params.rbs @@ -87,52 +87,49 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - change_option: Orb::Models::SubscriptionSchedulePlanChangeParams::change_option, - add_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment]?, - add_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice]?, - align_billing_with_plan_change_date: bool?, - auto_collection: bool?, - billing_cycle_alignment: Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration?, - change_date: Time?, - coupon_redemption_code: String?, - credits_overage_rate: Float?, - default_invoice_memo: String?, - external_plan_id: String?, - filter: String?, - initial_phase_order: Integer?, - invoicing_threshold: String?, - net_terms: Integer?, - per_credit_overage_amount: Float?, - plan_id: String?, - plan_version_number: Integer?, - price_overrides: ::Array[top]?, - remove_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment]?, - remove_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice]?, - replace_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]?, - replace_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice]?, - trial_duration_days: Integer?, - usage_customer_ids: ::Array[String]?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::subscription_schedule_plan_change_params - | Orb::BaseModel data - ) -> void + def initialize: ( + change_option: Orb::Models::SubscriptionSchedulePlanChangeParams::change_option, + ?add_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment]?, + ?add_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice]?, + ?align_billing_with_plan_change_date: bool?, + ?auto_collection: bool?, + ?billing_cycle_alignment: Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment?, + ?billing_cycle_anchor_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration?, + ?change_date: Time?, + ?coupon_redemption_code: String?, + ?credits_overage_rate: Float?, + ?default_invoice_memo: String?, + ?external_plan_id: String?, + ?filter: String?, + ?initial_phase_order: Integer?, + ?invoicing_threshold: String?, + ?net_terms: Integer?, + ?per_credit_overage_amount: Float?, + ?plan_id: String?, + ?plan_version_number: Integer?, + ?price_overrides: ::Array[top]?, + ?remove_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment]?, + ?remove_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice]?, + ?replace_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]?, + ?replace_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice]?, + ?trial_duration_days: Integer?, + ?usage_customer_ids: ::Array[String]?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::subscription_schedule_plan_change_params type change_option = :requested_date | :end_of_subscription_term | :immediate - class ChangeOption < Orb::Enum + module ChangeOption + extend Orb::Enum + REQUESTED_DATE: :requested_date END_OF_SUBSCRIPTION_TERM: :end_of_subscription_term IMMEDIATE: :immediate - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::change_option] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::change_option] end type add_adjustment = @@ -152,17 +149,12 @@ module Orb attr_accessor start_date: Time? - def initialize: - ( - adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::adjustment, - end_date: Time?, - plan_phase_order: Integer?, - start_date: Time? - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::add_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::adjustment, + ?end_date: Time?, + ?plan_phase_order: Integer?, + ?start_date: Time? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::add_adjustment @@ -173,7 +165,9 @@ module Orb | Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMinimum | Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::NewMaximum - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type new_percentage_discount = { adjustment_type: :percentage_discount, @@ -193,17 +187,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - percentage_discount: Float, - is_invoice_level: bool, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_percentage_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + percentage_discount: Float, + ?is_invoice_level: bool, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_percentage_discount end @@ -227,17 +216,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - usage_discount: Float, - is_invoice_level: bool, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_usage_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + usage_discount: Float, + ?is_invoice_level: bool, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_usage_discount end @@ -261,17 +245,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_amount_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + ?is_invoice_level: bool, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_amount_discount end @@ -298,18 +277,13 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - item_id: String, - minimum_amount: String, - is_invoice_level: bool, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + item_id: String, + minimum_amount: String, + ?is_invoice_level: bool, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_minimum end @@ -333,22 +307,17 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String, - is_invoice_level: bool, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String, + ?is_invoice_level: bool, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment::Adjustment::new_maximum end - def self.variants: -> [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] + def self?.variants: -> [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 end @@ -387,23 +356,18 @@ module Orb attr_accessor start_date: Time? - def initialize: - ( - allocation_price: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice?, - discounts: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount]?, - end_date: Time?, - external_price_id: String?, - maximum_amount: String?, - minimum_amount: String?, - plan_phase_order: Integer?, - price: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::price?, - price_id: String?, - start_date: Time? - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::add_price - | Orb::BaseModel data - ) -> void + def initialize: ( + ?allocation_price: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice?, + ?discounts: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount]?, + ?end_date: Time?, + ?external_price_id: String?, + ?maximum_amount: String?, + ?minimum_amount: String?, + ?plan_phase_order: Integer?, + ?price: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::price?, + ?price_id: String?, + ?start_date: Time? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::add_price @@ -424,24 +388,21 @@ module Orb attr_accessor expires_at_end_of_cadence: bool - def initialize: - ( - amount: String, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::cadence, - currency: String, - expires_at_end_of_cadence: bool - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::cadence, + currency: String, + expires_at_end_of_cadence: bool + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::allocation_price type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -449,7 +410,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::AllocationPrice::cadence] end end @@ -470,28 +431,25 @@ module Orb attr_accessor usage_discount: Float? - def initialize: - ( - discount_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::discount_type, - amount_discount: String?, - percentage_discount: Float?, - usage_discount: Float? - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::discount - | Orb::BaseModel data - ) -> void + def initialize: ( + discount_type: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::discount_type, + ?amount_discount: String?, + ?percentage_discount: Float?, + ?usage_discount: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::discount type discount_type = :percentage | :usage | :amount - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE: :percentage USAGE: :usage AMOUNT: :amount - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::discount_type] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Discount::discount_type] end end @@ -522,7 +480,9 @@ module Orb | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice | Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice - class Price < Orb::Union + module Price + extend Orb::Union + type new_subscription_unit_price = { cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::cadence, @@ -576,29 +536,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::cadence, - item_id: String, - name: String, - unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_unit_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::cadence, + item_id: String, + name: String, + unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::UnitConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_unit_price @@ -610,7 +565,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -618,7 +575,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::cadence] end type unit_config = { unit_amount: String } @@ -626,12 +583,7 @@ module Orb class UnitConfig < Orb::BaseModel attr_accessor unit_amount: String - def initialize: - (unit_amount: String) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::unit_config - | Orb::BaseModel data - ) -> void + def initialize: (unit_amount: String) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::unit_config end @@ -647,25 +599,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit] end end @@ -680,25 +629,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -756,29 +702,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::cadence, - item_id: String, - name: String, - package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :package - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::cadence, + item_id: String, + name: String, + package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::PackageConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :package + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_package_price @@ -790,7 +731,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -798,7 +741,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::cadence] end type package_config = @@ -809,12 +752,10 @@ module Orb attr_accessor package_size: Integer - def initialize: - (package_amount: String, package_size: Integer) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::package_config - | Orb::BaseModel data - ) -> void + def initialize: ( + package_amount: String, + package_size: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::package_config end @@ -830,25 +771,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -863,25 +801,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -939,29 +874,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::cadence, - item_id: String, - matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :matrix - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_matrix_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::cadence, + item_id: String, + matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :matrix + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_matrix_price @@ -973,7 +903,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -981,7 +913,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::cadence] end type matrix_config = @@ -998,16 +930,11 @@ module Orb attr_accessor matrix_values: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - def initialize: - ( - default_unit_amount: String, - dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::matrix_config - | Orb::BaseModel data - ) -> void + def initialize: ( + default_unit_amount: String, + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::matrix_config @@ -1019,15 +946,10 @@ module Orb attr_accessor unit_amount: String - def initialize: - ( - dimension_values: ::Array[String?], - unit_amount: String - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::matrix_value - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String?], + unit_amount: String + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::matrix_value end @@ -1044,25 +966,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit] end end @@ -1077,25 +996,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1153,29 +1069,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::cadence, - item_id: String, - name: String, - tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tiered_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::cadence, + item_id: String, + name: String, + tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tiered_price @@ -1187,7 +1098,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1195,7 +1108,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::cadence] end type tiered_config = @@ -1206,14 +1119,9 @@ module Orb class TieredConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::tiered_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::tiered_config @@ -1227,16 +1135,11 @@ module Orb attr_accessor last_unit: Float? - def initialize: - ( - first_unit: Float, - unit_amount: String, - last_unit: Float? - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + first_unit: Float, + unit_amount: String, + ?last_unit: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::TieredConfig::tier end @@ -1253,25 +1156,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit] end end @@ -1286,25 +1186,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1362,29 +1259,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::cadence, - item_id: String, - name: String, - tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_bps - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tiered_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::cadence, + item_id: String, + name: String, + tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_bps + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tiered_bps_price @@ -1396,7 +1288,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1404,7 +1298,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::cadence] end type tiered_bps_config = @@ -1415,14 +1309,9 @@ module Orb class TieredBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config @@ -1443,17 +1332,12 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - minimum_amount: String, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + minimum_amount: String, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::tier end @@ -1470,25 +1354,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1503,25 +1384,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1579,29 +1457,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bps - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BpsConfig, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bps + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_bps_price @@ -1612,12 +1485,7 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - (bps: Float, per_unit_maximum: String?) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::bps_config - | Orb::BaseModel data - ) -> void + def initialize: (bps: Float, ?per_unit_maximum: String?) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::bps_config end @@ -1630,7 +1498,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1638,7 +1508,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::cadence] end type billing_cycle_configuration = @@ -1652,25 +1522,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1685,25 +1552,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1761,29 +1625,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bulk_bps - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_bulk_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bulk_bps + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_bulk_bps_price @@ -1795,14 +1654,9 @@ module Orb class BulkBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config @@ -1820,16 +1674,11 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::tier end @@ -1843,7 +1692,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -1851,7 +1702,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::cadence] end type billing_cycle_configuration = @@ -1865,25 +1716,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -1898,25 +1746,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -1974,29 +1819,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bulk - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_bulk_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bulk + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_bulk_price @@ -2008,14 +1848,9 @@ module Orb class BulkConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::bulk_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::bulk_config @@ -2026,12 +1861,10 @@ module Orb attr_accessor maximum_units: Float? - def initialize: - (unit_amount: String, maximum_units: Float?) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + unit_amount: String, + ?maximum_units: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BulkConfig::tier end @@ -2045,7 +1878,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2053,7 +1888,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::cadence] end type billing_cycle_configuration = @@ -2067,25 +1902,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -2100,25 +1932,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2176,29 +2005,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence, - item_id: String, - name: String, - threshold_total_amount_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :threshold_total_amount - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_threshold_total_amount_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence, + item_id: String, + name: String, + threshold_total_amount_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :threshold_total_amount + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_threshold_total_amount_price @@ -2210,7 +2034,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2218,7 +2044,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence] end type billing_cycle_configuration = @@ -2232,25 +2058,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] end end @@ -2265,25 +2088,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2341,29 +2161,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::cadence, - item_id: String, - name: String, - tiered_package_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::cadence, + item_id: String, + name: String, + tiered_package_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tiered_package_price @@ -2375,7 +2190,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2383,7 +2200,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -2397,25 +2214,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -2430,25 +2244,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2506,29 +2317,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence, - item_id: String, - name: String, - tiered_with_minimum_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_with_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tiered_with_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence, + item_id: String, + name: String, + tiered_with_minimum_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_with_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tiered_with_minimum_price @@ -2540,7 +2346,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2548,7 +2356,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence] end type billing_cycle_configuration = @@ -2562,25 +2370,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -2595,25 +2400,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2671,29 +2473,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::cadence, - item_id: String, - name: String, - unit_with_percent_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :unit_with_percent - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_unit_with_percent_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::cadence, + item_id: String, + name: String, + unit_with_percent_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :unit_with_percent + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_unit_with_percent_price @@ -2705,7 +2502,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2713,7 +2512,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::cadence] end type billing_cycle_configuration = @@ -2727,25 +2526,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] end end @@ -2760,25 +2556,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -2836,29 +2629,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence, - item_id: String, - name: String, - package_with_allocation_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :package_with_allocation - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_package_with_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence, + item_id: String, + name: String, + package_with_allocation_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :package_with_allocation + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_package_with_allocation_price @@ -2870,7 +2658,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -2878,7 +2668,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence] end type billing_cycle_configuration = @@ -2892,25 +2682,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -2925,25 +2712,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3001,29 +2785,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::cadence, - item_id: String, - name: String, - tiered_with_proration_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tier_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::cadence, + item_id: String, + name: String, + tiered_with_proration_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_tier_with_proration_price @@ -3035,7 +2814,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3043,7 +2824,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -3057,25 +2838,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3090,25 +2868,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3166,29 +2941,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::cadence, - item_id: String, - name: String, - unit_with_proration_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :unit_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_unit_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::cadence, + item_id: String, + name: String, + unit_with_proration_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :unit_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_unit_with_proration_price @@ -3200,7 +2970,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3208,7 +2980,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -3222,25 +2994,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3255,25 +3024,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3331,29 +3097,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::cadence, - grouped_allocation_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_allocation - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_grouped_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::cadence, + grouped_allocation_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_allocation + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_grouped_allocation_price @@ -3365,7 +3126,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3373,7 +3136,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::cadence] end type billing_cycle_configuration = @@ -3387,25 +3150,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3420,25 +3180,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3496,29 +3253,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence, - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_with_prorated_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_grouped_with_prorated_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence, + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_with_prorated_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_grouped_with_prorated_minimum_price @@ -3530,7 +3282,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3538,7 +3292,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence] end type billing_cycle_configuration = @@ -3552,25 +3306,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -3585,25 +3336,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3661,29 +3409,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bulk_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_bulk_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_with_proration_config: ::Hash[Symbol, top], + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bulk_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_bulk_with_proration_price @@ -3695,7 +3438,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3703,7 +3448,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -3717,25 +3462,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -3750,25 +3492,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3826,29 +3565,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::cadence, - item_id: String, - name: String, - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :scalable_matrix_with_unit_pricing - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_scalable_matrix_with_unit_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::cadence, + item_id: String, + name: String, + scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :scalable_matrix_with_unit_pricing + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_scalable_matrix_with_unit_pricing_price @@ -3860,7 +3594,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -3868,7 +3604,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::cadence] end type billing_cycle_configuration = @@ -3882,25 +3618,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -3915,25 +3648,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -3991,29 +3721,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::cadence, - item_id: String, - name: String, - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :scalable_matrix_with_tiered_pricing - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_scalable_matrix_with_tiered_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::cadence, + item_id: String, + name: String, + scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :scalable_matrix_with_tiered_pricing + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_scalable_matrix_with_tiered_pricing_price @@ -4025,7 +3750,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4033,7 +3760,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::cadence] end type billing_cycle_configuration = @@ -4047,25 +3774,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -4080,25 +3804,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4156,29 +3877,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::cadence, - cumulative_grouped_bulk_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :cumulative_grouped_bulk - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_cumulative_grouped_bulk_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::cadence, + cumulative_grouped_bulk_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :cumulative_grouped_bulk + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_cumulative_grouped_bulk_price @@ -4190,7 +3906,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4198,7 +3916,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::cadence] end type billing_cycle_configuration = @@ -4212,25 +3930,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -4245,25 +3960,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4321,33 +4033,28 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::cadence, - item_id: String, - max_group_tiered_package_config: ::Hash[Symbol, top], - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :max_group_tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_max_group_tiered_package_price - | Orb::BaseModel data - ) -> void - - def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_max_group_tiered_package_price - - type cadence = + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::cadence, + item_id: String, + max_group_tiered_package_config: ::Hash[Symbol, top], + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :max_group_tiered_package + ) -> void + + def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_max_group_tiered_package_price + + type cadence = :annual | :semi_annual | :monthly @@ -4355,7 +4062,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4363,7 +4072,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -4377,25 +4086,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -4410,25 +4116,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4486,29 +4189,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence, - grouped_with_metered_minimum_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_with_metered_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_grouped_with_metered_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence, + grouped_with_metered_minimum_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_with_metered_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_grouped_with_metered_minimum_price @@ -4520,7 +4218,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4528,7 +4228,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence] end type billing_cycle_configuration = @@ -4542,25 +4242,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -4575,25 +4272,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4651,29 +4345,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::cadence, - item_id: String, - matrix_with_display_name_config: ::Hash[Symbol, top], - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :matrix_with_display_name - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_matrix_with_display_name_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::cadence, + item_id: String, + matrix_with_display_name_config: ::Hash[Symbol, top], + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :matrix_with_display_name + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_matrix_with_display_name_price @@ -4685,7 +4374,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4693,7 +4384,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::cadence] end type billing_cycle_configuration = @@ -4707,25 +4398,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] end end @@ -4740,25 +4428,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -4816,29 +4501,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::cadence, - grouped_tiered_package_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_grouped_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::cadence, + grouped_tiered_package_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::new_subscription_grouped_tiered_package_price @@ -4850,7 +4530,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -4858,7 +4540,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -4872,25 +4554,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -4905,42 +4584,41 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end - def self.variants: -> [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::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice] + def self?.variants: -> [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::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::NewSubscriptionGroupedTieredPackagePrice] end end type billing_cycle_alignment = :unchanged | :plan_change_date | :start_of_month - class BillingCycleAlignment < Orb::Enum + module BillingCycleAlignment + extend Orb::Enum + UNCHANGED: :unchanged PLAN_CHANGE_DATE: :plan_change_date START_OF_MONTH: :start_of_month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment] end type billing_cycle_anchor_configuration = @@ -4953,12 +4631,11 @@ module Orb attr_accessor year: Integer? - def initialize: - (day: Integer, month: Integer?, year: Integer?) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_anchor_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + day: Integer, + ?month: Integer?, + ?year: Integer? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_anchor_configuration end @@ -4968,12 +4645,7 @@ module Orb class RemoveAdjustment < Orb::BaseModel attr_accessor adjustment_id: String - def initialize: - (adjustment_id: String) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::remove_adjustment - | Orb::BaseModel data - ) -> void + def initialize: (adjustment_id: String) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::remove_adjustment end @@ -4985,12 +4657,10 @@ module Orb attr_accessor price_id: String? - def initialize: - (external_price_id: String?, price_id: String?) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::remove_price - | Orb::BaseModel data - ) -> void + def initialize: ( + ?external_price_id: String?, + ?price_id: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::remove_price end @@ -5006,15 +4676,10 @@ module Orb attr_accessor replaces_adjustment_id: String - def initialize: - ( - adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment, - replaces_adjustment_id: String - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::replace_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + adjustment: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::adjustment, + replaces_adjustment_id: String + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::replace_adjustment @@ -5025,7 +4690,9 @@ module Orb | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMinimum | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::NewMaximum - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type new_percentage_discount = { adjustment_type: :percentage_discount, @@ -5045,17 +4712,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - percentage_discount: Float, - is_invoice_level: bool, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_percentage_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + percentage_discount: Float, + ?is_invoice_level: bool, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_percentage_discount end @@ -5079,17 +4741,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - usage_discount: Float, - is_invoice_level: bool, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_usage_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + usage_discount: Float, + ?is_invoice_level: bool, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_usage_discount end @@ -5113,17 +4770,12 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_amount_discount - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + ?is_invoice_level: bool, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_amount_discount end @@ -5150,18 +4802,13 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - item_id: String, - minimum_amount: String, - is_invoice_level: bool, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_minimum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + item_id: String, + minimum_amount: String, + ?is_invoice_level: bool, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_minimum end @@ -5185,22 +4832,17 @@ module Orb def is_invoice_level=: (bool) -> bool - def initialize: - ( - applies_to_price_ids: ::Array[String], - maximum_amount: String, - is_invoice_level: bool, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_maximum - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + maximum_amount: String, + ?is_invoice_level: bool, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::new_maximum end - def self.variants: -> [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] + def self?.variants: -> [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 end @@ -5236,22 +4878,17 @@ module Orb attr_accessor price_id: String? - def initialize: - ( - replaces_price_id: String, - allocation_price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice?, - discounts: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount]?, - external_price_id: String?, - fixed_price_quantity: Float?, - maximum_amount: String?, - minimum_amount: String?, - price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?, - price_id: String? - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::replace_price - | Orb::BaseModel data - ) -> void + def initialize: ( + replaces_price_id: String, + ?allocation_price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice?, + ?discounts: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount]?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?maximum_amount: String?, + ?minimum_amount: String?, + ?price: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price?, + ?price_id: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::replace_price @@ -5272,24 +4909,21 @@ module Orb attr_accessor expires_at_end_of_cadence: bool - def initialize: - ( - amount: String, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::cadence, - currency: String, - expires_at_end_of_cadence: bool - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + amount: String, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::cadence, + currency: String, + expires_at_end_of_cadence: bool + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::allocation_price type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ONE_TIME: :one_time MONTHLY: :monthly QUARTERLY: :quarterly @@ -5297,7 +4931,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::AllocationPrice::cadence] end end @@ -5318,28 +4952,25 @@ module Orb attr_accessor usage_discount: Float? - def initialize: - ( - discount_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::discount_type, - amount_discount: String?, - percentage_discount: Float?, - usage_discount: Float? - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::discount - | Orb::BaseModel data - ) -> void + def initialize: ( + discount_type: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::discount_type, + ?amount_discount: String?, + ?percentage_discount: Float?, + ?usage_discount: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::discount type discount_type = :percentage | :usage | :amount - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + PERCENTAGE: :percentage USAGE: :usage AMOUNT: :amount - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::discount_type] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Discount::discount_type] end end @@ -5370,7 +5001,9 @@ module Orb | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice | Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice - class Price < Orb::Union + module Price + extend Orb::Union + type new_subscription_unit_price = { cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::cadence, @@ -5424,29 +5057,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::cadence, - item_id: String, - name: String, - unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_unit_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::cadence, + item_id: String, + name: String, + unit_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::UnitConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_unit_price @@ -5458,7 +5086,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -5466,7 +5096,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::cadence] end type unit_config = { unit_amount: String } @@ -5474,12 +5104,7 @@ module Orb class UnitConfig < Orb::BaseModel attr_accessor unit_amount: String - def initialize: - (unit_amount: String) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::unit_config - | Orb::BaseModel data - ) -> void + def initialize: (unit_amount: String) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::unit_config end @@ -5495,25 +5120,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::BillingCycleConfiguration::duration_unit] end end @@ -5528,25 +5150,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -5604,29 +5223,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::cadence, - item_id: String, - name: String, - package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :package - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::cadence, + item_id: String, + name: String, + package_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::PackageConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :package + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_package_price @@ -5638,7 +5252,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -5646,7 +5262,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::cadence] end type package_config = @@ -5657,12 +5273,10 @@ module Orb attr_accessor package_size: Integer - def initialize: - (package_amount: String, package_size: Integer) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::package_config - | Orb::BaseModel data - ) -> void + def initialize: ( + package_amount: String, + package_size: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::package_config end @@ -5678,25 +5292,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -5711,25 +5322,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -5787,29 +5395,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::cadence, - item_id: String, - matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :matrix - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_matrix_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::cadence, + item_id: String, + matrix_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :matrix + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_matrix_price @@ -5821,7 +5424,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -5829,7 +5434,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::cadence] end type matrix_config = @@ -5846,16 +5451,11 @@ module Orb attr_accessor matrix_values: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - def initialize: - ( - default_unit_amount: String, - dimensions: ::Array[String?], - matrix_values: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::matrix_config - | Orb::BaseModel data - ) -> void + def initialize: ( + default_unit_amount: String, + dimensions: ::Array[String?], + matrix_values: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::MatrixValue] + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::matrix_config @@ -5867,15 +5467,10 @@ module Orb attr_accessor unit_amount: String - def initialize: - ( - dimension_values: ::Array[String?], - unit_amount: String - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::matrix_value - | Orb::BaseModel data - ) -> void + def initialize: ( + dimension_values: ::Array[String?], + unit_amount: String + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::MatrixConfig::matrix_value end @@ -5892,25 +5487,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::BillingCycleConfiguration::duration_unit] end end @@ -5925,25 +5517,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6001,29 +5590,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::cadence, - item_id: String, - name: String, - tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tiered_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::cadence, + item_id: String, + name: String, + tiered_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tiered_price @@ -6035,7 +5619,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -6043,7 +5629,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::cadence] end type tiered_config = @@ -6054,14 +5640,9 @@ module Orb class TieredConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::tiered_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::tiered_config @@ -6075,16 +5656,11 @@ module Orb attr_accessor last_unit: Float? - def initialize: - ( - first_unit: Float, - unit_amount: String, - last_unit: Float? - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + first_unit: Float, + unit_amount: String, + ?last_unit: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::TieredConfig::tier end @@ -6101,25 +5677,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::BillingCycleConfiguration::duration_unit] end end @@ -6134,25 +5707,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6210,29 +5780,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::cadence, - item_id: String, - name: String, - tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_bps - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tiered_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::cadence, + item_id: String, + name: String, + tiered_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_bps + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tiered_bps_price @@ -6244,7 +5809,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -6252,7 +5819,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::cadence] end type tiered_bps_config = @@ -6263,14 +5830,9 @@ module Orb class TieredBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::tiered_bps_config @@ -6291,17 +5853,12 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - minimum_amount: String, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + minimum_amount: String, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::TieredBpsConfig::tier end @@ -6318,25 +5875,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -6351,25 +5905,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6427,29 +5978,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bps - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BpsConfig, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bps + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_bps_price @@ -6460,12 +6006,7 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - (bps: Float, per_unit_maximum: String?) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::bps_config - | Orb::BaseModel data - ) -> void + def initialize: (bps: Float, ?per_unit_maximum: String?) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::bps_config end @@ -6478,7 +6019,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -6486,7 +6029,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::cadence] end type billing_cycle_configuration = @@ -6500,25 +6043,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -6533,25 +6073,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6609,29 +6146,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bulk_bps - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_bulk_bps_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_bps_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bulk_bps + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_bulk_bps_price @@ -6643,14 +6175,9 @@ module Orb class BulkBpsConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::bulk_bps_config @@ -6668,16 +6195,11 @@ module Orb attr_accessor per_unit_maximum: String? - def initialize: - ( - bps: Float, - maximum_amount: String?, - per_unit_maximum: String? - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + bps: Float, + ?maximum_amount: String?, + ?per_unit_maximum: String? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BulkBpsConfig::tier end @@ -6691,7 +6213,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -6699,7 +6223,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::cadence] end type billing_cycle_configuration = @@ -6713,25 +6237,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::BillingCycleConfiguration::duration_unit] end end @@ -6746,25 +6267,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkBpsPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -6822,29 +6340,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bulk - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_bulk_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig, + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bulk + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_bulk_price @@ -6856,14 +6369,9 @@ module Orb class BulkConfig < Orb::BaseModel attr_accessor tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - def initialize: - ( - tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::bulk_config - | Orb::BaseModel data - ) -> void + def initialize: ( + tiers: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::Tier] + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::bulk_config @@ -6874,12 +6382,10 @@ module Orb attr_accessor maximum_units: Float? - def initialize: - (unit_amount: String, maximum_units: Float?) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::tier - | Orb::BaseModel data - ) -> void + def initialize: ( + unit_amount: String, + ?maximum_units: Float? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BulkConfig::tier end @@ -6893,7 +6399,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -6901,7 +6409,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::cadence] end type billing_cycle_configuration = @@ -6915,25 +6423,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -6948,25 +6453,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7024,29 +6526,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence, - item_id: String, - name: String, - threshold_total_amount_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :threshold_total_amount - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_threshold_total_amount_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence, + item_id: String, + name: String, + threshold_total_amount_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :threshold_total_amount + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_threshold_total_amount_price @@ -7058,7 +6555,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -7066,7 +6565,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::cadence] end type billing_cycle_configuration = @@ -7080,25 +6579,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::BillingCycleConfiguration::duration_unit] end end @@ -7113,25 +6609,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionThresholdTotalAmountPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7189,29 +6682,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::cadence, - item_id: String, - name: String, - tiered_package_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::cadence, + item_id: String, + name: String, + tiered_package_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tiered_package_price @@ -7223,7 +6711,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -7231,7 +6721,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -7245,25 +6735,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -7278,25 +6765,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7354,29 +6838,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence, - item_id: String, - name: String, - tiered_with_minimum_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_with_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tiered_with_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence, + item_id: String, + name: String, + tiered_with_minimum_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_with_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tiered_with_minimum_price @@ -7388,7 +6867,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -7396,7 +6877,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::cadence] end type billing_cycle_configuration = @@ -7410,25 +6891,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -7443,25 +6921,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTieredWithMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7519,29 +6994,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::cadence, - item_id: String, - name: String, - unit_with_percent_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :unit_with_percent - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_unit_with_percent_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::cadence, + item_id: String, + name: String, + unit_with_percent_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :unit_with_percent + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_unit_with_percent_price @@ -7553,7 +7023,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -7561,7 +7033,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::cadence] end type billing_cycle_configuration = @@ -7575,25 +7047,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::BillingCycleConfiguration::duration_unit] end end @@ -7608,25 +7077,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithPercentPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7684,29 +7150,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence, - item_id: String, - name: String, - package_with_allocation_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :package_with_allocation - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_package_with_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence, + item_id: String, + name: String, + package_with_allocation_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :package_with_allocation + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_package_with_allocation_price @@ -7718,7 +7179,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -7726,7 +7189,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::cadence] end type billing_cycle_configuration = @@ -7740,25 +7203,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -7773,25 +7233,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionPackageWithAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -7849,29 +7306,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::cadence, - item_id: String, - name: String, - tiered_with_proration_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :tiered_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tier_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::cadence, + item_id: String, + name: String, + tiered_with_proration_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_tier_with_proration_price @@ -7883,7 +7335,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -7891,7 +7345,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -7905,25 +7359,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -7938,25 +7389,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionTierWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -8014,29 +7462,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::cadence, - item_id: String, - name: String, - unit_with_proration_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :unit_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_unit_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::cadence, + item_id: String, + name: String, + unit_with_proration_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :unit_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_unit_with_proration_price @@ -8048,7 +7491,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -8056,7 +7501,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -8070,25 +7515,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -8103,25 +7545,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionUnitWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -8179,29 +7618,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::cadence, - grouped_allocation_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_allocation - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_grouped_allocation_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::cadence, + grouped_allocation_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_allocation + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_grouped_allocation_price @@ -8213,7 +7647,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -8221,7 +7657,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::cadence] end type billing_cycle_configuration = @@ -8235,25 +7671,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::BillingCycleConfiguration::duration_unit] end end @@ -8268,25 +7701,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedAllocationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -8344,29 +7774,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence, - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_with_prorated_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_grouped_with_prorated_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence, + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_with_prorated_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_grouped_with_prorated_minimum_price @@ -8378,7 +7803,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -8386,7 +7813,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::cadence] end type billing_cycle_configuration = @@ -8400,25 +7827,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -8433,25 +7857,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithProratedMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -8509,29 +7930,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::cadence, - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :bulk_with_proration - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_bulk_with_proration_price - | Orb::BaseModel data - ) -> void + def initialize: ( + bulk_with_proration_config: ::Hash[Symbol, top], + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::cadence, + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :bulk_with_proration + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_bulk_with_proration_price @@ -8543,7 +7959,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -8551,7 +7969,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::cadence] end type billing_cycle_configuration = @@ -8565,25 +7983,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::BillingCycleConfiguration::duration_unit] end end @@ -8598,25 +8013,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionBulkWithProrationPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -8674,29 +8086,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::cadence, - item_id: String, - name: String, - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :scalable_matrix_with_unit_pricing - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_scalable_matrix_with_unit_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::cadence, + item_id: String, + name: String, + scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :scalable_matrix_with_unit_pricing + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_scalable_matrix_with_unit_pricing_price @@ -8708,7 +8115,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -8716,7 +8125,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::cadence] end type billing_cycle_configuration = @@ -8730,25 +8139,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -8763,25 +8169,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithUnitPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -8839,29 +8242,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::cadence, - item_id: String, - name: String, - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :scalable_matrix_with_tiered_pricing - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_scalable_matrix_with_tiered_pricing_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::cadence, + item_id: String, + name: String, + scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :scalable_matrix_with_tiered_pricing + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_scalable_matrix_with_tiered_pricing_price @@ -8873,7 +8271,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -8881,7 +8281,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::cadence] end type billing_cycle_configuration = @@ -8895,25 +8295,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::BillingCycleConfiguration::duration_unit] end end @@ -8928,25 +8325,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -9004,29 +8398,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::cadence, - cumulative_grouped_bulk_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :cumulative_grouped_bulk - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_cumulative_grouped_bulk_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::cadence, + cumulative_grouped_bulk_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :cumulative_grouped_bulk + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_cumulative_grouped_bulk_price @@ -9038,7 +8427,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -9046,7 +8437,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::cadence] end type billing_cycle_configuration = @@ -9060,25 +8451,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::BillingCycleConfiguration::duration_unit] end end @@ -9093,25 +8481,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -9169,29 +8554,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::cadence, - item_id: String, - max_group_tiered_package_config: ::Hash[Symbol, top], - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :max_group_tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_max_group_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::cadence, + item_id: String, + max_group_tiered_package_config: ::Hash[Symbol, top], + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :max_group_tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_max_group_tiered_package_price @@ -9203,7 +8583,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -9211,7 +8593,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -9225,25 +8607,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -9258,25 +8637,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -9334,29 +8710,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence, - grouped_with_metered_minimum_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_with_metered_minimum - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_grouped_with_metered_minimum_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence, + grouped_with_metered_minimum_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_with_metered_minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_grouped_with_metered_minimum_price @@ -9368,7 +8739,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -9376,7 +8749,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence] end type billing_cycle_configuration = @@ -9390,25 +8763,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::BillingCycleConfiguration::duration_unit] end end @@ -9423,25 +8793,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -9499,29 +8866,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::cadence, - item_id: String, - matrix_with_display_name_config: ::Hash[Symbol, top], - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :matrix_with_display_name - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_matrix_with_display_name_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::cadence, + item_id: String, + matrix_with_display_name_config: ::Hash[Symbol, top], + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :matrix_with_display_name + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_matrix_with_display_name_price @@ -9533,7 +8895,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -9541,7 +8905,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::cadence] end type billing_cycle_configuration = @@ -9555,25 +8919,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::BillingCycleConfiguration::duration_unit] end end @@ -9588,25 +8949,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice::InvoicingCycleConfiguration::duration_unit] end end end @@ -9664,29 +9022,24 @@ module Orb attr_accessor reference_id: String? - def initialize: - ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::cadence, - grouped_tiered_package_config: ::Hash[Symbol, top], - item_id: String, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration?, - conversion_rate: Float?, - currency: String?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String?, - model_type: :grouped_tiered_package - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_grouped_tiered_package_price - | Orb::BaseModel data - ) -> void + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::cadence, + grouped_tiered_package_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?currency: String?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_tiered_package + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::new_subscription_grouped_tiered_package_price @@ -9698,7 +9051,9 @@ module Orb | :one_time | :custom - class Cadence < Orb::Enum + module Cadence + extend Orb::Enum + ANNUAL: :annual SEMI_ANNUAL: :semi_annual MONTHLY: :monthly @@ -9706,7 +9061,7 @@ module Orb ONE_TIME: :one_time CUSTOM: :custom - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::cadence] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::cadence] end type billing_cycle_configuration = @@ -9720,25 +9075,22 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::billing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::billing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::BillingCycleConfiguration::duration_unit] end end @@ -9753,30 +9105,27 @@ module Orb attr_accessor duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - def initialize: - ( - duration: Integer, - duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::invoicing_cycle_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + duration: Integer, + duration_unit: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::invoicing_cycle_configuration type duration_unit = :day | :month - class DurationUnit < Orb::Enum + module DurationUnit + extend Orb::Enum + DAY: :day MONTH: :month - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice::InvoicingCycleConfiguration::duration_unit] end end end - def self.variants: -> [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::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice] + def self?.variants: -> [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::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::NewSubscriptionGroupedTieredPackagePrice] end end end diff --git a/sig/orb/models/subscription_schedule_plan_change_response.rbs b/sig/orb/models/subscription_schedule_plan_change_response.rbs index 85b40673..8dc4dd30 100644 --- a/sig/orb/models/subscription_schedule_plan_change_response.rbs +++ b/sig/orb/models/subscription_schedule_plan_change_response.rbs @@ -80,38 +80,33 @@ module Orb attr_accessor trial_info: Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo - def initialize: - ( - id: String, - active_plan_phase_order: Integer?, - adjustment_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval], - auto_collection: bool?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, - default_invoice_memo: String?, - discount_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::discount_interval], - end_date: Time?, - fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule], - invoicing_threshold: String?, - maximum_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval], - metadata: ::Hash[Symbol, String], - minimum_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval], - redeemed_coupon: Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon?, - start_date: Time, - status: Orb::Models::SubscriptionSchedulePlanChangeResponse::status, - trial_info: Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo - ) -> void - | ( - ?Orb::Models::subscription_schedule_plan_change_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + active_plan_phase_order: Integer?, + adjustment_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval], + auto_collection: bool?, + billing_cycle_anchor_configuration: Orb::Models::SubscriptionSchedulePlanChangeResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + customer: Orb::Models::Customer, + default_invoice_memo: String?, + discount_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::discount_interval], + end_date: Time?, + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::FixedFeeQuantitySchedule], + invoicing_threshold: String?, + maximum_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval], + redeemed_coupon: Orb::Models::SubscriptionSchedulePlanChangeResponse::RedeemedCoupon?, + start_date: Time, + status: Orb::Models::SubscriptionSchedulePlanChangeResponse::status, + trial_info: Orb::Models::SubscriptionSchedulePlanChangeResponse::TrialInfo + ) -> void def to_hash: -> Orb::Models::subscription_schedule_plan_change_response @@ -135,18 +130,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - id: String, - adjustment: Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::adjustment_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + adjustment: Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::adjustment, + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::adjustment_interval @@ -157,7 +147,9 @@ module Orb | Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment | Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type plan_phase_usage_discount_adjustment = { id: String, @@ -184,20 +176,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end @@ -228,20 +215,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end @@ -272,20 +254,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end @@ -319,21 +296,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end @@ -364,25 +336,20 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end - def self.variants: -> [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] + def self?.variants: -> [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 end @@ -396,12 +363,11 @@ module Orb attr_accessor year: Integer? - def initialize: - (day: Integer, month: Integer?, year: Integer?) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::billing_cycle_anchor_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + day: Integer, + ?month: Integer?, + ?year: Integer? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::billing_cycle_anchor_configuration end @@ -411,7 +377,9 @@ module Orb | Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval | Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + type amount_discount_interval = { amount_discount: String, @@ -435,19 +403,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - discount_type: :amount - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::amount_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + ?discount_type: :amount + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::amount_discount_interval end @@ -475,19 +438,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - percentage_discount: Float, - start_date: Time, - discount_type: :percentage - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::percentage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + percentage_discount: Float, + start_date: Time, + ?discount_type: :percentage + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::percentage_discount_interval end @@ -515,24 +473,19 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - usage_discount: Float, - discount_type: :usage - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::usage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + usage_discount: Float, + ?discount_type: :usage + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::usage_discount_interval end - def self.variants: -> [Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval] + def self?.variants: -> [Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionSchedulePlanChangeResponse::DiscountInterval::UsageDiscountInterval] end type fixed_fee_quantity_schedule = @@ -547,17 +500,12 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - end_date: Time?, - price_id: String, - quantity: Float, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::fixed_fee_quantity_schedule - | Orb::BaseModel data - ) -> void + def initialize: ( + end_date: Time?, + price_id: String, + quantity: Float, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::fixed_fee_quantity_schedule end @@ -582,18 +530,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - maximum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::maximum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + maximum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::maximum_interval end @@ -618,18 +561,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - minimum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::minimum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + minimum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::minimum_interval end @@ -669,23 +607,18 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - end_date: Time?, - filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition]?, - price: Orb::Models::price, - start_date: Time, - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::price_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + end_date: Time?, + filter: String?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::FixedFeeQuantityTransition]?, + price: Orb::Models::price, + start_date: Time, + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::price_interval @@ -699,12 +632,11 @@ module Orb attr_accessor quantity: Integer - def initialize: - (effective_date: Time, price_id: String, quantity: Integer) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::fixed_fee_quantity_transition - | Orb::BaseModel data - ) -> void + def initialize: ( + effective_date: Time, + price_id: String, + quantity: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::PriceInterval::fixed_fee_quantity_transition end @@ -720,24 +652,25 @@ module Orb attr_accessor start_date: Time - def initialize: - (coupon_id: String, end_date: Time?, start_date: Time) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::redeemed_coupon - | Orb::BaseModel data - ) -> void + def initialize: ( + coupon_id: String, + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::redeemed_coupon end type status = :active | :ended | :upcoming - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ENDED: :ended UPCOMING: :upcoming - def self.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::status] + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeResponse::status] end type trial_info = { end_date: Time? } @@ -745,12 +678,7 @@ module Orb class TrialInfo < Orb::BaseModel attr_accessor end_date: Time? - def initialize: - (end_date: Time?) -> void - | ( - ?Orb::Models::SubscriptionSchedulePlanChangeResponse::trial_info - | Orb::BaseModel data - ) -> void + def initialize: (end_date: Time?) -> void def to_hash: -> Orb::Models::SubscriptionSchedulePlanChangeResponse::trial_info end diff --git a/sig/orb/models/subscription_trigger_phase_params.rbs b/sig/orb/models/subscription_trigger_phase_params.rbs index 68b1ad54..2382adeb 100644 --- a/sig/orb/models/subscription_trigger_phase_params.rbs +++ b/sig/orb/models/subscription_trigger_phase_params.rbs @@ -12,15 +12,11 @@ module Orb attr_accessor effective_date: Date? - def initialize: - ( - allow_invoice_credit_or_void: bool?, - effective_date: Date?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::subscription_trigger_phase_params | Orb::BaseModel data - ) -> void + def initialize: ( + ?allow_invoice_credit_or_void: bool?, + ?effective_date: Date?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::subscription_trigger_phase_params end diff --git a/sig/orb/models/subscription_trigger_phase_response.rbs b/sig/orb/models/subscription_trigger_phase_response.rbs index b2bf7387..41147c8c 100644 --- a/sig/orb/models/subscription_trigger_phase_response.rbs +++ b/sig/orb/models/subscription_trigger_phase_response.rbs @@ -80,38 +80,33 @@ module Orb attr_accessor trial_info: Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo - def initialize: - ( - id: String, - active_plan_phase_order: Integer?, - adjustment_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval], - auto_collection: bool?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, - default_invoice_memo: String?, - discount_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::discount_interval], - end_date: Time?, - fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule], - invoicing_threshold: String?, - maximum_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval], - metadata: ::Hash[Symbol, String], - minimum_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval], - redeemed_coupon: Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon?, - start_date: Time, - status: Orb::Models::SubscriptionTriggerPhaseResponse::status, - trial_info: Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo - ) -> void - | ( - ?Orb::Models::subscription_trigger_phase_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + active_plan_phase_order: Integer?, + adjustment_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval], + auto_collection: bool?, + billing_cycle_anchor_configuration: Orb::Models::SubscriptionTriggerPhaseResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + customer: Orb::Models::Customer, + default_invoice_memo: String?, + discount_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::discount_interval], + end_date: Time?, + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::FixedFeeQuantitySchedule], + invoicing_threshold: String?, + maximum_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval], + redeemed_coupon: Orb::Models::SubscriptionTriggerPhaseResponse::RedeemedCoupon?, + start_date: Time, + status: Orb::Models::SubscriptionTriggerPhaseResponse::status, + trial_info: Orb::Models::SubscriptionTriggerPhaseResponse::TrialInfo + ) -> void def to_hash: -> Orb::Models::subscription_trigger_phase_response @@ -135,18 +130,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - id: String, - adjustment: Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::adjustment_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + adjustment: Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::adjustment, + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::adjustment_interval @@ -157,7 +147,9 @@ module Orb | Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment | Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type plan_phase_usage_discount_adjustment = { id: String, @@ -184,20 +176,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end @@ -228,20 +215,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end @@ -272,20 +254,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end @@ -319,21 +296,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end @@ -364,25 +336,20 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end - def self.variants: -> [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] + def self?.variants: -> [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 end @@ -396,12 +363,11 @@ module Orb attr_accessor year: Integer? - def initialize: - (day: Integer, month: Integer?, year: Integer?) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::billing_cycle_anchor_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + day: Integer, + ?month: Integer?, + ?year: Integer? + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::billing_cycle_anchor_configuration end @@ -411,7 +377,9 @@ module Orb | Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval | Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + type amount_discount_interval = { amount_discount: String, @@ -435,19 +403,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - discount_type: :amount - ) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::amount_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + ?discount_type: :amount + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::amount_discount_interval end @@ -475,19 +438,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - percentage_discount: Float, - start_date: Time, - discount_type: :percentage - ) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::percentage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + percentage_discount: Float, + start_date: Time, + ?discount_type: :percentage + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::percentage_discount_interval end @@ -515,24 +473,19 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - usage_discount: Float, - discount_type: :usage - ) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::usage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + usage_discount: Float, + ?discount_type: :usage + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::usage_discount_interval end - def self.variants: -> [Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval] + def self?.variants: -> [Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionTriggerPhaseResponse::DiscountInterval::UsageDiscountInterval] end type fixed_fee_quantity_schedule = @@ -547,17 +500,12 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - end_date: Time?, - price_id: String, - quantity: Float, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::fixed_fee_quantity_schedule - | Orb::BaseModel data - ) -> void + def initialize: ( + end_date: Time?, + price_id: String, + quantity: Float, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::fixed_fee_quantity_schedule end @@ -582,18 +530,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - maximum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::maximum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + maximum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::maximum_interval end @@ -618,18 +561,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - minimum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::minimum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + minimum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::minimum_interval end @@ -669,23 +607,18 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - end_date: Time?, - filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition]?, - price: Orb::Models::price, - start_date: Time, - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::price_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + end_date: Time?, + filter: String?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::FixedFeeQuantityTransition]?, + price: Orb::Models::price, + start_date: Time, + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::price_interval @@ -699,12 +632,11 @@ module Orb attr_accessor quantity: Integer - def initialize: - (effective_date: Time, price_id: String, quantity: Integer) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::fixed_fee_quantity_transition - | Orb::BaseModel data - ) -> void + def initialize: ( + effective_date: Time, + price_id: String, + quantity: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::PriceInterval::fixed_fee_quantity_transition end @@ -720,24 +652,25 @@ module Orb attr_accessor start_date: Time - def initialize: - (coupon_id: String, end_date: Time?, start_date: Time) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::redeemed_coupon - | Orb::BaseModel data - ) -> void + def initialize: ( + coupon_id: String, + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::redeemed_coupon end type status = :active | :ended | :upcoming - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ENDED: :ended UPCOMING: :upcoming - def self.values: -> ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::status] + def self?.values: -> ::Array[Orb::Models::SubscriptionTriggerPhaseResponse::status] end type trial_info = { end_date: Time? } @@ -745,12 +678,7 @@ module Orb class TrialInfo < Orb::BaseModel attr_accessor end_date: Time? - def initialize: - (end_date: Time?) -> void - | ( - ?Orb::Models::SubscriptionTriggerPhaseResponse::trial_info - | Orb::BaseModel data - ) -> void + def initialize: (end_date: Time?) -> void def to_hash: -> Orb::Models::SubscriptionTriggerPhaseResponse::trial_info end diff --git a/sig/orb/models/subscription_unschedule_cancellation_params.rbs b/sig/orb/models/subscription_unschedule_cancellation_params.rbs index d17dd4b4..1007758e 100644 --- a/sig/orb/models/subscription_unschedule_cancellation_params.rbs +++ b/sig/orb/models/subscription_unschedule_cancellation_params.rbs @@ -7,12 +7,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::subscription_unschedule_cancellation_params - | Orb::BaseModel data - ) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::subscription_unschedule_cancellation_params end diff --git a/sig/orb/models/subscription_unschedule_cancellation_response.rbs b/sig/orb/models/subscription_unschedule_cancellation_response.rbs index 05baff9b..521465ca 100644 --- a/sig/orb/models/subscription_unschedule_cancellation_response.rbs +++ b/sig/orb/models/subscription_unschedule_cancellation_response.rbs @@ -80,38 +80,33 @@ module Orb attr_accessor trial_info: Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo - def initialize: - ( - id: String, - active_plan_phase_order: Integer?, - adjustment_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval], - auto_collection: bool?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, - default_invoice_memo: String?, - discount_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::discount_interval], - end_date: Time?, - fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule], - invoicing_threshold: String?, - maximum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval], - metadata: ::Hash[Symbol, String], - minimum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval], - redeemed_coupon: Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon?, - start_date: Time, - status: Orb::Models::SubscriptionUnscheduleCancellationResponse::status, - trial_info: Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo - ) -> void - | ( - ?Orb::Models::subscription_unschedule_cancellation_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + active_plan_phase_order: Integer?, + adjustment_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval], + auto_collection: bool?, + billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleCancellationResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + customer: Orb::Models::Customer, + default_invoice_memo: String?, + discount_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::discount_interval], + end_date: Time?, + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::FixedFeeQuantitySchedule], + invoicing_threshold: String?, + maximum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval], + redeemed_coupon: Orb::Models::SubscriptionUnscheduleCancellationResponse::RedeemedCoupon?, + start_date: Time, + status: Orb::Models::SubscriptionUnscheduleCancellationResponse::status, + trial_info: Orb::Models::SubscriptionUnscheduleCancellationResponse::TrialInfo + ) -> void def to_hash: -> Orb::Models::subscription_unschedule_cancellation_response @@ -135,18 +130,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - id: String, - adjustment: Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::adjustment_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + adjustment: Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::adjustment, + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::adjustment_interval @@ -157,7 +147,9 @@ module Orb | Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment | Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type plan_phase_usage_discount_adjustment = { id: String, @@ -184,20 +176,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end @@ -228,20 +215,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end @@ -272,20 +254,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end @@ -319,21 +296,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end @@ -364,25 +336,20 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end - def self.variants: -> [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] + def self?.variants: -> [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 end @@ -396,12 +363,11 @@ module Orb attr_accessor year: Integer? - def initialize: - (day: Integer, month: Integer?, year: Integer?) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::billing_cycle_anchor_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + day: Integer, + ?month: Integer?, + ?year: Integer? + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::billing_cycle_anchor_configuration end @@ -411,7 +377,9 @@ module Orb | Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval | Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + type amount_discount_interval = { amount_discount: String, @@ -435,19 +403,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - discount_type: :amount - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::amount_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + ?discount_type: :amount + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::amount_discount_interval end @@ -475,19 +438,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - percentage_discount: Float, - start_date: Time, - discount_type: :percentage - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::percentage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + percentage_discount: Float, + start_date: Time, + ?discount_type: :percentage + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::percentage_discount_interval end @@ -515,24 +473,19 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - usage_discount: Float, - discount_type: :usage - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::usage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + usage_discount: Float, + ?discount_type: :usage + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::usage_discount_interval end - def self.variants: -> [Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval] + def self?.variants: -> [Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleCancellationResponse::DiscountInterval::UsageDiscountInterval] end type fixed_fee_quantity_schedule = @@ -547,17 +500,12 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - end_date: Time?, - price_id: String, - quantity: Float, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::fixed_fee_quantity_schedule - | Orb::BaseModel data - ) -> void + def initialize: ( + end_date: Time?, + price_id: String, + quantity: Float, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::fixed_fee_quantity_schedule end @@ -582,18 +530,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - maximum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::maximum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + maximum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::maximum_interval end @@ -618,18 +561,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - minimum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::minimum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + minimum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::minimum_interval end @@ -669,23 +607,18 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - end_date: Time?, - filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition]?, - price: Orb::Models::price, - start_date: Time, - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::price_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + end_date: Time?, + filter: String?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::FixedFeeQuantityTransition]?, + price: Orb::Models::price, + start_date: Time, + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::price_interval @@ -699,12 +632,11 @@ module Orb attr_accessor quantity: Integer - def initialize: - (effective_date: Time, price_id: String, quantity: Integer) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::fixed_fee_quantity_transition - | Orb::BaseModel data - ) -> void + def initialize: ( + effective_date: Time, + price_id: String, + quantity: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::PriceInterval::fixed_fee_quantity_transition end @@ -720,24 +652,25 @@ module Orb attr_accessor start_date: Time - def initialize: - (coupon_id: String, end_date: Time?, start_date: Time) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::redeemed_coupon - | Orb::BaseModel data - ) -> void + def initialize: ( + coupon_id: String, + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::redeemed_coupon end type status = :active | :ended | :upcoming - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ENDED: :ended UPCOMING: :upcoming - def self.values: -> ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::status] + def self?.values: -> ::Array[Orb::Models::SubscriptionUnscheduleCancellationResponse::status] end type trial_info = { end_date: Time? } @@ -745,12 +678,7 @@ module Orb class TrialInfo < Orb::BaseModel attr_accessor end_date: Time? - def initialize: - (end_date: Time?) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleCancellationResponse::trial_info - | Orb::BaseModel data - ) -> void + def initialize: (end_date: Time?) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleCancellationResponse::trial_info end diff --git a/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs b/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs index e878f227..9cc2d32e 100644 --- a/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs +++ b/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs @@ -9,12 +9,10 @@ module Orb attr_accessor price_id: String - def initialize: - (price_id: String, request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::subscription_unschedule_fixed_fee_quantity_updates_params - | Orb::BaseModel data - ) -> void + def initialize: ( + price_id: String, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::subscription_unschedule_fixed_fee_quantity_updates_params end diff --git a/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs b/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs index 1910c047..30ea8939 100644 --- a/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +++ b/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs @@ -80,38 +80,33 @@ module Orb attr_accessor trial_info: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo - def initialize: - ( - id: String, - active_plan_phase_order: Integer?, - adjustment_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval], - auto_collection: bool?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, - default_invoice_memo: String?, - discount_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::discount_interval], - end_date: Time?, - fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule], - invoicing_threshold: String?, - maximum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval], - metadata: ::Hash[Symbol, String], - minimum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval], - redeemed_coupon: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon?, - start_date: Time, - status: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::status, - trial_info: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo - ) -> void - | ( - ?Orb::Models::subscription_unschedule_fixed_fee_quantity_updates_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + active_plan_phase_order: Integer?, + adjustment_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval], + auto_collection: bool?, + billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + customer: Orb::Models::Customer, + default_invoice_memo: String?, + discount_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::discount_interval], + end_date: Time?, + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::FixedFeeQuantitySchedule], + invoicing_threshold: String?, + maximum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval], + redeemed_coupon: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::RedeemedCoupon?, + start_date: Time, + status: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::status, + trial_info: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::TrialInfo + ) -> void def to_hash: -> Orb::Models::subscription_unschedule_fixed_fee_quantity_updates_response @@ -135,18 +130,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - id: String, - adjustment: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::adjustment_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + adjustment: Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::adjustment, + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::adjustment_interval @@ -157,7 +147,9 @@ module Orb | Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment | Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type plan_phase_usage_discount_adjustment = { id: String, @@ -184,20 +176,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end @@ -228,20 +215,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end @@ -272,20 +254,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end @@ -319,21 +296,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end @@ -364,25 +336,20 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end - def self.variants: -> [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] + def self?.variants: -> [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 end @@ -396,12 +363,11 @@ module Orb attr_accessor year: Integer? - def initialize: - (day: Integer, month: Integer?, year: Integer?) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::billing_cycle_anchor_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + day: Integer, + ?month: Integer?, + ?year: Integer? + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::billing_cycle_anchor_configuration end @@ -411,7 +377,9 @@ module Orb | Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval | Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + type amount_discount_interval = { amount_discount: String, @@ -435,19 +403,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - discount_type: :amount - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::amount_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + ?discount_type: :amount + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::amount_discount_interval end @@ -475,19 +438,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - percentage_discount: Float, - start_date: Time, - discount_type: :percentage - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::percentage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + percentage_discount: Float, + start_date: Time, + ?discount_type: :percentage + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::percentage_discount_interval end @@ -515,24 +473,19 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - usage_discount: Float, - discount_type: :usage - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::usage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + usage_discount: Float, + ?discount_type: :usage + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::usage_discount_interval end - def self.variants: -> [Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval] + def self?.variants: -> [Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::DiscountInterval::UsageDiscountInterval] end type fixed_fee_quantity_schedule = @@ -547,17 +500,12 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - end_date: Time?, - price_id: String, - quantity: Float, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::fixed_fee_quantity_schedule - | Orb::BaseModel data - ) -> void + def initialize: ( + end_date: Time?, + price_id: String, + quantity: Float, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::fixed_fee_quantity_schedule end @@ -582,18 +530,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - maximum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::maximum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + maximum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::maximum_interval end @@ -618,18 +561,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - minimum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::minimum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + minimum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::minimum_interval end @@ -669,23 +607,18 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - end_date: Time?, - filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition]?, - price: Orb::Models::price, - start_date: Time, - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::price_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + end_date: Time?, + filter: String?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::FixedFeeQuantityTransition]?, + price: Orb::Models::price, + start_date: Time, + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::price_interval @@ -699,12 +632,11 @@ module Orb attr_accessor quantity: Integer - def initialize: - (effective_date: Time, price_id: String, quantity: Integer) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::fixed_fee_quantity_transition - | Orb::BaseModel data - ) -> void + def initialize: ( + effective_date: Time, + price_id: String, + quantity: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::PriceInterval::fixed_fee_quantity_transition end @@ -720,24 +652,25 @@ module Orb attr_accessor start_date: Time - def initialize: - (coupon_id: String, end_date: Time?, start_date: Time) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::redeemed_coupon - | Orb::BaseModel data - ) -> void + def initialize: ( + coupon_id: String, + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::redeemed_coupon end type status = :active | :ended | :upcoming - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ENDED: :ended UPCOMING: :upcoming - def self.values: -> ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::status] + def self?.values: -> ::Array[Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::status] end type trial_info = { end_date: Time? } @@ -745,12 +678,7 @@ module Orb class TrialInfo < Orb::BaseModel attr_accessor end_date: Time? - def initialize: - (end_date: Time?) -> void - | ( - ?Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::trial_info - | Orb::BaseModel data - ) -> void + def initialize: (end_date: Time?) -> void def to_hash: -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse::trial_info end diff --git a/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs b/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs index 65880357..c492a2d0 100644 --- a/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs +++ b/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs @@ -7,12 +7,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | ( - ?Orb::Models::subscription_unschedule_pending_plan_changes_params - | Orb::BaseModel data - ) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::subscription_unschedule_pending_plan_changes_params end diff --git a/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs b/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs index 1563ad3c..5dcfbbbd 100644 --- a/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +++ b/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs @@ -80,38 +80,33 @@ module Orb attr_accessor trial_info: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo - def initialize: - ( - id: String, - active_plan_phase_order: Integer?, - adjustment_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval], - auto_collection: bool?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, - default_invoice_memo: String?, - discount_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::discount_interval], - end_date: Time?, - fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule], - invoicing_threshold: String?, - maximum_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval], - metadata: ::Hash[Symbol, String], - minimum_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval], - redeemed_coupon: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon?, - start_date: Time, - status: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::status, - trial_info: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo - ) -> void - | ( - ?Orb::Models::subscription_unschedule_pending_plan_changes_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + active_plan_phase_order: Integer?, + adjustment_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval], + auto_collection: bool?, + billing_cycle_anchor_configuration: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + customer: Orb::Models::Customer, + default_invoice_memo: String?, + discount_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::discount_interval], + end_date: Time?, + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::FixedFeeQuantitySchedule], + invoicing_threshold: String?, + maximum_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval], + redeemed_coupon: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::RedeemedCoupon?, + start_date: Time, + status: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::status, + trial_info: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::TrialInfo + ) -> void def to_hash: -> Orb::Models::subscription_unschedule_pending_plan_changes_response @@ -135,18 +130,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - id: String, - adjustment: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::adjustment_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + adjustment: Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::adjustment, + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::adjustment_interval @@ -157,7 +147,9 @@ module Orb | Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment | Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type plan_phase_usage_discount_adjustment = { id: String, @@ -184,20 +176,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end @@ -228,20 +215,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end @@ -272,20 +254,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end @@ -319,21 +296,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end @@ -364,25 +336,20 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end - def self.variants: -> [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] + def self?.variants: -> [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 end @@ -396,12 +363,11 @@ module Orb attr_accessor year: Integer? - def initialize: - (day: Integer, month: Integer?, year: Integer?) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::billing_cycle_anchor_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + day: Integer, + ?month: Integer?, + ?year: Integer? + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::billing_cycle_anchor_configuration end @@ -411,7 +377,9 @@ module Orb | Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval | Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + type amount_discount_interval = { amount_discount: String, @@ -435,19 +403,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - discount_type: :amount - ) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::amount_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + ?discount_type: :amount + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::amount_discount_interval end @@ -475,19 +438,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - percentage_discount: Float, - start_date: Time, - discount_type: :percentage - ) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::percentage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + percentage_discount: Float, + start_date: Time, + ?discount_type: :percentage + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::percentage_discount_interval end @@ -515,24 +473,19 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - usage_discount: Float, - discount_type: :usage - ) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::usage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + usage_discount: Float, + ?discount_type: :usage + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::usage_discount_interval end - def self.variants: -> [Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval] + def self?.variants: -> [Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::DiscountInterval::UsageDiscountInterval] end type fixed_fee_quantity_schedule = @@ -547,17 +500,12 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - end_date: Time?, - price_id: String, - quantity: Float, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::fixed_fee_quantity_schedule - | Orb::BaseModel data - ) -> void + def initialize: ( + end_date: Time?, + price_id: String, + quantity: Float, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::fixed_fee_quantity_schedule end @@ -582,18 +530,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - maximum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::maximum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + maximum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::maximum_interval end @@ -618,18 +561,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - minimum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::minimum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + minimum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::minimum_interval end @@ -669,23 +607,18 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - end_date: Time?, - filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition]?, - price: Orb::Models::price, - start_date: Time, - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::price_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + end_date: Time?, + filter: String?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::FixedFeeQuantityTransition]?, + price: Orb::Models::price, + start_date: Time, + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::price_interval @@ -699,12 +632,11 @@ module Orb attr_accessor quantity: Integer - def initialize: - (effective_date: Time, price_id: String, quantity: Integer) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::fixed_fee_quantity_transition - | Orb::BaseModel data - ) -> void + def initialize: ( + effective_date: Time, + price_id: String, + quantity: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::PriceInterval::fixed_fee_quantity_transition end @@ -720,24 +652,25 @@ module Orb attr_accessor start_date: Time - def initialize: - (coupon_id: String, end_date: Time?, start_date: Time) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::redeemed_coupon - | Orb::BaseModel data - ) -> void + def initialize: ( + coupon_id: String, + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::redeemed_coupon end type status = :active | :ended | :upcoming - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ENDED: :ended UPCOMING: :upcoming - def self.values: -> ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::status] + def self?.values: -> ::Array[Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::status] end type trial_info = { end_date: Time? } @@ -745,12 +678,7 @@ module Orb class TrialInfo < Orb::BaseModel attr_accessor end_date: Time? - def initialize: - (end_date: Time?) -> void - | ( - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::trial_info - | Orb::BaseModel data - ) -> void + def initialize: (end_date: Time?) -> void def to_hash: -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse::trial_info end diff --git a/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs b/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs index 4658c178..a455c258 100644 --- a/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs +++ b/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs @@ -28,30 +28,27 @@ module Orb attr_accessor effective_date: Date? - def initialize: - ( - price_id: String, - quantity: Float, - allow_invoice_credit_or_void: bool?, - change_option: Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::change_option, - effective_date: Date?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::subscription_update_fixed_fee_quantity_params - | Orb::BaseModel data - ) -> void + def initialize: ( + price_id: String, + quantity: Float, + ?allow_invoice_credit_or_void: bool?, + ?change_option: Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::change_option, + ?effective_date: Date?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::subscription_update_fixed_fee_quantity_params type change_option = :immediate | :upcoming_invoice | :effective_date - class ChangeOption < Orb::Enum + module ChangeOption + extend Orb::Enum + IMMEDIATE: :immediate UPCOMING_INVOICE: :upcoming_invoice EFFECTIVE_DATE: :effective_date - def self.values: -> ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::change_option] + def self?.values: -> ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::change_option] end end end diff --git a/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs b/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs index a2c5a9e3..db8fba33 100644 --- a/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +++ b/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs @@ -80,38 +80,33 @@ module Orb attr_accessor trial_info: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo - def initialize: - ( - id: String, - active_plan_phase_order: Integer?, - adjustment_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval], - auto_collection: bool?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, - default_invoice_memo: String?, - discount_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::discount_interval], - end_date: Time?, - fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule], - invoicing_threshold: String?, - maximum_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval], - metadata: ::Hash[Symbol, String], - minimum_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval], - redeemed_coupon: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon?, - start_date: Time, - status: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::status, - trial_info: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo - ) -> void - | ( - ?Orb::Models::subscription_update_fixed_fee_quantity_response - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + active_plan_phase_order: Integer?, + adjustment_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval], + auto_collection: bool?, + billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + customer: Orb::Models::Customer, + default_invoice_memo: String?, + discount_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::discount_interval], + end_date: Time?, + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::FixedFeeQuantitySchedule], + invoicing_threshold: String?, + maximum_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval], + redeemed_coupon: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::RedeemedCoupon?, + start_date: Time, + status: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::status, + trial_info: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::TrialInfo + ) -> void def to_hash: -> Orb::Models::subscription_update_fixed_fee_quantity_response @@ -135,18 +130,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - id: String, - adjustment: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::adjustment_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + adjustment: Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::adjustment, + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::adjustment_interval @@ -157,7 +147,9 @@ module Orb | Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment | Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type plan_phase_usage_discount_adjustment = { id: String, @@ -184,20 +176,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end @@ -228,20 +215,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end @@ -272,20 +254,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end @@ -319,21 +296,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end @@ -364,25 +336,20 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end - def self.variants: -> [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] + def self?.variants: -> [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 end @@ -396,12 +363,11 @@ module Orb attr_accessor year: Integer? - def initialize: - (day: Integer, month: Integer?, year: Integer?) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::billing_cycle_anchor_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + day: Integer, + ?month: Integer?, + ?year: Integer? + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::billing_cycle_anchor_configuration end @@ -411,7 +377,9 @@ module Orb | Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval | Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + type amount_discount_interval = { amount_discount: String, @@ -435,19 +403,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - discount_type: :amount - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::amount_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + ?discount_type: :amount + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::amount_discount_interval end @@ -475,19 +438,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - percentage_discount: Float, - start_date: Time, - discount_type: :percentage - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::percentage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + percentage_discount: Float, + start_date: Time, + ?discount_type: :percentage + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::percentage_discount_interval end @@ -515,24 +473,19 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - usage_discount: Float, - discount_type: :usage - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::usage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + usage_discount: Float, + ?discount_type: :usage + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::usage_discount_interval end - def self.variants: -> [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval] + def self?.variants: -> [Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::DiscountInterval::UsageDiscountInterval] end type fixed_fee_quantity_schedule = @@ -547,17 +500,12 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - end_date: Time?, - price_id: String, - quantity: Float, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::fixed_fee_quantity_schedule - | Orb::BaseModel data - ) -> void + def initialize: ( + end_date: Time?, + price_id: String, + quantity: Float, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::fixed_fee_quantity_schedule end @@ -582,18 +530,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - maximum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::maximum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + maximum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::maximum_interval end @@ -618,18 +561,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - minimum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::minimum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + minimum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::minimum_interval end @@ -669,23 +607,18 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - end_date: Time?, - filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition]?, - price: Orb::Models::price, - start_date: Time, - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::price_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + end_date: Time?, + filter: String?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::FixedFeeQuantityTransition]?, + price: Orb::Models::price, + start_date: Time, + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::price_interval @@ -699,12 +632,11 @@ module Orb attr_accessor quantity: Integer - def initialize: - (effective_date: Time, price_id: String, quantity: Integer) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::fixed_fee_quantity_transition - | Orb::BaseModel data - ) -> void + def initialize: ( + effective_date: Time, + price_id: String, + quantity: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::PriceInterval::fixed_fee_quantity_transition end @@ -720,24 +652,25 @@ module Orb attr_accessor start_date: Time - def initialize: - (coupon_id: String, end_date: Time?, start_date: Time) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::redeemed_coupon - | Orb::BaseModel data - ) -> void + def initialize: ( + coupon_id: String, + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::redeemed_coupon end type status = :active | :ended | :upcoming - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ENDED: :ended UPCOMING: :upcoming - def self.values: -> ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::status] + def self?.values: -> ::Array[Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::status] end type trial_info = { end_date: Time? } @@ -745,12 +678,7 @@ module Orb class TrialInfo < Orb::BaseModel attr_accessor end_date: Time? - def initialize: - (end_date: Time?) -> void - | ( - ?Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::trial_info - | Orb::BaseModel data - ) -> void + def initialize: (end_date: Time?) -> void def to_hash: -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse::trial_info end diff --git a/sig/orb/models/subscription_update_params.rbs b/sig/orb/models/subscription_update_params.rbs index add6de05..6d133517 100644 --- a/sig/orb/models/subscription_update_params.rbs +++ b/sig/orb/models/subscription_update_params.rbs @@ -24,18 +24,14 @@ module Orb attr_accessor net_terms: Integer? - def initialize: - ( - auto_collection: bool?, - default_invoice_memo: String?, - invoicing_threshold: String?, - metadata: ::Hash[Symbol, String?]?, - net_terms: Integer?, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::subscription_update_params | Orb::BaseModel data - ) -> void + def initialize: ( + ?auto_collection: bool?, + ?default_invoice_memo: String?, + ?invoicing_threshold: String?, + ?metadata: ::Hash[Symbol, String?]?, + ?net_terms: Integer?, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::subscription_update_params end diff --git a/sig/orb/models/subscription_update_trial_params.rbs b/sig/orb/models/subscription_update_trial_params.rbs index 80af0dae..ba78ae69 100644 --- a/sig/orb/models/subscription_update_trial_params.rbs +++ b/sig/orb/models/subscription_update_trial_params.rbs @@ -17,32 +17,22 @@ module Orb def shift=: (bool) -> bool - def initialize: - ( - trial_end_date: Orb::Models::SubscriptionUpdateTrialParams::trial_end_date, - shift: bool, - request_options: Orb::request_opts - ) -> void - | ( - ?Orb::Models::subscription_update_trial_params | Orb::BaseModel data - ) -> void + def initialize: ( + trial_end_date: Orb::Models::SubscriptionUpdateTrialParams::trial_end_date, + ?shift: bool, + ?request_options: Orb::request_opts + ) -> void def to_hash: -> Orb::Models::subscription_update_trial_params - type trial_end_date = - Time - | Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::union_member1 - - class TrialEndDate < Orb::Union - type union_member1 = :immediate + type trial_end_date = Time | :immediate - class UnionMember1 < Orb::Enum - IMMEDIATE: :immediate + module TrialEndDate + extend Orb::Union - def self.values: -> ::Array[Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::union_member1] - end + IMMEDIATE: :immediate - def self.variants: -> [Time, Orb::Models::SubscriptionUpdateTrialParams::TrialEndDate::union_member1] + def self?.variants: -> [Time, :immediate] end end end diff --git a/sig/orb/models/subscription_update_trial_response.rbs b/sig/orb/models/subscription_update_trial_response.rbs index 340dbaf3..9f6cb1d3 100644 --- a/sig/orb/models/subscription_update_trial_response.rbs +++ b/sig/orb/models/subscription_update_trial_response.rbs @@ -80,37 +80,33 @@ module Orb attr_accessor trial_info: Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo - def initialize: - ( - id: String, - active_plan_phase_order: Integer?, - adjustment_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval], - auto_collection: bool?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration, - billing_cycle_day: Integer, - created_at: Time, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - customer: Orb::Models::Customer, - default_invoice_memo: String?, - discount_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::discount_interval], - end_date: Time?, - fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule], - invoicing_threshold: String?, - maximum_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval], - metadata: ::Hash[Symbol, String], - minimum_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval], - net_terms: Integer, - plan: Orb::Models::Plan, - price_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval], - redeemed_coupon: Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon?, - start_date: Time, - status: Orb::Models::SubscriptionUpdateTrialResponse::status, - trial_info: Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo - ) -> void - | ( - ?Orb::Models::subscription_update_trial_response | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + active_plan_phase_order: Integer?, + adjustment_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval], + auto_collection: bool?, + billing_cycle_anchor_configuration: Orb::Models::SubscriptionUpdateTrialResponse::BillingCycleAnchorConfiguration, + billing_cycle_day: Integer, + created_at: Time, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + customer: Orb::Models::Customer, + default_invoice_memo: String?, + discount_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::discount_interval], + end_date: Time?, + fixed_fee_quantity_schedule: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::FixedFeeQuantitySchedule], + invoicing_threshold: String?, + maximum_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::MaximumInterval], + metadata: ::Hash[Symbol, String], + minimum_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::MinimumInterval], + net_terms: Integer, + plan: Orb::Models::Plan, + price_intervals: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval], + redeemed_coupon: Orb::Models::SubscriptionUpdateTrialResponse::RedeemedCoupon?, + start_date: Time, + status: Orb::Models::SubscriptionUpdateTrialResponse::status, + trial_info: Orb::Models::SubscriptionUpdateTrialResponse::TrialInfo + ) -> void def to_hash: -> Orb::Models::subscription_update_trial_response @@ -134,18 +130,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - id: String, - adjustment: Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::adjustment, - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::adjustment_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + adjustment: Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::adjustment, + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::adjustment_interval @@ -156,7 +147,9 @@ module Orb | Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMinimumAdjustment | Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::PlanPhaseMaximumAdjustment - class Adjustment < Orb::Union + module Adjustment + extend Orb::Union + type plan_phase_usage_discount_adjustment = { id: String, @@ -183,20 +176,15 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - usage_discount: Float, - adjustment_type: :usage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + usage_discount: Float, + ?adjustment_type: :usage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_usage_discount_adjustment end @@ -227,20 +215,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - amount_discount: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :amount_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + amount_discount: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :amount_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_amount_discount_adjustment end @@ -271,20 +254,15 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - percentage_discount: Float, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :percentage_discount - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + percentage_discount: Float, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :percentage_discount + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_percentage_discount_adjustment end @@ -318,21 +296,16 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - item_id: String, - minimum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :minimum - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + item_id: String, + minimum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :minimum + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_minimum_adjustment end @@ -363,25 +336,20 @@ module Orb attr_accessor reason: String? - def initialize: - ( - id: String, - applies_to_price_ids: ::Array[String], - is_invoice_level: bool, - maximum_amount: String, - plan_phase_order: Integer?, - reason: String?, - adjustment_type: :maximum - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + applies_to_price_ids: ::Array[String], + is_invoice_level: bool, + maximum_amount: String, + plan_phase_order: Integer?, + reason: String?, + ?adjustment_type: :maximum + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::AdjustmentInterval::Adjustment::plan_phase_maximum_adjustment end - def self.variants: -> [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] + def self?.variants: -> [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 end @@ -395,12 +363,11 @@ module Orb attr_accessor year: Integer? - def initialize: - (day: Integer, month: Integer?, year: Integer?) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::billing_cycle_anchor_configuration - | Orb::BaseModel data - ) -> void + def initialize: ( + day: Integer, + ?month: Integer?, + ?year: Integer? + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::billing_cycle_anchor_configuration end @@ -410,7 +377,9 @@ module Orb | Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval | Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval - class DiscountInterval < Orb::Union + module DiscountInterval + extend Orb::Union + type amount_discount_interval = { amount_discount: String, @@ -434,19 +403,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - amount_discount: String, - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - discount_type: :amount - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::amount_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + amount_discount: String, + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + ?discount_type: :amount + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::amount_discount_interval end @@ -474,19 +438,14 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - percentage_discount: Float, - start_date: Time, - discount_type: :percentage - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::percentage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + percentage_discount: Float, + start_date: Time, + ?discount_type: :percentage + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::percentage_discount_interval end @@ -514,24 +473,19 @@ module Orb attr_accessor usage_discount: Float - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - start_date: Time, - usage_discount: Float, - discount_type: :usage - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::usage_discount_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + start_date: Time, + usage_discount: Float, + ?discount_type: :usage + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::usage_discount_interval end - def self.variants: -> [Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval] + def self?.variants: -> [Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::AmountDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::PercentageDiscountInterval, Orb::Models::SubscriptionUpdateTrialResponse::DiscountInterval::UsageDiscountInterval] end type fixed_fee_quantity_schedule = @@ -546,17 +500,12 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - end_date: Time?, - price_id: String, - quantity: Float, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::fixed_fee_quantity_schedule - | Orb::BaseModel data - ) -> void + def initialize: ( + end_date: Time?, + price_id: String, + quantity: Float, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::fixed_fee_quantity_schedule end @@ -581,18 +530,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - maximum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::maximum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + maximum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::maximum_interval end @@ -617,18 +561,13 @@ module Orb attr_accessor start_date: Time - def initialize: - ( - applies_to_price_ids: ::Array[String], - applies_to_price_interval_ids: ::Array[String], - end_date: Time?, - minimum_amount: String, - start_date: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::minimum_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + applies_to_price_interval_ids: ::Array[String], + end_date: Time?, + minimum_amount: String, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::minimum_interval end @@ -668,23 +607,18 @@ module Orb attr_accessor usage_customer_ids: ::Array[String]? - def initialize: - ( - id: String, - billing_cycle_day: Integer, - current_billing_period_end_date: Time?, - current_billing_period_start_date: Time?, - end_date: Time?, - filter: String?, - fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition]?, - price: Orb::Models::price, - start_date: Time, - usage_customer_ids: ::Array[String]? - ) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::price_interval - | Orb::BaseModel data - ) -> void + def initialize: ( + id: String, + billing_cycle_day: Integer, + current_billing_period_end_date: Time?, + current_billing_period_start_date: Time?, + end_date: Time?, + filter: String?, + fixed_fee_quantity_transitions: ::Array[Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::FixedFeeQuantityTransition]?, + price: Orb::Models::price, + start_date: Time, + usage_customer_ids: ::Array[String]? + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::price_interval @@ -698,12 +632,11 @@ module Orb attr_accessor quantity: Integer - def initialize: - (effective_date: Time, price_id: String, quantity: Integer) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::fixed_fee_quantity_transition - | Orb::BaseModel data - ) -> void + def initialize: ( + effective_date: Time, + price_id: String, + quantity: Integer + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::PriceInterval::fixed_fee_quantity_transition end @@ -719,24 +652,25 @@ module Orb attr_accessor start_date: Time - def initialize: - (coupon_id: String, end_date: Time?, start_date: Time) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::redeemed_coupon - | Orb::BaseModel data - ) -> void + def initialize: ( + coupon_id: String, + end_date: Time?, + start_date: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::redeemed_coupon end type status = :active | :ended | :upcoming - class Status < Orb::Enum + module Status + extend Orb::Enum + ACTIVE: :active ENDED: :ended UPCOMING: :upcoming - def self.values: -> ::Array[Orb::Models::SubscriptionUpdateTrialResponse::status] + def self?.values: -> ::Array[Orb::Models::SubscriptionUpdateTrialResponse::status] end type trial_info = { end_date: Time? } @@ -744,12 +678,7 @@ module Orb class TrialInfo < Orb::BaseModel attr_accessor end_date: Time? - def initialize: - (end_date: Time?) -> void - | ( - ?Orb::Models::SubscriptionUpdateTrialResponse::trial_info - | Orb::BaseModel data - ) -> void + def initialize: (end_date: Time?) -> void def to_hash: -> Orb::Models::SubscriptionUpdateTrialResponse::trial_info end diff --git a/sig/orb/models/subscription_usage.rbs b/sig/orb/models/subscription_usage.rbs index 6234eea0..9cbc3186 100644 --- a/sig/orb/models/subscription_usage.rbs +++ b/sig/orb/models/subscription_usage.rbs @@ -4,7 +4,9 @@ module Orb Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage | Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage - class SubscriptionUsage < Orb::Union + module SubscriptionUsage + extend Orb::Union + type ungrouped_subscription_usage = { data: ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data] @@ -13,14 +15,9 @@ module Orb class UngroupedSubscriptionUsage < Orb::BaseModel attr_accessor data: ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data] - def initialize: - ( - data: ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data] - ) -> void - | ( - ?Orb::Models::SubscriptionUsage::ungrouped_subscription_usage - | Orb::BaseModel data - ) -> void + def initialize: ( + data: ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data] + ) -> void def to_hash: -> Orb::Models::SubscriptionUsage::ungrouped_subscription_usage @@ -38,16 +35,11 @@ module Orb attr_accessor view_mode: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::view_mode - def initialize: - ( - billable_metric: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, - usage: ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage], - view_mode: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::view_mode - ) -> void - | ( - ?Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::data - | Orb::BaseModel data - ) -> void + def initialize: ( + billable_metric: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::BillableMetric, + usage: ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::Usage], + view_mode: Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::view_mode + ) -> void def to_hash: -> Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::data @@ -58,12 +50,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::billable_metric end @@ -78,27 +65,24 @@ module Orb attr_accessor timeframe_start: Time - def initialize: - ( - quantity: Float, - timeframe_end: Time, - timeframe_start: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::usage - | Orb::BaseModel data - ) -> void + def initialize: ( + quantity: Float, + timeframe_end: Time, + timeframe_start: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::usage end type view_mode = :periodic | :cumulative - class ViewMode < Orb::Enum + module ViewMode + extend Orb::Enum + PERIODIC: :periodic CUMULATIVE: :cumulative - def self.values: -> ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::view_mode] + def self?.values: -> ::Array[Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage::Data::view_mode] end end end @@ -114,15 +98,10 @@ module Orb attr_accessor pagination_metadata: Orb::Models::PaginationMetadata? - def initialize: - ( - data: ::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data], - pagination_metadata: Orb::Models::PaginationMetadata? - ) -> void - | ( - ?Orb::Models::SubscriptionUsage::grouped_subscription_usage - | Orb::BaseModel data - ) -> void + def initialize: ( + data: ::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data], + ?pagination_metadata: Orb::Models::PaginationMetadata? + ) -> void def to_hash: -> Orb::Models::SubscriptionUsage::grouped_subscription_usage @@ -143,17 +122,12 @@ module Orb attr_accessor view_mode: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::view_mode - def initialize: - ( - billable_metric: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric, - metric_group: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup, - usage: ::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage], - view_mode: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::view_mode - ) -> void - | ( - ?Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::data - | Orb::BaseModel data - ) -> void + def initialize: ( + billable_metric: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::BillableMetric, + metric_group: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::MetricGroup, + usage: ::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::Usage], + view_mode: Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::view_mode + ) -> void def to_hash: -> Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::data @@ -164,12 +138,7 @@ module Orb attr_accessor name: String - def initialize: - (id: String, name: String) -> void - | ( - ?Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::billable_metric - | Orb::BaseModel data - ) -> void + def initialize: (id: String, name: String) -> void def to_hash: -> Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::billable_metric end @@ -181,12 +150,10 @@ module Orb attr_accessor property_value: String - def initialize: - (property_key: String, property_value: String) -> void - | ( - ?Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::metric_group - | Orb::BaseModel data - ) -> void + def initialize: ( + property_key: String, + property_value: String + ) -> void def to_hash: -> Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::metric_group end @@ -201,32 +168,29 @@ module Orb attr_accessor timeframe_start: Time - def initialize: - ( - quantity: Float, - timeframe_end: Time, - timeframe_start: Time - ) -> void - | ( - ?Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::usage - | Orb::BaseModel data - ) -> void + def initialize: ( + quantity: Float, + timeframe_end: Time, + timeframe_start: Time + ) -> void def to_hash: -> Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::usage end type view_mode = :periodic | :cumulative - class ViewMode < Orb::Enum + module ViewMode + extend Orb::Enum + PERIODIC: :periodic CUMULATIVE: :cumulative - def self.values: -> ::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::view_mode] + def self?.values: -> ::Array[Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage::Data::view_mode] end end end - def self.variants: -> [Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage] + def self?.variants: -> [Orb::Models::SubscriptionUsage::UngroupedSubscriptionUsage, Orb::Models::SubscriptionUsage::GroupedSubscriptionUsage] end end end diff --git a/sig/orb/models/subscriptions.rbs b/sig/orb/models/subscriptions.rbs index 63b552cd..866151fd 100644 --- a/sig/orb/models/subscriptions.rbs +++ b/sig/orb/models/subscriptions.rbs @@ -11,12 +11,10 @@ module Orb attr_accessor pagination_metadata: Orb::Models::PaginationMetadata - def initialize: - ( - data: ::Array[Orb::Models::Subscription], - pagination_metadata: Orb::Models::PaginationMetadata - ) -> void - | (?Orb::Models::subscriptions_api | Orb::BaseModel data) -> void + def initialize: ( + data: ::Array[Orb::Models::Subscription], + pagination_metadata: Orb::Models::PaginationMetadata + ) -> void def to_hash: -> Orb::Models::subscriptions_api end diff --git a/sig/orb/models/top_level_ping_params.rbs b/sig/orb/models/top_level_ping_params.rbs index aa55a1a2..6aa69179 100644 --- a/sig/orb/models/top_level_ping_params.rbs +++ b/sig/orb/models/top_level_ping_params.rbs @@ -6,9 +6,7 @@ module Orb extend Orb::RequestParameters::Converter include Orb::RequestParameters - def initialize: - (request_options: Orb::request_opts) -> void - | (?Orb::Models::top_level_ping_params | Orb::BaseModel data) -> void + def initialize: (?request_options: Orb::request_opts) -> void def to_hash: -> Orb::Models::top_level_ping_params end diff --git a/sig/orb/models/top_level_ping_response.rbs b/sig/orb/models/top_level_ping_response.rbs index 12ff3d6f..104dfa36 100644 --- a/sig/orb/models/top_level_ping_response.rbs +++ b/sig/orb/models/top_level_ping_response.rbs @@ -5,9 +5,7 @@ module Orb class TopLevelPingResponse < Orb::BaseModel attr_accessor response: String - def initialize: - (response: String) -> void - | (?Orb::Models::top_level_ping_response | Orb::BaseModel data) -> void + def initialize: (response: String) -> void def to_hash: -> Orb::Models::top_level_ping_response end diff --git a/sig/orb/models/trial_discount.rbs b/sig/orb/models/trial_discount.rbs index fb697cfa..aa3a9690 100644 --- a/sig/orb/models/trial_discount.rbs +++ b/sig/orb/models/trial_discount.rbs @@ -20,24 +20,24 @@ module Orb attr_accessor trial_percentage_discount: Float? - def initialize: - ( - applies_to_price_ids: ::Array[String], - discount_type: Orb::Models::TrialDiscount::discount_type, - reason: String?, - trial_amount_discount: String?, - trial_percentage_discount: Float? - ) -> void - | (?Orb::Models::trial_discount | Orb::BaseModel data) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + discount_type: Orb::Models::TrialDiscount::discount_type, + ?reason: String?, + ?trial_amount_discount: String?, + ?trial_percentage_discount: Float? + ) -> void def to_hash: -> Orb::Models::trial_discount type discount_type = :trial - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + TRIAL: :trial - def self.values: -> ::Array[Orb::Models::TrialDiscount::discount_type] + def self?.values: -> ::Array[Orb::Models::TrialDiscount::discount_type] end end end diff --git a/sig/orb/models/usage_discount.rbs b/sig/orb/models/usage_discount.rbs index 5976a8f9..1b273d23 100644 --- a/sig/orb/models/usage_discount.rbs +++ b/sig/orb/models/usage_discount.rbs @@ -17,23 +17,23 @@ module Orb attr_accessor reason: String? - def initialize: - ( - applies_to_price_ids: ::Array[String], - discount_type: Orb::Models::UsageDiscount::discount_type, - usage_discount: Float, - reason: String? - ) -> void - | (?Orb::Models::usage_discount | Orb::BaseModel data) -> void + def initialize: ( + applies_to_price_ids: ::Array[String], + discount_type: Orb::Models::UsageDiscount::discount_type, + usage_discount: Float, + ?reason: String? + ) -> void def to_hash: -> Orb::Models::usage_discount type discount_type = :usage - class DiscountType < Orb::Enum + module DiscountType + extend Orb::Enum + USAGE: :usage - def self.values: -> ::Array[Orb::Models::UsageDiscount::discount_type] + def self?.values: -> ::Array[Orb::Models::UsageDiscount::discount_type] end end end diff --git a/sig/orb/page.rbs b/sig/orb/page.rbs index 598067ad..e91871ce 100644 --- a/sig/orb/page.rbs +++ b/sig/orb/page.rbs @@ -6,15 +6,15 @@ module Orb attr_accessor pagination_metadata: PaginationMetadata + def inspect: -> String + type pagination_metadata = { has_more: bool, next_cursor: String? } class PaginationMetadata < Orb::BaseModel attr_accessor has_more: bool attr_accessor next_cursor: String? - def initialize: - (has_more: bool, next_cursor: String?) -> void - | (?pagination_metadata | Orb::BaseModel data) -> void + def initialize: (has_more: bool, next_cursor: String?) -> void def to_hash: -> pagination_metadata end diff --git a/sig/orb/pooled_net_requester.rbs b/sig/orb/pooled_net_requester.rbs index 94698b8e..dc916f71 100644 --- a/sig/orb/pooled_net_requester.rbs +++ b/sig/orb/pooled_net_requester.rbs @@ -9,6 +9,8 @@ module Orb deadline: Float } + KEEP_ALIVE_TIMEOUT: 30 + def self.connect: (URI::Generic url) -> top def self.calibrate_socket_timeout: (top conn, Float deadline) -> void @@ -30,6 +32,6 @@ module Orb Orb::PooledNetRequester::request request ) -> [Integer, top, Enumerable[String]] - def initialize: (size: Integer) -> void + def initialize: (?size: Integer) -> void end end diff --git a/sig/orb/request_options.rbs b/sig/orb/request_options.rbs index 93690538..588b7753 100644 --- a/sig/orb/request_options.rbs +++ b/sig/orb/request_options.rbs @@ -17,7 +17,7 @@ module Orb idempotency_key: String?, extra_query: ::Hash[String, (::Array[String] | String)?]?, extra_headers: ::Hash[String, String?]?, - extra_body: ::Hash[Symbol, top]?, + extra_body: top?, max_retries: Integer?, timeout: Float? } @@ -31,7 +31,7 @@ module Orb attr_accessor extra_headers: ::Hash[String, String?]? - attr_accessor extra_body: ::Hash[Symbol, top]? + attr_accessor extra_body: top? attr_accessor max_retries: Integer? diff --git a/sig/orb/resources/alerts.rbs b/sig/orb/resources/alerts.rbs index b2751f80..f86c0812 100644 --- a/sig/orb/resources/alerts.rbs +++ b/sig/orb/resources/alerts.rbs @@ -1,106 +1,65 @@ module Orb module Resources class Alerts - def retrieve: - ( - String alert_id, - ?Orb::Models::AlertRetrieveParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Alert - | ( - String alert_id, - request_options: Orb::request_opts - ) -> Orb::Models::Alert + def retrieve: ( + String alert_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Alert - def update: - ( - String alert_configuration_id, - Orb::Models::AlertUpdateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Alert - | ( - String alert_configuration_id, - thresholds: ::Array[Orb::Models::AlertUpdateParams::Threshold], - request_options: Orb::request_opts - ) -> Orb::Models::Alert + def update: ( + String alert_configuration_id, + thresholds: ::Array[Orb::Models::AlertUpdateParams::Threshold], + ?request_options: Orb::request_opts + ) -> Orb::Models::Alert - def list: - ( - ?Orb::Models::AlertListParams | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Alert] - | ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - cursor: String?, - customer_id: String?, - external_customer_id: String?, - limit: Integer, - subscription_id: String?, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Alert] + def list: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?cursor: String?, + ?customer_id: String?, + ?external_customer_id: String?, + ?limit: Integer, + ?subscription_id: String?, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Alert] - def create_for_customer: - ( - String customer_id, - Orb::Models::AlertCreateForCustomerParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Alert - | ( - String customer_id, - currency: String, - type: Orb::Models::AlertCreateForCustomerParams::type_, - thresholds: ::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]?, - request_options: Orb::request_opts - ) -> Orb::Models::Alert + def create_for_customer: ( + String customer_id, + currency: String, + type: Orb::Models::AlertCreateForCustomerParams::type_, + ?thresholds: ::Array[Orb::Models::AlertCreateForCustomerParams::Threshold]?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Alert - def create_for_external_customer: - ( - String external_customer_id, - Orb::Models::AlertCreateForExternalCustomerParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Alert - | ( - String external_customer_id, - currency: String, - type: Orb::Models::AlertCreateForExternalCustomerParams::type_, - thresholds: ::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]?, - request_options: Orb::request_opts - ) -> Orb::Models::Alert + def create_for_external_customer: ( + String external_customer_id, + currency: String, + type: Orb::Models::AlertCreateForExternalCustomerParams::type_, + ?thresholds: ::Array[Orb::Models::AlertCreateForExternalCustomerParams::Threshold]?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Alert - def create_for_subscription: - ( - String subscription_id, - Orb::Models::AlertCreateForSubscriptionParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Alert - | ( - String subscription_id, - thresholds: ::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], - type: Orb::Models::AlertCreateForSubscriptionParams::type_, - metric_id: String?, - request_options: Orb::request_opts - ) -> Orb::Models::Alert + def create_for_subscription: ( + String subscription_id, + thresholds: ::Array[Orb::Models::AlertCreateForSubscriptionParams::Threshold], + type: Orb::Models::AlertCreateForSubscriptionParams::type_, + ?metric_id: String?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Alert - def disable: - ( - String alert_configuration_id, - ?Orb::Models::AlertDisableParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Alert - | ( - String alert_configuration_id, - subscription_id: String?, - request_options: Orb::request_opts - ) -> Orb::Models::Alert + def disable: ( + String alert_configuration_id, + ?subscription_id: String?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Alert - def enable: - ( - String alert_configuration_id, - ?Orb::Models::AlertEnableParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Alert - | ( - String alert_configuration_id, - subscription_id: String?, - request_options: Orb::request_opts - ) -> Orb::Models::Alert + def enable: ( + String alert_configuration_id, + ?subscription_id: String?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Alert def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/coupons.rbs b/sig/orb/resources/coupons.rbs index d6448027..fcfd5de2 100644 --- a/sig/orb/resources/coupons.rbs +++ b/sig/orb/resources/coupons.rbs @@ -3,49 +3,31 @@ module Orb class Coupons attr_reader subscriptions: Orb::Resources::Coupons::Subscriptions - def create: - ( - Orb::Models::CouponCreateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Coupon - | ( - discount: Orb::Models::CouponCreateParams::discount, - redemption_code: String, - duration_in_months: Integer?, - max_redemptions: Integer?, - request_options: Orb::request_opts - ) -> Orb::Models::Coupon + def create: ( + discount: Orb::Models::CouponCreateParams::discount, + redemption_code: String, + ?duration_in_months: Integer?, + ?max_redemptions: Integer?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Coupon - def list: - ( - ?Orb::Models::CouponListParams | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Coupon] - | ( - cursor: String?, - limit: Integer, - redemption_code: String?, - show_archived: bool?, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Coupon] + def list: ( + ?cursor: String?, + ?limit: Integer, + ?redemption_code: String?, + ?show_archived: bool?, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Coupon] - def archive: - ( - String coupon_id, - ?Orb::Models::CouponArchiveParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Coupon - | ( - String coupon_id, - request_options: Orb::request_opts - ) -> Orb::Models::Coupon + def archive: ( + String coupon_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Coupon - def fetch: - ( - String coupon_id, - ?Orb::Models::CouponFetchParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Coupon - | ( - String coupon_id, - request_options: Orb::request_opts - ) -> Orb::Models::Coupon + def fetch: ( + String coupon_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Coupon def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/coupons/subscriptions.rbs b/sig/orb/resources/coupons/subscriptions.rbs index 8cbb341f..1716e084 100644 --- a/sig/orb/resources/coupons/subscriptions.rbs +++ b/sig/orb/resources/coupons/subscriptions.rbs @@ -2,18 +2,12 @@ module Orb module Resources class Coupons class Subscriptions - def list: - ( - String coupon_id, - ?Orb::Models::Coupons::SubscriptionListParams - | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Subscription] - | ( - String coupon_id, - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Subscription] + def list: ( + String coupon_id, + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Subscription] def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/credit_notes.rbs b/sig/orb/resources/credit_notes.rbs index 2efb36b7..c233e425 100644 --- a/sig/orb/resources/credit_notes.rbs +++ b/sig/orb/resources/credit_notes.rbs @@ -1,40 +1,27 @@ module Orb module Resources class CreditNotes - def create: - ( - Orb::Models::CreditNoteCreateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::CreditNote - | ( - line_items: ::Array[Orb::Models::CreditNoteCreateParams::LineItem], - memo: String?, - reason: Orb::Models::CreditNoteCreateParams::reason?, - request_options: Orb::request_opts - ) -> Orb::Models::CreditNote + def create: ( + line_items: ::Array[Orb::Models::CreditNoteCreateParams::LineItem], + ?memo: String?, + ?reason: Orb::Models::CreditNoteCreateParams::reason?, + ?request_options: Orb::request_opts + ) -> Orb::Models::CreditNote - def list: - ( - ?Orb::Models::CreditNoteListParams | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::CreditNote] - | ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::CreditNote] + def list: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::CreditNote] - def fetch: - ( - String credit_note_id, - ?Orb::Models::CreditNoteFetchParams | ::Hash[Symbol, top] params - ) -> Orb::Models::CreditNote - | ( - String credit_note_id, - request_options: Orb::request_opts - ) -> Orb::Models::CreditNote + def fetch: ( + String credit_note_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::CreditNote def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/customers.rbs b/sig/orb/resources/customers.rbs index 29b716c5..63759e17 100644 --- a/sig/orb/resources/customers.rbs +++ b/sig/orb/resources/customers.rbs @@ -7,147 +7,106 @@ module Orb attr_reader balance_transactions: Orb::Resources::Customers::BalanceTransactions - def create: - ( - Orb::Models::CustomerCreateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Customer - | ( - email: String, - name: String, - accounting_sync_configuration: Orb::Models::CustomerCreateParams::AccountingSyncConfiguration?, - additional_emails: ::Array[String]?, - auto_collection: bool?, - billing_address: Orb::Models::CustomerCreateParams::BillingAddress?, - currency: String?, - email_delivery: bool?, - external_customer_id: String?, - hierarchy: Orb::Models::CustomerCreateParams::Hierarchy?, - metadata: ::Hash[Symbol, String?]?, - payment_provider: Orb::Models::CustomerCreateParams::payment_provider?, - payment_provider_id: String?, - reporting_configuration: Orb::Models::CustomerCreateParams::ReportingConfiguration?, - shipping_address: Orb::Models::CustomerCreateParams::ShippingAddress?, - tax_configuration: Orb::Models::CustomerCreateParams::tax_configuration?, - tax_id: Orb::Models::CustomerCreateParams::TaxID?, - timezone: String?, - request_options: Orb::request_opts - ) -> Orb::Models::Customer + def create: ( + email: String, + name: String, + ?accounting_sync_configuration: Orb::Models::CustomerCreateParams::AccountingSyncConfiguration?, + ?additional_emails: ::Array[String]?, + ?auto_collection: bool?, + ?billing_address: Orb::Models::CustomerCreateParams::BillingAddress?, + ?currency: String?, + ?email_delivery: bool?, + ?external_customer_id: String?, + ?hierarchy: Orb::Models::CustomerCreateParams::Hierarchy?, + ?metadata: ::Hash[Symbol, String?]?, + ?payment_provider: Orb::Models::CustomerCreateParams::payment_provider?, + ?payment_provider_id: String?, + ?reporting_configuration: Orb::Models::CustomerCreateParams::ReportingConfiguration?, + ?shipping_address: Orb::Models::CustomerCreateParams::ShippingAddress?, + ?tax_configuration: Orb::Models::CustomerCreateParams::tax_configuration?, + ?tax_id: Orb::Models::CustomerCreateParams::TaxID?, + ?timezone: String?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Customer - def update: - ( - String customer_id, - ?Orb::Models::CustomerUpdateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Customer - | ( - String customer_id, - accounting_sync_configuration: Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration?, - additional_emails: ::Array[String]?, - auto_collection: bool?, - billing_address: Orb::Models::CustomerUpdateParams::BillingAddress?, - currency: String?, - email: String?, - email_delivery: bool?, - external_customer_id: String?, - hierarchy: Orb::Models::CustomerUpdateParams::Hierarchy?, - metadata: ::Hash[Symbol, String?]?, - name: String?, - payment_provider: Orb::Models::CustomerUpdateParams::payment_provider?, - payment_provider_id: String?, - reporting_configuration: Orb::Models::CustomerUpdateParams::ReportingConfiguration?, - shipping_address: Orb::Models::CustomerUpdateParams::ShippingAddress?, - tax_configuration: Orb::Models::CustomerUpdateParams::tax_configuration?, - tax_id: Orb::Models::CustomerUpdateParams::TaxID?, - request_options: Orb::request_opts - ) -> Orb::Models::Customer + def update: ( + String customer_id, + ?accounting_sync_configuration: Orb::Models::CustomerUpdateParams::AccountingSyncConfiguration?, + ?additional_emails: ::Array[String]?, + ?auto_collection: bool?, + ?billing_address: Orb::Models::CustomerUpdateParams::BillingAddress?, + ?currency: String?, + ?email: String?, + ?email_delivery: bool?, + ?external_customer_id: String?, + ?hierarchy: Orb::Models::CustomerUpdateParams::Hierarchy?, + ?metadata: ::Hash[Symbol, String?]?, + ?name: String?, + ?payment_provider: Orb::Models::CustomerUpdateParams::payment_provider?, + ?payment_provider_id: String?, + ?reporting_configuration: Orb::Models::CustomerUpdateParams::ReportingConfiguration?, + ?shipping_address: Orb::Models::CustomerUpdateParams::ShippingAddress?, + ?tax_configuration: Orb::Models::CustomerUpdateParams::tax_configuration?, + ?tax_id: Orb::Models::CustomerUpdateParams::TaxID?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Customer - def list: - ( - ?Orb::Models::CustomerListParams | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Customer] - | ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Customer] + def list: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Customer] - def delete: - ( - String customer_id, - ?Orb::Models::CustomerDeleteParams | ::Hash[Symbol, top] params - ) -> nil - | (String customer_id, request_options: Orb::request_opts) -> nil + def delete: ( + String customer_id, + ?request_options: Orb::request_opts + ) -> nil - def fetch: - ( - String customer_id, - ?Orb::Models::CustomerFetchParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Customer - | ( - String customer_id, - request_options: Orb::request_opts - ) -> Orb::Models::Customer + def fetch: ( + String customer_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Customer - def fetch_by_external_id: - ( - String external_customer_id, - ?Orb::Models::CustomerFetchByExternalIDParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Customer - | ( - String external_customer_id, - request_options: Orb::request_opts - ) -> Orb::Models::Customer + def fetch_by_external_id: ( + String external_customer_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Customer - def sync_payment_methods_from_gateway: - ( - String external_customer_id, - ?Orb::Models::CustomerSyncPaymentMethodsFromGatewayParams - | ::Hash[Symbol, top] params - ) -> nil - | ( - String external_customer_id, - request_options: Orb::request_opts - ) -> nil + def sync_payment_methods_from_gateway: ( + String external_customer_id, + ?request_options: Orb::request_opts + ) -> nil - def sync_payment_methods_from_gateway_by_external_customer_id: - ( - String customer_id, - ?Orb::Models::CustomerSyncPaymentMethodsFromGatewayByExternalCustomerIDParams - | ::Hash[Symbol, top] params - ) -> nil - | (String customer_id, request_options: Orb::request_opts) -> nil + def sync_payment_methods_from_gateway_by_external_customer_id: ( + String customer_id, + ?request_options: Orb::request_opts + ) -> nil - def update_by_external_id: - ( - String id, - ?Orb::Models::CustomerUpdateByExternalIDParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Customer - | ( - String id, - accounting_sync_configuration: Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration?, - additional_emails: ::Array[String]?, - auto_collection: bool?, - billing_address: Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress?, - currency: String?, - email: String?, - email_delivery: bool?, - external_customer_id: String?, - hierarchy: Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy?, - metadata: ::Hash[Symbol, String?]?, - name: String?, - payment_provider: Orb::Models::CustomerUpdateByExternalIDParams::payment_provider?, - payment_provider_id: String?, - reporting_configuration: Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration?, - shipping_address: Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress?, - tax_configuration: Orb::Models::CustomerUpdateByExternalIDParams::tax_configuration?, - tax_id: Orb::Models::CustomerUpdateByExternalIDParams::TaxID?, - request_options: Orb::request_opts - ) -> Orb::Models::Customer + def update_by_external_id: ( + String id, + ?accounting_sync_configuration: Orb::Models::CustomerUpdateByExternalIDParams::AccountingSyncConfiguration?, + ?additional_emails: ::Array[String]?, + ?auto_collection: bool?, + ?billing_address: Orb::Models::CustomerUpdateByExternalIDParams::BillingAddress?, + ?currency: String?, + ?email: String?, + ?email_delivery: bool?, + ?external_customer_id: String?, + ?hierarchy: Orb::Models::CustomerUpdateByExternalIDParams::Hierarchy?, + ?metadata: ::Hash[Symbol, String?]?, + ?name: String?, + ?payment_provider: Orb::Models::CustomerUpdateByExternalIDParams::payment_provider?, + ?payment_provider_id: String?, + ?reporting_configuration: Orb::Models::CustomerUpdateByExternalIDParams::ReportingConfiguration?, + ?shipping_address: Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress?, + ?tax_configuration: Orb::Models::CustomerUpdateByExternalIDParams::tax_configuration?, + ?tax_id: Orb::Models::CustomerUpdateByExternalIDParams::TaxID?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Customer def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/customers/balance_transactions.rbs b/sig/orb/resources/customers/balance_transactions.rbs index 85137425..70ea0827 100644 --- a/sig/orb/resources/customers/balance_transactions.rbs +++ b/sig/orb/resources/customers/balance_transactions.rbs @@ -2,36 +2,24 @@ module Orb module Resources class Customers class BalanceTransactions - def create: - ( - String customer_id, - Orb::Models::Customers::BalanceTransactionCreateParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Customers::BalanceTransactionCreateResponse - | ( - String customer_id, - amount: String, - type: Orb::Models::Customers::BalanceTransactionCreateParams::type_, - description: String?, - request_options: Orb::request_opts - ) -> Orb::Models::Customers::BalanceTransactionCreateResponse + def create: ( + String customer_id, + amount: String, + type: Orb::Models::Customers::BalanceTransactionCreateParams::type_, + ?description: String?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Customers::BalanceTransactionCreateResponse - def list: - ( - String customer_id, - ?Orb::Models::Customers::BalanceTransactionListParams - | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Customers::BalanceTransactionListResponse] - | ( - String customer_id, - cursor: String?, - limit: Integer, - operation_time_gt: Time?, - operation_time_gte: Time?, - operation_time_lt: Time?, - operation_time_lte: Time?, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Customers::BalanceTransactionListResponse] + def list: ( + String customer_id, + ?cursor: String?, + ?limit: Integer, + ?operation_time_gt: Time?, + ?operation_time_gte: Time?, + ?operation_time_lt: Time?, + ?operation_time_lte: Time?, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Customers::BalanceTransactionListResponse] def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/customers/costs.rbs b/sig/orb/resources/customers/costs.rbs index 4242762a..179952c4 100644 --- a/sig/orb/resources/customers/costs.rbs +++ b/sig/orb/resources/customers/costs.rbs @@ -2,34 +2,23 @@ module Orb module Resources class Customers class Costs - def list: - ( - String customer_id, - ?Orb::Models::Customers::CostListParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Customers::CostListResponse - | ( - String customer_id, - currency: String?, - timeframe_end: Time?, - timeframe_start: Time?, - view_mode: Orb::Models::Customers::CostListParams::view_mode?, - request_options: Orb::request_opts - ) -> Orb::Models::Customers::CostListResponse + def list: ( + String customer_id, + ?currency: String?, + ?timeframe_end: Time?, + ?timeframe_start: Time?, + ?view_mode: Orb::Models::Customers::CostListParams::view_mode?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Customers::CostListResponse - def list_by_external_id: - ( - String external_customer_id, - ?Orb::Models::Customers::CostListByExternalIDParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Customers::CostListByExternalIDResponse - | ( - String external_customer_id, - currency: String?, - timeframe_end: Time?, - timeframe_start: Time?, - view_mode: Orb::Models::Customers::CostListByExternalIDParams::view_mode?, - request_options: Orb::request_opts - ) -> Orb::Models::Customers::CostListByExternalIDResponse + def list_by_external_id: ( + String external_customer_id, + ?currency: String?, + ?timeframe_end: Time?, + ?timeframe_start: Time?, + ?view_mode: Orb::Models::Customers::CostListByExternalIDParams::view_mode?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Customers::CostListByExternalIDResponse def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/customers/credits.rbs b/sig/orb/resources/customers/credits.rbs index db420ffd..e0949c98 100644 --- a/sig/orb/resources/customers/credits.rbs +++ b/sig/orb/resources/customers/credits.rbs @@ -6,35 +6,23 @@ module Orb attr_reader top_ups: Orb::Resources::Customers::Credits::TopUps - def list: - ( - String customer_id, - ?Orb::Models::Customers::CreditListParams - | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Customers::CreditListResponse] - | ( - String customer_id, - currency: String?, - cursor: String?, - include_all_blocks: bool, - limit: Integer, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Customers::CreditListResponse] + def list: ( + String customer_id, + ?currency: String?, + ?cursor: String?, + ?include_all_blocks: bool, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Customers::CreditListResponse] - def list_by_external_id: - ( - String external_customer_id, - ?Orb::Models::Customers::CreditListByExternalIDParams - | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Customers::CreditListByExternalIDResponse] - | ( - String external_customer_id, - currency: String?, - cursor: String?, - include_all_blocks: bool, - limit: Integer, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Customers::CreditListByExternalIDResponse] + def list_by_external_id: ( + String external_customer_id, + ?currency: String?, + ?cursor: String?, + ?include_all_blocks: bool, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Customers::CreditListByExternalIDResponse] def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/customers/credits/ledger.rbs b/sig/orb/resources/customers/credits/ledger.rbs index 683d6179..9cc18093 100644 --- a/sig/orb/resources/customers/credits/ledger.rbs +++ b/sig/orb/resources/customers/credits/ledger.rbs @@ -3,93 +3,69 @@ module Orb class Customers class Credits class Ledger - def list: - ( - String customer_id, - ?Orb::Models::Customers::Credits::LedgerListParams - | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Customers::Credits::ledger_list_response] - | ( - String customer_id, - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - currency: String?, - cursor: String?, - entry_status: Orb::Models::Customers::Credits::LedgerListParams::entry_status?, - entry_type: Orb::Models::Customers::Credits::LedgerListParams::entry_type?, - limit: Integer, - minimum_amount: String?, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Customers::Credits::ledger_list_response] + def list: ( + String customer_id, + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?currency: String?, + ?cursor: String?, + ?entry_status: Orb::Models::Customers::Credits::LedgerListParams::entry_status?, + ?entry_type: Orb::Models::Customers::Credits::LedgerListParams::entry_type?, + ?limit: Integer, + ?minimum_amount: String?, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Customers::Credits::ledger_list_response] - def create_entry: - ( - String customer_id, - Orb::Models::Customers::Credits::LedgerCreateEntryParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Customers::Credits::ledger_create_entry_response - | ( - String customer_id, - amount: Float, - entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryParams::entry_type, - expiry_date: Time?, - target_expiry_date: Date, - block_id: String, - currency: String?, - description: String?, - effective_date: Time?, - invoice_settings: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings?, - metadata: ::Hash[Symbol, String?]?, - per_unit_cost_basis: String?, - void_reason: Orb::Models::Customers::Credits::LedgerCreateEntryParams::void_reason?, - request_options: Orb::request_opts - ) -> Orb::Models::Customers::Credits::ledger_create_entry_response + def create_entry: ( + String customer_id, + amount: Float, + entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryParams::entry_type, + expiry_date: Time?, + target_expiry_date: Date, + block_id: String, + ?currency: String?, + ?description: String?, + ?effective_date: Time?, + ?invoice_settings: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings?, + ?metadata: ::Hash[Symbol, String?]?, + ?per_unit_cost_basis: String?, + ?void_reason: Orb::Models::Customers::Credits::LedgerCreateEntryParams::void_reason?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Customers::Credits::ledger_create_entry_response - def create_entry_by_external_id: - ( - String external_customer_id, - Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Customers::Credits::ledger_create_entry_by_external_id_response - | ( - String external_customer_id, - amount: Float, - entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::entry_type, - expiry_date: Time?, - target_expiry_date: Date, - block_id: String, - currency: String?, - description: String?, - effective_date: Time?, - invoice_settings: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings?, - metadata: ::Hash[Symbol, String?]?, - per_unit_cost_basis: String?, - void_reason: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::void_reason?, - request_options: Orb::request_opts - ) -> Orb::Models::Customers::Credits::ledger_create_entry_by_external_id_response + def create_entry_by_external_id: ( + String external_customer_id, + amount: Float, + entry_type: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::entry_type, + expiry_date: Time?, + target_expiry_date: Date, + block_id: String, + ?currency: String?, + ?description: String?, + ?effective_date: Time?, + ?invoice_settings: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings?, + ?metadata: ::Hash[Symbol, String?]?, + ?per_unit_cost_basis: String?, + ?void_reason: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::void_reason?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Customers::Credits::ledger_create_entry_by_external_id_response - def list_by_external_id: - ( - String external_customer_id, - ?Orb::Models::Customers::Credits::LedgerListByExternalIDParams - | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Customers::Credits::ledger_list_by_external_id_response] - | ( - String external_customer_id, - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - currency: String?, - cursor: String?, - entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_status?, - entry_type: Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_type?, - limit: Integer, - minimum_amount: String?, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Customers::Credits::ledger_list_by_external_id_response] + def list_by_external_id: ( + String external_customer_id, + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?currency: String?, + ?cursor: String?, + ?entry_status: Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_status?, + ?entry_type: Orb::Models::Customers::Credits::LedgerListByExternalIDParams::entry_type?, + ?limit: Integer, + ?minimum_amount: String?, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Customers::Credits::ledger_list_by_external_id_response] def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/customers/credits/top_ups.rbs b/sig/orb/resources/customers/credits/top_ups.rbs index d517047b..ce4afb17 100644 --- a/sig/orb/resources/customers/credits/top_ups.rbs +++ b/sig/orb/resources/customers/credits/top_ups.rbs @@ -3,93 +3,57 @@ module Orb class Customers class Credits class TopUps - def create: - ( - String customer_id, - Orb::Models::Customers::Credits::TopUpCreateParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Customers::Credits::TopUpCreateResponse - | ( - String customer_id, - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - active_from: Time?, - expires_after: Integer?, - expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateParams::expires_after_unit?, - request_options: Orb::request_opts - ) -> Orb::Models::Customers::Credits::TopUpCreateResponse + def create: ( + String customer_id, + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpCreateParams::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + ?active_from: Time?, + ?expires_after: Integer?, + ?expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateParams::expires_after_unit?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Customers::Credits::TopUpCreateResponse - def list: - ( - String customer_id, - ?Orb::Models::Customers::Credits::TopUpListParams - | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Customers::Credits::TopUpListResponse] - | ( - String customer_id, - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Customers::Credits::TopUpListResponse] + def list: ( + String customer_id, + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Customers::Credits::TopUpListResponse] - def delete: - ( - String top_up_id, - Orb::Models::Customers::Credits::TopUpDeleteParams - | ::Hash[Symbol, top] params - ) -> nil - | ( - String top_up_id, - customer_id: String, - request_options: Orb::request_opts - ) -> nil + def delete: ( + String top_up_id, + customer_id: String, + ?request_options: Orb::request_opts + ) -> nil - def create_by_external_id: - ( - String external_customer_id, - Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse - | ( - String external_customer_id, - amount: String, - currency: String, - invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, - per_unit_cost_basis: String, - threshold: String, - active_from: Time?, - expires_after: Integer?, - expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::expires_after_unit?, - request_options: Orb::request_opts - ) -> Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse + def create_by_external_id: ( + String external_customer_id, + amount: String, + currency: String, + invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings, + per_unit_cost_basis: String, + threshold: String, + ?active_from: Time?, + ?expires_after: Integer?, + ?expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::expires_after_unit?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse - def delete_by_external_id: - ( - String top_up_id, - Orb::Models::Customers::Credits::TopUpDeleteByExternalIDParams - | ::Hash[Symbol, top] params - ) -> nil - | ( - String top_up_id, - external_customer_id: String, - request_options: Orb::request_opts - ) -> nil + def delete_by_external_id: ( + String top_up_id, + external_customer_id: String, + ?request_options: Orb::request_opts + ) -> nil - def list_by_external_id: - ( - String external_customer_id, - ?Orb::Models::Customers::Credits::TopUpListByExternalIDParams - | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Customers::Credits::TopUpListByExternalIDResponse] - | ( - String external_customer_id, - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Customers::Credits::TopUpListByExternalIDResponse] + def list_by_external_id: ( + String external_customer_id, + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Customers::Credits::TopUpListByExternalIDResponse] def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/dimensional_price_groups.rbs b/sig/orb/resources/dimensional_price_groups.rbs index f797dda3..c4903dd5 100644 --- a/sig/orb/resources/dimensional_price_groups.rbs +++ b/sig/orb/resources/dimensional_price_groups.rbs @@ -3,41 +3,25 @@ module Orb class DimensionalPriceGroups attr_reader external_dimensional_price_group_id: Orb::Resources::DimensionalPriceGroups::ExternalDimensionalPriceGroupID - def create: - ( - Orb::Models::DimensionalPriceGroupCreateParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::DimensionalPriceGroup - | ( - billable_metric_id: String, - dimensions: ::Array[String], - name: String, - external_dimensional_price_group_id: String?, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> Orb::Models::DimensionalPriceGroup + def create: ( + billable_metric_id: String, + dimensions: ::Array[String], + name: String, + ?external_dimensional_price_group_id: String?, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> Orb::Models::DimensionalPriceGroup - def retrieve: - ( - String dimensional_price_group_id, - ?Orb::Models::DimensionalPriceGroupRetrieveParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::DimensionalPriceGroup - | ( - String dimensional_price_group_id, - request_options: Orb::request_opts - ) -> Orb::Models::DimensionalPriceGroup + def retrieve: ( + String dimensional_price_group_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::DimensionalPriceGroup - def list: - ( - ?Orb::Models::DimensionalPriceGroupListParams - | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::DimensionalPriceGroup] - | ( - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::DimensionalPriceGroup] + def list: ( + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::DimensionalPriceGroup] def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbs b/sig/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbs index 3fc65c2d..35373d1c 100644 --- a/sig/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbs +++ b/sig/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbs @@ -2,16 +2,10 @@ module Orb module Resources class DimensionalPriceGroups class ExternalDimensionalPriceGroupID - def retrieve: - ( - String external_dimensional_price_group_id, - ?Orb::Models::DimensionalPriceGroups::ExternalDimensionalPriceGroupIDRetrieveParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::DimensionalPriceGroup - | ( - String external_dimensional_price_group_id, - request_options: Orb::request_opts - ) -> Orb::Models::DimensionalPriceGroup + def retrieve: ( + String external_dimensional_price_group_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::DimensionalPriceGroup def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/events.rbs b/sig/orb/resources/events.rbs index aa4949c2..5f1a070b 100644 --- a/sig/orb/resources/events.rbs +++ b/sig/orb/resources/events.rbs @@ -5,52 +5,34 @@ module Orb attr_reader volume: Orb::Resources::Events::Volume - def update: - ( - String event_id, - Orb::Models::EventUpdateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::EventUpdateResponse - | ( - String event_id, - event_name: String, - properties: top, - timestamp: Time, - customer_id: String?, - external_customer_id: String?, - request_options: Orb::request_opts - ) -> Orb::Models::EventUpdateResponse + def update: ( + String event_id, + event_name: String, + properties: top, + timestamp: Time, + ?customer_id: String?, + ?external_customer_id: String?, + ?request_options: Orb::request_opts + ) -> Orb::Models::EventUpdateResponse - def deprecate: - ( - String event_id, - ?Orb::Models::EventDeprecateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::EventDeprecateResponse - | ( - String event_id, - request_options: Orb::request_opts - ) -> Orb::Models::EventDeprecateResponse + def deprecate: ( + String event_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::EventDeprecateResponse - def ingest: - ( - Orb::Models::EventIngestParams | ::Hash[Symbol, top] params - ) -> Orb::Models::EventIngestResponse - | ( - events: ::Array[Orb::Models::EventIngestParams::Event], - backfill_id: String?, - debug: bool, - request_options: Orb::request_opts - ) -> Orb::Models::EventIngestResponse + def ingest: ( + events: ::Array[Orb::Models::EventIngestParams::Event], + ?backfill_id: String?, + ?debug: bool, + ?request_options: Orb::request_opts + ) -> Orb::Models::EventIngestResponse - def search: - ( - Orb::Models::EventSearchParams | ::Hash[Symbol, top] params - ) -> Orb::Models::EventSearchResponse - | ( - event_ids: ::Array[String], - timeframe_end: Time?, - timeframe_start: Time?, - request_options: Orb::request_opts - ) -> Orb::Models::EventSearchResponse + def search: ( + event_ids: ::Array[String], + ?timeframe_end: Time?, + ?timeframe_start: Time?, + ?request_options: Orb::request_opts + ) -> Orb::Models::EventSearchResponse def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/events/backfills.rbs b/sig/orb/resources/events/backfills.rbs index f6981101..202666d8 100644 --- a/sig/orb/resources/events/backfills.rbs +++ b/sig/orb/resources/events/backfills.rbs @@ -2,65 +2,37 @@ module Orb module Resources class Events class Backfills - def create: - ( - Orb::Models::Events::BackfillCreateParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Events::BackfillCreateResponse - | ( - timeframe_end: Time, - timeframe_start: Time, - close_time: Time?, - customer_id: String?, - deprecation_filter: String?, - external_customer_id: String?, - replace_existing_events: bool, - request_options: Orb::request_opts - ) -> Orb::Models::Events::BackfillCreateResponse + def create: ( + timeframe_end: Time, + timeframe_start: Time, + ?close_time: Time?, + ?customer_id: String?, + ?deprecation_filter: String?, + ?external_customer_id: String?, + ?replace_existing_events: bool, + ?request_options: Orb::request_opts + ) -> Orb::Models::Events::BackfillCreateResponse - def list: - ( - ?Orb::Models::Events::BackfillListParams - | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Events::BackfillListResponse] - | ( - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Events::BackfillListResponse] + def list: ( + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Events::BackfillListResponse] - def close: - ( - String backfill_id, - ?Orb::Models::Events::BackfillCloseParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Events::BackfillCloseResponse - | ( - String backfill_id, - request_options: Orb::request_opts - ) -> Orb::Models::Events::BackfillCloseResponse + def close: ( + String backfill_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Events::BackfillCloseResponse - def fetch: - ( - String backfill_id, - ?Orb::Models::Events::BackfillFetchParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Events::BackfillFetchResponse - | ( - String backfill_id, - request_options: Orb::request_opts - ) -> Orb::Models::Events::BackfillFetchResponse + def fetch: ( + String backfill_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Events::BackfillFetchResponse - def revert: - ( - String backfill_id, - ?Orb::Models::Events::BackfillRevertParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Events::BackfillRevertResponse - | ( - String backfill_id, - request_options: Orb::request_opts - ) -> Orb::Models::Events::BackfillRevertResponse + def revert: ( + String backfill_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Events::BackfillRevertResponse def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/events/volume.rbs b/sig/orb/resources/events/volume.rbs index 108ebb1a..0af9b6e2 100644 --- a/sig/orb/resources/events/volume.rbs +++ b/sig/orb/resources/events/volume.rbs @@ -2,17 +2,13 @@ module Orb module Resources class Events class Volume - def list: - ( - Orb::Models::Events::VolumeListParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Events::EventVolumes - | ( - timeframe_start: Time, - cursor: String?, - limit: Integer, - timeframe_end: Time, - request_options: Orb::request_opts - ) -> Orb::Models::Events::EventVolumes + def list: ( + timeframe_start: Time, + ?cursor: String?, + ?limit: Integer, + ?timeframe_end: Time, + ?request_options: Orb::request_opts + ) -> Orb::Models::Events::EventVolumes def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/invoice_line_items.rbs b/sig/orb/resources/invoice_line_items.rbs index eb30a766..bc8f0afb 100644 --- a/sig/orb/resources/invoice_line_items.rbs +++ b/sig/orb/resources/invoice_line_items.rbs @@ -1,19 +1,15 @@ module Orb module Resources class InvoiceLineItems - def create: - ( - Orb::Models::InvoiceLineItemCreateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::InvoiceLineItemCreateResponse - | ( - amount: String, - end_date: Date, - invoice_id: String, - name: String, - quantity: Float, - start_date: Date, - request_options: Orb::request_opts - ) -> Orb::Models::InvoiceLineItemCreateResponse + def create: ( + amount: String, + end_date: Date, + invoice_id: String, + name: String, + quantity: Float, + start_date: Date, + ?request_options: Orb::request_opts + ) -> Orb::Models::InvoiceLineItemCreateResponse def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/invoices.rbs b/sig/orb/resources/invoices.rbs index 8bb2b29a..cda5ce59 100644 --- a/sig/orb/resources/invoices.rbs +++ b/sig/orb/resources/invoices.rbs @@ -1,124 +1,82 @@ module Orb module Resources class Invoices - def create: - ( - Orb::Models::InvoiceCreateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Invoice - | ( - currency: String, - invoice_date: Time, - line_items: ::Array[Orb::Models::InvoiceCreateParams::LineItem], - net_terms: Integer, - customer_id: String?, - discount: Orb::Models::discount?, - external_customer_id: String?, - memo: String?, - metadata: ::Hash[Symbol, String?]?, - will_auto_issue: bool, - request_options: Orb::request_opts - ) -> Orb::Models::Invoice + def create: ( + currency: String, + invoice_date: Time, + line_items: ::Array[Orb::Models::InvoiceCreateParams::LineItem], + net_terms: Integer, + ?customer_id: String?, + ?discount: Orb::Models::discount?, + ?external_customer_id: String?, + ?memo: String?, + ?metadata: ::Hash[Symbol, String?]?, + ?will_auto_issue: bool, + ?request_options: Orb::request_opts + ) -> Orb::Models::Invoice - def update: - ( - String invoice_id, - ?Orb::Models::InvoiceUpdateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Invoice - | ( - String invoice_id, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> Orb::Models::Invoice + def update: ( + String invoice_id, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Invoice - def list: - ( - ?Orb::Models::InvoiceListParams | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Invoice] - | ( - amount: String?, - amount_gt: String?, - amount_lt: String?, - cursor: String?, - customer_id: String?, - date_type: Orb::Models::InvoiceListParams::date_type?, - due_date: Date?, - due_date_window: String?, - due_date_gt: Date?, - due_date_lt: Date?, - external_customer_id: String?, - invoice_date_gt: Time?, - invoice_date_gte: Time?, - invoice_date_lt: Time?, - invoice_date_lte: Time?, - is_recurring: bool?, - limit: Integer, - status: ::Array[Orb::Models::InvoiceListParams::status]?, - subscription_id: String?, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Invoice] + def list: ( + ?amount: String?, + ?amount_gt: String?, + ?amount_lt: String?, + ?cursor: String?, + ?customer_id: String?, + ?date_type: Orb::Models::InvoiceListParams::date_type?, + ?due_date: Date?, + ?due_date_window: String?, + ?due_date_gt: Date?, + ?due_date_lt: Date?, + ?external_customer_id: String?, + ?invoice_date_gt: Time?, + ?invoice_date_gte: Time?, + ?invoice_date_lt: Time?, + ?invoice_date_lte: Time?, + ?is_recurring: bool?, + ?limit: Integer, + ?status: ::Array[Orb::Models::InvoiceListParams::status]?, + ?subscription_id: String?, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Invoice] - def fetch: - ( - String invoice_id, - ?Orb::Models::InvoiceFetchParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Invoice - | ( - String invoice_id, - request_options: Orb::request_opts - ) -> Orb::Models::Invoice + def fetch: ( + String invoice_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Invoice - def fetch_upcoming: - ( - Orb::Models::InvoiceFetchUpcomingParams | ::Hash[Symbol, top] params - ) -> Orb::Models::InvoiceFetchUpcomingResponse - | ( - subscription_id: String, - request_options: Orb::request_opts - ) -> Orb::Models::InvoiceFetchUpcomingResponse + def fetch_upcoming: ( + subscription_id: String, + ?request_options: Orb::request_opts + ) -> Orb::Models::InvoiceFetchUpcomingResponse - def issue: - ( - String invoice_id, - ?Orb::Models::InvoiceIssueParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Invoice - | ( - String invoice_id, - synchronous: bool, - request_options: Orb::request_opts - ) -> Orb::Models::Invoice + def issue: ( + String invoice_id, + ?synchronous: bool, + ?request_options: Orb::request_opts + ) -> Orb::Models::Invoice - def mark_paid: - ( - String invoice_id, - Orb::Models::InvoiceMarkPaidParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Invoice - | ( - String invoice_id, - payment_received_date: Date, - external_id: String?, - notes: String?, - request_options: Orb::request_opts - ) -> Orb::Models::Invoice + def mark_paid: ( + String invoice_id, + payment_received_date: Date, + ?external_id: String?, + ?notes: String?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Invoice - def pay: - ( - String invoice_id, - ?Orb::Models::InvoicePayParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Invoice - | ( - String invoice_id, - request_options: Orb::request_opts - ) -> Orb::Models::Invoice + def pay: ( + String invoice_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Invoice - def `void`: - ( - String invoice_id, - ?Orb::Models::InvoiceVoidParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Invoice - | ( - String invoice_id, - request_options: Orb::request_opts - ) -> Orb::Models::Invoice + def `void`: ( + String invoice_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Invoice def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/items.rbs b/sig/orb/resources/items.rbs index 9639ee71..22ec66b9 100644 --- a/sig/orb/resources/items.rbs +++ b/sig/orb/resources/items.rbs @@ -1,46 +1,28 @@ module Orb module Resources class Items - def create: - ( - Orb::Models::ItemCreateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Item - | ( - name: String, - request_options: Orb::request_opts - ) -> Orb::Models::Item + def create: ( + name: String, + ?request_options: Orb::request_opts + ) -> Orb::Models::Item - def update: - ( - String item_id, - ?Orb::Models::ItemUpdateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Item - | ( - String item_id, - external_connections: ::Array[Orb::Models::ItemUpdateParams::ExternalConnection]?, - name: String?, - request_options: Orb::request_opts - ) -> Orb::Models::Item + def update: ( + String item_id, + ?external_connections: ::Array[Orb::Models::ItemUpdateParams::ExternalConnection]?, + ?name: String?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Item - def list: - ( - ?Orb::Models::ItemListParams | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Item] - | ( - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Item] + def list: ( + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Item] - def fetch: - ( - String item_id, - ?Orb::Models::ItemFetchParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Item - | ( - String item_id, - request_options: Orb::request_opts - ) -> Orb::Models::Item + def fetch: ( + String item_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Item def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/metrics.rbs b/sig/orb/resources/metrics.rbs index 2054c10d..d9d63f58 100644 --- a/sig/orb/resources/metrics.rbs +++ b/sig/orb/resources/metrics.rbs @@ -1,53 +1,35 @@ module Orb module Resources class Metrics - def create: - ( - Orb::Models::MetricCreateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::BillableMetric - | ( - description: String?, - item_id: String, - name: String, - sql: String, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> Orb::Models::BillableMetric + def create: ( + description: String?, + item_id: String, + name: String, + sql: String, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> Orb::Models::BillableMetric - def update: - ( - String metric_id, - ?Orb::Models::MetricUpdateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::BillableMetric - | ( - String metric_id, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> Orb::Models::BillableMetric + def update: ( + String metric_id, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> Orb::Models::BillableMetric - def list: - ( - ?Orb::Models::MetricListParams | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::BillableMetric] - | ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::BillableMetric] + def list: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::BillableMetric] - def fetch: - ( - String metric_id, - ?Orb::Models::MetricFetchParams | ::Hash[Symbol, top] params - ) -> Orb::Models::BillableMetric - | ( - String metric_id, - request_options: Orb::request_opts - ) -> Orb::Models::BillableMetric + def fetch: ( + String metric_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::BillableMetric def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/plans.rbs b/sig/orb/resources/plans.rbs index c694f1f9..9684ab65 100644 --- a/sig/orb/resources/plans.rbs +++ b/sig/orb/resources/plans.rbs @@ -3,58 +3,40 @@ module Orb class Plans attr_reader external_plan_id: Orb::Resources::Plans::ExternalPlanID - def create: - ( - Orb::Models::PlanCreateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Plan - | ( - currency: String, - name: String, - prices: ::Array[Orb::Models::PlanCreateParams::price], - default_invoice_memo: String?, - external_plan_id: String?, - metadata: ::Hash[Symbol, String?]?, - net_terms: Integer?, - status: Orb::Models::PlanCreateParams::status, - request_options: Orb::request_opts - ) -> Orb::Models::Plan + def create: ( + currency: String, + name: String, + prices: ::Array[Orb::Models::PlanCreateParams::price], + ?default_invoice_memo: String?, + ?external_plan_id: String?, + ?metadata: ::Hash[Symbol, String?]?, + ?net_terms: Integer?, + ?status: Orb::Models::PlanCreateParams::status, + ?request_options: Orb::request_opts + ) -> Orb::Models::Plan - def update: - ( - String plan_id, - ?Orb::Models::PlanUpdateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Plan - | ( - String plan_id, - external_plan_id: String?, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> Orb::Models::Plan + def update: ( + String plan_id, + ?external_plan_id: String?, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Plan - def list: - ( - ?Orb::Models::PlanListParams | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Plan] - | ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - cursor: String?, - limit: Integer, - status: Orb::Models::PlanListParams::status, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Plan] + def list: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?cursor: String?, + ?limit: Integer, + ?status: Orb::Models::PlanListParams::status, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Plan] - def fetch: - ( - String plan_id, - ?Orb::Models::PlanFetchParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Plan - | ( - String plan_id, - request_options: Orb::request_opts - ) -> Orb::Models::Plan + def fetch: ( + String plan_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Plan def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/plans/external_plan_id.rbs b/sig/orb/resources/plans/external_plan_id.rbs index c292afc1..41ff425b 100644 --- a/sig/orb/resources/plans/external_plan_id.rbs +++ b/sig/orb/resources/plans/external_plan_id.rbs @@ -2,29 +2,17 @@ module Orb module Resources class Plans class ExternalPlanID - def update: - ( - String other_external_plan_id, - ?Orb::Models::Plans::ExternalPlanIDUpdateParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Plan - | ( - String other_external_plan_id, - external_plan_id: String?, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> Orb::Models::Plan + def update: ( + String other_external_plan_id, + ?external_plan_id: String?, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Plan - def fetch: - ( - String external_plan_id, - ?Orb::Models::Plans::ExternalPlanIDFetchParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::Plan - | ( - String external_plan_id, - request_options: Orb::request_opts - ) -> Orb::Models::Plan + def fetch: ( + String external_plan_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Plan def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/prices.rbs b/sig/orb/resources/prices.rbs index 0ef3b212..a0d0dc75 100644 --- a/sig/orb/resources/prices.rbs +++ b/sig/orb/resources/prices.rbs @@ -3,102 +3,79 @@ module Orb class Prices attr_reader external_price_id: Orb::Resources::Prices::ExternalPriceID - def create: - ( - Orb::Models::PriceCreateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::price - | ( - cadence: Orb::Models::PriceCreateParams::cadence, - currency: String, - item_id: String, - model_type: Orb::Models::PriceCreateParams::model_type, - name: String, - unit_config: Orb::Models::PriceCreateParams::UnitConfig, - 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: ::Hash[Symbol, top], - tiered_package_config: ::Hash[Symbol, top], - grouped_tiered_config: ::Hash[Symbol, top], - max_group_tiered_package_config: ::Hash[Symbol, top], - tiered_with_minimum_config: ::Hash[Symbol, top], - package_with_allocation_config: ::Hash[Symbol, top], - tiered_package_with_minimum_config: ::Hash[Symbol, top], - unit_with_percent_config: ::Hash[Symbol, top], - tiered_with_proration_config: ::Hash[Symbol, top], - unit_with_proration_config: ::Hash[Symbol, top], - grouped_allocation_config: ::Hash[Symbol, top], - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], - grouped_with_metered_minimum_config: ::Hash[Symbol, top], - matrix_with_display_name_config: ::Hash[Symbol, top], - bulk_with_proration_config: ::Hash[Symbol, top], - grouped_tiered_package_config: ::Hash[Symbol, top], - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], - cumulative_grouped_bulk_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::Models::PriceCreateParams::BillingCycleConfiguration?, - conversion_rate: Float?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> Orb::Models::price + def create: ( + cadence: Orb::Models::PriceCreateParams::cadence, + currency: String, + item_id: String, + model_type: Orb::Models::PriceCreateParams::model_type, + name: String, + unit_config: Orb::Models::PriceCreateParams::UnitConfig, + 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: ::Hash[Symbol, top], + tiered_package_config: ::Hash[Symbol, top], + grouped_tiered_config: ::Hash[Symbol, top], + max_group_tiered_package_config: ::Hash[Symbol, top], + tiered_with_minimum_config: ::Hash[Symbol, top], + package_with_allocation_config: ::Hash[Symbol, top], + tiered_package_with_minimum_config: ::Hash[Symbol, top], + unit_with_percent_config: ::Hash[Symbol, top], + tiered_with_proration_config: ::Hash[Symbol, top], + unit_with_proration_config: ::Hash[Symbol, top], + grouped_allocation_config: ::Hash[Symbol, top], + grouped_with_prorated_minimum_config: ::Hash[Symbol, top], + grouped_with_metered_minimum_config: ::Hash[Symbol, top], + matrix_with_display_name_config: ::Hash[Symbol, top], + bulk_with_proration_config: ::Hash[Symbol, top], + grouped_tiered_package_config: ::Hash[Symbol, top], + scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], + cumulative_grouped_bulk_config: ::Hash[Symbol, top], + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::Models::PriceCreateParams::BillingCycleConfiguration?, + ?conversion_rate: Float?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::Models::PriceCreateParams::InvoicingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> Orb::Models::price - def update: - ( - String price_id, - ?Orb::Models::PriceUpdateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::price - | ( - String price_id, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> Orb::Models::price + def update: ( + String price_id, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> Orb::Models::price - def list: - ( - ?Orb::Models::PriceListParams | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::price] - | ( - cursor: String?, - limit: Integer, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::price] + def list: ( + ?cursor: String?, + ?limit: Integer, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::price] - def evaluate: - ( - String price_id, - Orb::Models::PriceEvaluateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::PriceEvaluateResponse - | ( - String price_id, - timeframe_end: Time, - timeframe_start: Time, - customer_id: String?, - external_customer_id: String?, - filter: String?, - grouping_keys: ::Array[String], - request_options: Orb::request_opts - ) -> Orb::Models::PriceEvaluateResponse + def evaluate: ( + String price_id, + timeframe_end: Time, + timeframe_start: Time, + ?customer_id: String?, + ?external_customer_id: String?, + ?filter: String?, + ?grouping_keys: ::Array[String], + ?request_options: Orb::request_opts + ) -> Orb::Models::PriceEvaluateResponse - def fetch: - ( - String price_id, - ?Orb::Models::PriceFetchParams | ::Hash[Symbol, top] params - ) -> Orb::Models::price - | ( - String price_id, - request_options: Orb::request_opts - ) -> Orb::Models::price + def fetch: ( + String price_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::price def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/prices/external_price_id.rbs b/sig/orb/resources/prices/external_price_id.rbs index d09e564e..805fb5ed 100644 --- a/sig/orb/resources/prices/external_price_id.rbs +++ b/sig/orb/resources/prices/external_price_id.rbs @@ -2,28 +2,16 @@ module Orb module Resources class Prices class ExternalPriceID - def update: - ( - String external_price_id, - ?Orb::Models::Prices::ExternalPriceIDUpdateParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::price - | ( - String external_price_id, - metadata: ::Hash[Symbol, String?]?, - request_options: Orb::request_opts - ) -> Orb::Models::price + def update: ( + String external_price_id, + ?metadata: ::Hash[Symbol, String?]?, + ?request_options: Orb::request_opts + ) -> Orb::Models::price - def fetch: - ( - String external_price_id, - ?Orb::Models::Prices::ExternalPriceIDFetchParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::price - | ( - String external_price_id, - request_options: Orb::request_opts - ) -> Orb::Models::price + def fetch: ( + String external_price_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::price def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/subscriptions.rbs b/sig/orb/resources/subscriptions.rbs index d3f1243a..18659c8d 100644 --- a/sig/orb/resources/subscriptions.rbs +++ b/sig/orb/resources/subscriptions.rbs @@ -1,281 +1,192 @@ module Orb module Resources class Subscriptions - def create: - ( - ?Orb::Models::SubscriptionCreateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::SubscriptionCreateResponse - | ( - add_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]?, - add_prices: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice]?, - align_billing_with_subscription_start_date: bool, - auto_collection: bool?, - aws_region: String?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration?, - coupon_redemption_code: String?, - credits_overage_rate: Float?, - customer_id: String?, - default_invoice_memo: String?, - end_date: Time?, - external_customer_id: String?, - external_marketplace: Orb::Models::SubscriptionCreateParams::external_marketplace?, - external_marketplace_reporting_id: String?, - external_plan_id: String?, - filter: String?, - initial_phase_order: Integer?, - invoicing_threshold: String?, - metadata: ::Hash[Symbol, String?]?, - net_terms: Integer?, - per_credit_overage_amount: Float?, - plan_id: String?, - plan_version_number: Integer?, - price_overrides: ::Array[top]?, - remove_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment]?, - remove_prices: ::Array[Orb::Models::SubscriptionCreateParams::RemovePrice]?, - replace_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment]?, - replace_prices: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice]?, - start_date: Time?, - trial_duration_days: Integer?, - usage_customer_ids: ::Array[String]?, - request_options: Orb::request_opts - ) -> Orb::Models::SubscriptionCreateResponse - - def update: - ( - String subscription_id, - ?Orb::Models::SubscriptionUpdateParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Subscription - | ( - String subscription_id, - auto_collection: bool?, - default_invoice_memo: String?, - invoicing_threshold: String?, - metadata: ::Hash[Symbol, String?]?, - net_terms: Integer?, - request_options: Orb::request_opts - ) -> Orb::Models::Subscription - - def list: - ( - ?Orb::Models::SubscriptionListParams | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::Subscription] - | ( - created_at_gt: Time?, - created_at_gte: Time?, - created_at_lt: Time?, - created_at_lte: Time?, - cursor: String?, - customer_id: ::Array[String]?, - external_customer_id: ::Array[String]?, - limit: Integer, - status: Orb::Models::SubscriptionListParams::status?, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::Subscription] - - def cancel: - ( - String subscription_id, - Orb::Models::SubscriptionCancelParams | ::Hash[Symbol, top] params - ) -> Orb::Models::SubscriptionCancelResponse - | ( - String subscription_id, - cancel_option: Orb::Models::SubscriptionCancelParams::cancel_option, - allow_invoice_credit_or_void: bool?, - cancellation_date: Time?, - request_options: Orb::request_opts - ) -> Orb::Models::SubscriptionCancelResponse - - def fetch: - ( - String subscription_id, - ?Orb::Models::SubscriptionFetchParams | ::Hash[Symbol, top] params - ) -> Orb::Models::Subscription - | ( - String subscription_id, - request_options: Orb::request_opts - ) -> Orb::Models::Subscription - - def fetch_costs: - ( - String subscription_id, - ?Orb::Models::SubscriptionFetchCostsParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::SubscriptionFetchCostsResponse - | ( - String subscription_id, - currency: String?, - timeframe_end: Time?, - timeframe_start: Time?, - view_mode: Orb::Models::SubscriptionFetchCostsParams::view_mode?, - request_options: Orb::request_opts - ) -> Orb::Models::SubscriptionFetchCostsResponse - - def fetch_schedule: - ( - String subscription_id, - ?Orb::Models::SubscriptionFetchScheduleParams - | ::Hash[Symbol, top] params - ) -> Orb::Page[Orb::Models::SubscriptionFetchScheduleResponse] - | ( - String subscription_id, - cursor: String?, - limit: Integer, - start_date_gt: Time?, - start_date_gte: Time?, - start_date_lt: Time?, - start_date_lte: Time?, - request_options: Orb::request_opts - ) -> Orb::Page[Orb::Models::SubscriptionFetchScheduleResponse] - - def fetch_usage: - ( - String subscription_id, - ?Orb::Models::SubscriptionFetchUsageParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::subscription_usage - | ( - String subscription_id, - billable_metric_id: String?, - first_dimension_key: String?, - first_dimension_value: String?, - granularity: Orb::Models::SubscriptionFetchUsageParams::granularity?, - group_by: String?, - second_dimension_key: String?, - second_dimension_value: String?, - timeframe_end: Time?, - timeframe_start: Time?, - view_mode: Orb::Models::SubscriptionFetchUsageParams::view_mode?, - request_options: Orb::request_opts - ) -> Orb::Models::subscription_usage - - def price_intervals: - ( - String subscription_id, - ?Orb::Models::SubscriptionPriceIntervalsParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::SubscriptionPriceIntervalsResponse - | ( - String subscription_id, - add: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add], - add_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], - allow_invoice_credit_or_void: bool?, - edit: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit], - edit_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment], - request_options: Orb::request_opts - ) -> Orb::Models::SubscriptionPriceIntervalsResponse - - def schedule_plan_change: - ( - String subscription_id, - Orb::Models::SubscriptionSchedulePlanChangeParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::SubscriptionSchedulePlanChangeResponse - | ( - String subscription_id, - change_option: Orb::Models::SubscriptionSchedulePlanChangeParams::change_option, - add_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment]?, - add_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice]?, - align_billing_with_plan_change_date: bool?, - auto_collection: bool?, - billing_cycle_alignment: Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment?, - billing_cycle_anchor_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration?, - change_date: Time?, - coupon_redemption_code: String?, - credits_overage_rate: Float?, - default_invoice_memo: String?, - external_plan_id: String?, - filter: String?, - initial_phase_order: Integer?, - invoicing_threshold: String?, - net_terms: Integer?, - per_credit_overage_amount: Float?, - plan_id: String?, - plan_version_number: Integer?, - price_overrides: ::Array[top]?, - remove_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment]?, - remove_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice]?, - replace_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]?, - replace_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice]?, - trial_duration_days: Integer?, - usage_customer_ids: ::Array[String]?, - request_options: Orb::request_opts - ) -> Orb::Models::SubscriptionSchedulePlanChangeResponse - - def trigger_phase: - ( - String subscription_id, - ?Orb::Models::SubscriptionTriggerPhaseParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::SubscriptionTriggerPhaseResponse - | ( - String subscription_id, - allow_invoice_credit_or_void: bool?, - effective_date: Date?, - request_options: Orb::request_opts - ) -> Orb::Models::SubscriptionTriggerPhaseResponse - - def unschedule_cancellation: - ( - String subscription_id, - ?Orb::Models::SubscriptionUnscheduleCancellationParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::SubscriptionUnscheduleCancellationResponse - | ( - String subscription_id, - request_options: Orb::request_opts - ) -> Orb::Models::SubscriptionUnscheduleCancellationResponse - - def unschedule_fixed_fee_quantity_updates: - ( - String subscription_id, - Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse - | ( - String subscription_id, - price_id: String, - request_options: Orb::request_opts - ) -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse - - def unschedule_pending_plan_changes: - ( - String subscription_id, - ?Orb::Models::SubscriptionUnschedulePendingPlanChangesParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse - | ( - String subscription_id, - request_options: Orb::request_opts - ) -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse - - def update_fixed_fee_quantity: - ( - String subscription_id, - Orb::Models::SubscriptionUpdateFixedFeeQuantityParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse - | ( - String subscription_id, - price_id: String, - quantity: Float, - allow_invoice_credit_or_void: bool?, - change_option: Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::change_option, - effective_date: Date?, - request_options: Orb::request_opts - ) -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse - - def update_trial: - ( - String subscription_id, - Orb::Models::SubscriptionUpdateTrialParams - | ::Hash[Symbol, top] params - ) -> Orb::Models::SubscriptionUpdateTrialResponse - | ( - String subscription_id, - trial_end_date: Orb::Models::SubscriptionUpdateTrialParams::trial_end_date, - shift: bool, - request_options: Orb::request_opts - ) -> Orb::Models::SubscriptionUpdateTrialResponse + def create: ( + ?add_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::AddAdjustment]?, + ?add_prices: ::Array[Orb::Models::SubscriptionCreateParams::AddPrice]?, + ?align_billing_with_subscription_start_date: bool, + ?auto_collection: bool?, + ?aws_region: String?, + ?billing_cycle_anchor_configuration: Orb::Models::SubscriptionCreateParams::BillingCycleAnchorConfiguration?, + ?coupon_redemption_code: String?, + ?credits_overage_rate: Float?, + ?customer_id: String?, + ?default_invoice_memo: String?, + ?end_date: Time?, + ?external_customer_id: String?, + ?external_marketplace: Orb::Models::SubscriptionCreateParams::external_marketplace?, + ?external_marketplace_reporting_id: String?, + ?external_plan_id: String?, + ?filter: String?, + ?initial_phase_order: Integer?, + ?invoicing_threshold: String?, + ?metadata: ::Hash[Symbol, String?]?, + ?net_terms: Integer?, + ?per_credit_overage_amount: Float?, + ?plan_id: String?, + ?plan_version_number: Integer?, + ?price_overrides: ::Array[top]?, + ?remove_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::RemoveAdjustment]?, + ?remove_prices: ::Array[Orb::Models::SubscriptionCreateParams::RemovePrice]?, + ?replace_adjustments: ::Array[Orb::Models::SubscriptionCreateParams::ReplaceAdjustment]?, + ?replace_prices: ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice]?, + ?start_date: Time?, + ?trial_duration_days: Integer?, + ?usage_customer_ids: ::Array[String]?, + ?request_options: Orb::request_opts + ) -> Orb::Models::SubscriptionCreateResponse + + def update: ( + String subscription_id, + ?auto_collection: bool?, + ?default_invoice_memo: String?, + ?invoicing_threshold: String?, + ?metadata: ::Hash[Symbol, String?]?, + ?net_terms: Integer?, + ?request_options: Orb::request_opts + ) -> Orb::Models::Subscription + + def list: ( + ?created_at_gt: Time?, + ?created_at_gte: Time?, + ?created_at_lt: Time?, + ?created_at_lte: Time?, + ?cursor: String?, + ?customer_id: ::Array[String]?, + ?external_customer_id: ::Array[String]?, + ?limit: Integer, + ?status: Orb::Models::SubscriptionListParams::status?, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::Subscription] + + def cancel: ( + String subscription_id, + cancel_option: Orb::Models::SubscriptionCancelParams::cancel_option, + ?allow_invoice_credit_or_void: bool?, + ?cancellation_date: Time?, + ?request_options: Orb::request_opts + ) -> Orb::Models::SubscriptionCancelResponse + + def fetch: ( + String subscription_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::Subscription + + def fetch_costs: ( + String subscription_id, + ?currency: String?, + ?timeframe_end: Time?, + ?timeframe_start: Time?, + ?view_mode: Orb::Models::SubscriptionFetchCostsParams::view_mode?, + ?request_options: Orb::request_opts + ) -> Orb::Models::SubscriptionFetchCostsResponse + + def fetch_schedule: ( + String subscription_id, + ?cursor: String?, + ?limit: Integer, + ?start_date_gt: Time?, + ?start_date_gte: Time?, + ?start_date_lt: Time?, + ?start_date_lte: Time?, + ?request_options: Orb::request_opts + ) -> Orb::Page[Orb::Models::SubscriptionFetchScheduleResponse] + + def fetch_usage: ( + String subscription_id, + ?billable_metric_id: String?, + ?first_dimension_key: String?, + ?first_dimension_value: String?, + ?granularity: Orb::Models::SubscriptionFetchUsageParams::granularity?, + ?group_by: String?, + ?second_dimension_key: String?, + ?second_dimension_value: String?, + ?timeframe_end: Time?, + ?timeframe_start: Time?, + ?view_mode: Orb::Models::SubscriptionFetchUsageParams::view_mode?, + ?request_options: Orb::request_opts + ) -> Orb::Models::subscription_usage + + def price_intervals: ( + String subscription_id, + ?add: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add], + ?add_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment], + ?allow_invoice_credit_or_void: bool?, + ?edit: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Edit], + ?edit_adjustments: ::Array[Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment], + ?request_options: Orb::request_opts + ) -> Orb::Models::SubscriptionPriceIntervalsResponse + + def schedule_plan_change: ( + String subscription_id, + change_option: Orb::Models::SubscriptionSchedulePlanChangeParams::change_option, + ?add_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddAdjustment]?, + ?add_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice]?, + ?align_billing_with_plan_change_date: bool?, + ?auto_collection: bool?, + ?billing_cycle_alignment: Orb::Models::SubscriptionSchedulePlanChangeParams::billing_cycle_alignment?, + ?billing_cycle_anchor_configuration: Orb::Models::SubscriptionSchedulePlanChangeParams::BillingCycleAnchorConfiguration?, + ?change_date: Time?, + ?coupon_redemption_code: String?, + ?credits_overage_rate: Float?, + ?default_invoice_memo: String?, + ?external_plan_id: String?, + ?filter: String?, + ?initial_phase_order: Integer?, + ?invoicing_threshold: String?, + ?net_terms: Integer?, + ?per_credit_overage_amount: Float?, + ?plan_id: String?, + ?plan_version_number: Integer?, + ?price_overrides: ::Array[top]?, + ?remove_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemoveAdjustment]?, + ?remove_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::RemovePrice]?, + ?replace_adjustments: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment]?, + ?replace_prices: ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice]?, + ?trial_duration_days: Integer?, + ?usage_customer_ids: ::Array[String]?, + ?request_options: Orb::request_opts + ) -> Orb::Models::SubscriptionSchedulePlanChangeResponse + + def trigger_phase: ( + String subscription_id, + ?allow_invoice_credit_or_void: bool?, + ?effective_date: Date?, + ?request_options: Orb::request_opts + ) -> Orb::Models::SubscriptionTriggerPhaseResponse + + def unschedule_cancellation: ( + String subscription_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::SubscriptionUnscheduleCancellationResponse + + def unschedule_fixed_fee_quantity_updates: ( + String subscription_id, + price_id: String, + ?request_options: Orb::request_opts + ) -> Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse + + def unschedule_pending_plan_changes: ( + String subscription_id, + ?request_options: Orb::request_opts + ) -> Orb::Models::SubscriptionUnschedulePendingPlanChangesResponse + + def update_fixed_fee_quantity: ( + String subscription_id, + price_id: String, + quantity: Float, + ?allow_invoice_credit_or_void: bool?, + ?change_option: Orb::Models::SubscriptionUpdateFixedFeeQuantityParams::change_option, + ?effective_date: Date?, + ?request_options: Orb::request_opts + ) -> Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse + + def update_trial: ( + String subscription_id, + trial_end_date: Orb::Models::SubscriptionUpdateTrialParams::trial_end_date, + ?shift: bool, + ?request_options: Orb::request_opts + ) -> Orb::Models::SubscriptionUpdateTrialResponse def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/resources/top_level.rbs b/sig/orb/resources/top_level.rbs index 52df3370..f55dc99b 100644 --- a/sig/orb/resources/top_level.rbs +++ b/sig/orb/resources/top_level.rbs @@ -1,13 +1,9 @@ module Orb module Resources class TopLevel - def ping: - ( - ?Orb::Models::TopLevelPingParams | ::Hash[Symbol, top] params - ) -> Orb::Models::TopLevelPingResponse - | ( - request_options: Orb::request_opts - ) -> Orb::Models::TopLevelPingResponse + def ping: ( + ?request_options: Orb::request_opts + ) -> Orb::Models::TopLevelPingResponse def initialize: (client: Orb::Client) -> void end diff --git a/sig/orb/util.rbs b/sig/orb/util.rbs index 046d22f4..0050a9a6 100644 --- a/sig/orb/util.rbs +++ b/sig/orb/util.rbs @@ -20,12 +20,12 @@ module Orb OMIT: top - def self?.deep_merge_lr: (top lhs, top rhs, concat: bool) -> top + def self?.deep_merge_lr: (top lhs, top rhs, ?concat: bool) -> top def self?.deep_merge: ( *::Array[top] values, - sentinel: top?, - concat: bool + ?sentinel: top?, + ?concat: bool ) -> top def self?.dig: ( @@ -102,12 +102,12 @@ module Orb def self?.decode_content: ( ::Hash[String, String] headers, stream: Enumerable[String], - suppress_error: bool + ?suppress_error: bool ) -> top def self?.fused_enum: ( Enumerable[top] enum, - external: bool + ?external: bool ) { -> void } -> Enumerable[top] diff --git a/sig/orb/version.rbs b/sig/orb/version.rbs index 08bca4b6..856d6549 100644 --- a/sig/orb/version.rbs +++ b/sig/orb/version.rbs @@ -1,3 +1,3 @@ module Orb - VERSION: "0.1.0-alpha.27" + VERSION: "0.1.0-alpha.28" end diff --git a/sorbet/config b/sorbet/config new file mode 100644 index 00000000..538c1528 --- /dev/null +++ b/sorbet/config @@ -0,0 +1,2 @@ +--dir=rbi +--ignore=test/ diff --git a/test/orb/base_model_test.rb b/test/orb/base_model_test.rb index 111ec614..334cf60d 100644 --- a/test/orb/base_model_test.rb +++ b/test/orb/base_model_test.rb @@ -3,7 +3,9 @@ require_relative "test_helper" class Orb::Test::BaseModelTest < Minitest::Test - class E1 < Orb::Enum + module E1 + extend Orb::Enum + A = :a B = :b end @@ -242,13 +244,17 @@ class M3 < M1 optional :b, E1, api_name: :renamed_again end - class U1 < Orb::Union + module U1 + extend Orb::Union + discriminator :type variant :a, M1 variant :b, M3 end - class U2 < Orb::Union + module U2 + extend Orb::Union + variant A1 variant A3 end @@ -330,12 +336,16 @@ def test_basic_const end end - class E2 < Orb::Enum + module E2 + extend Orb::Enum + A = :a B = :b end - class U3 < Orb::Union + module U3 + extend Orb::Union + discriminator :type variant :a, M1 variant :b, M3 @@ -353,7 +363,9 @@ def test_basic_eql assert_equal(U1, U3) end - class U4 < Orb::Union + module U4 + extend Orb::Union + variant :a, const: :a variant :b, const: :b end diff --git a/test/orb/resources/alerts_test.rb b/test/orb/resources/alerts_test.rb index 48e8d9c3..81de7691 100644 --- a/test/orb/resources/alerts_test.rb +++ b/test/orb/resources/alerts_test.rb @@ -59,6 +59,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Alert end @@ -80,11 +82,8 @@ def test_list end def test_create_for_customer_required_params - response = @orb.alerts.create_for_customer( - "customer_id", - currency: "currency", - type: :credit_balance_depleted - ) + response = + @orb.alerts.create_for_customer("customer_id", currency: "currency", type: :credit_balance_depleted) assert_pattern do response => Orb::Models::Alert @@ -107,11 +106,12 @@ def test_create_for_customer_required_params end def test_create_for_external_customer_required_params - response = @orb.alerts.create_for_external_customer( - "external_customer_id", - currency: "currency", - type: :credit_balance_depleted - ) + response = + @orb.alerts.create_for_external_customer( + "external_customer_id", + currency: "currency", + type: :credit_balance_depleted + ) assert_pattern do response => Orb::Models::Alert @@ -134,11 +134,8 @@ def test_create_for_external_customer_required_params end def test_create_for_subscription_required_params - response = @orb.alerts.create_for_subscription( - "subscription_id", - thresholds: [{value: 0}], - type: :usage_exceeded - ) + response = + @orb.alerts.create_for_subscription("subscription_id", thresholds: [{value: 0}], type: :usage_exceeded) assert_pattern do response => Orb::Models::Alert diff --git a/test/orb/resources/coupons/subscriptions_test.rb b/test/orb/resources/coupons/subscriptions_test.rb index 3a57292a..64b7ee61 100644 --- a/test/orb/resources/coupons/subscriptions_test.rb +++ b/test/orb/resources/coupons/subscriptions_test.rb @@ -11,6 +11,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Subscription end diff --git a/test/orb/resources/coupons_test.rb b/test/orb/resources/coupons_test.rb index c45addaa..250bb784 100644 --- a/test/orb/resources/coupons_test.rb +++ b/test/orb/resources/coupons_test.rb @@ -4,10 +4,11 @@ class Orb::Test::Resources::CouponsTest < Orb::Test::ResourceTest def test_create_required_params - response = @orb.coupons.create( - discount: {discount_type: :percentage, percentage_discount: 0}, - redemption_code: "HALFOFF" - ) + response = + @orb.coupons.create( + discount: {discount_type: :percentage, percentage_discount: 0}, + redemption_code: "HALFOFF" + ) assert_pattern do response => Orb::Models::Coupon @@ -34,6 +35,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Coupon end diff --git a/test/orb/resources/credit_notes_test.rb b/test/orb/resources/credit_notes_test.rb index 00a9009f..6e56ef96 100644 --- a/test/orb/resources/credit_notes_test.rb +++ b/test/orb/resources/credit_notes_test.rb @@ -4,14 +4,8 @@ class Orb::Test::Resources::CreditNotesTest < Orb::Test::ResourceTest def test_create_required_params - response = @orb.credit_notes.create( - line_items: [ - { - amount: "amount", - invoice_line_item_id: "4khy3nwzktxv7" - } - ] - ) + response = + @orb.credit_notes.create(line_items: [{amount: "amount", invoice_line_item_id: "4khy3nwzktxv7"}]) assert_pattern do response => Orb::Models::CreditNote @@ -47,6 +41,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::CreditNote end diff --git a/test/orb/resources/customers/balance_transactions_test.rb b/test/orb/resources/customers/balance_transactions_test.rb index d46bf030..6773beed 100644 --- a/test/orb/resources/customers/balance_transactions_test.rb +++ b/test/orb/resources/customers/balance_transactions_test.rb @@ -34,6 +34,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Customers::BalanceTransactionListResponse end diff --git a/test/orb/resources/customers/credits/ledger_test.rb b/test/orb/resources/customers/credits/ledger_test.rb index ce46f445..f852150f 100644 --- a/test/orb/resources/customers/credits/ledger_test.rb +++ b/test/orb/resources/customers/credits/ledger_test.rb @@ -11,6 +11,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Customers::Credits::LedgerListResponse end @@ -148,12 +150,13 @@ def test_list end def test_create_entry_required_params - response = @orb.customers.credits.ledger.create_entry( - "customer_id", - entry_type: :expiration_change, - expiry_date: "2019-12-27T18:11:19.117Z", - target_expiry_date: "2019-12-27" - ) + response = + @orb.customers.credits.ledger.create_entry( + "customer_id", + entry_type: :expiration_change, + expiry_date: "2019-12-27T18:11:19.117Z", + target_expiry_date: "2019-12-27" + ) assert_pattern do response => Orb::Models::Customers::Credits::LedgerCreateEntryResponse @@ -292,12 +295,13 @@ def test_create_entry_required_params end def test_create_entry_by_external_id_required_params - response = @orb.customers.credits.ledger.create_entry_by_external_id( - "external_customer_id", - entry_type: :expiration_change, - expiry_date: "2019-12-27T18:11:19.117Z", - target_expiry_date: "2019-12-27" - ) + response = + @orb.customers.credits.ledger.create_entry_by_external_id( + "external_customer_id", + entry_type: :expiration_change, + expiry_date: "2019-12-27T18:11:19.117Z", + target_expiry_date: "2019-12-27" + ) assert_pattern do response => Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse @@ -443,6 +447,8 @@ def test_list_by_external_id end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Customers::Credits::LedgerListByExternalIDResponse end diff --git a/test/orb/resources/customers/credits/top_ups_test.rb b/test/orb/resources/customers/credits/top_ups_test.rb index d53d6512..3052be3f 100644 --- a/test/orb/resources/customers/credits/top_ups_test.rb +++ b/test/orb/resources/customers/credits/top_ups_test.rb @@ -4,14 +4,15 @@ class Orb::Test::Resources::Customers::Credits::TopUpsTest < Orb::Test::ResourceTest def test_create_required_params - response = @orb.customers.credits.top_ups.create( - "customer_id", - amount: "amount", - currency: "currency", - invoice_settings: {auto_collection: true, net_terms: 0}, - per_unit_cost_basis: "per_unit_cost_basis", - threshold: "threshold" - ) + response = + @orb.customers.credits.top_ups.create( + "customer_id", + amount: "amount", + currency: "currency", + invoice_settings: {auto_collection: true, net_terms: 0}, + per_unit_cost_basis: "per_unit_cost_basis", + threshold: "threshold" + ) assert_pattern do response => Orb::Models::Customers::Credits::TopUpCreateResponse @@ -39,6 +40,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Customers::Credits::TopUpListResponse end @@ -66,14 +69,15 @@ def test_delete_required_params end def test_create_by_external_id_required_params - response = @orb.customers.credits.top_ups.create_by_external_id( - "external_customer_id", - amount: "amount", - currency: "currency", - invoice_settings: {auto_collection: true, net_terms: 0}, - per_unit_cost_basis: "per_unit_cost_basis", - threshold: "threshold" - ) + response = + @orb.customers.credits.top_ups.create_by_external_id( + "external_customer_id", + amount: "amount", + currency: "currency", + invoice_settings: {auto_collection: true, net_terms: 0}, + per_unit_cost_basis: "per_unit_cost_basis", + threshold: "threshold" + ) assert_pattern do response => Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse @@ -94,10 +98,11 @@ def test_create_by_external_id_required_params end def test_delete_by_external_id_required_params - response = @orb.customers.credits.top_ups.delete_by_external_id( - "top_up_id", - external_customer_id: "external_customer_id" - ) + response = + @orb.customers.credits.top_ups.delete_by_external_id( + "top_up_id", + external_customer_id: "external_customer_id" + ) assert_pattern do response => nil @@ -112,6 +117,8 @@ def test_list_by_external_id end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Customers::Credits::TopUpListByExternalIDResponse end diff --git a/test/orb/resources/customers/credits_test.rb b/test/orb/resources/customers/credits_test.rb index 60d0d4c5..83215ec9 100644 --- a/test/orb/resources/customers/credits_test.rb +++ b/test/orb/resources/customers/credits_test.rb @@ -11,6 +11,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Customers::CreditListResponse end @@ -36,6 +38,8 @@ def test_list_by_external_id end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Customers::CreditListByExternalIDResponse end diff --git a/test/orb/resources/customers_test.rb b/test/orb/resources/customers_test.rb index fb7e1fc0..5407b73f 100644 --- a/test/orb/resources/customers_test.rb +++ b/test/orb/resources/customers_test.rb @@ -81,6 +81,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Customer end diff --git a/test/orb/resources/dimensional_price_groups/external_dimensional_price_group_id_test.rb b/test/orb/resources/dimensional_price_groups/external_dimensional_price_group_id_test.rb index 60fb156a..9ba0d8ef 100644 --- a/test/orb/resources/dimensional_price_groups/external_dimensional_price_group_id_test.rb +++ b/test/orb/resources/dimensional_price_groups/external_dimensional_price_group_id_test.rb @@ -4,9 +4,10 @@ class Orb::Test::Resources::DimensionalPriceGroups::ExternalDimensionalPriceGroupIDTest < Orb::Test::ResourceTest def test_retrieve - response = @orb.dimensional_price_groups.external_dimensional_price_group_id.retrieve( - "external_dimensional_price_group_id" - ) + response = + @orb.dimensional_price_groups.external_dimensional_price_group_id.retrieve( + "external_dimensional_price_group_id" + ) assert_pattern do response => Orb::Models::DimensionalPriceGroup diff --git a/test/orb/resources/dimensional_price_groups_test.rb b/test/orb/resources/dimensional_price_groups_test.rb index 80c43956..3160d4e3 100644 --- a/test/orb/resources/dimensional_price_groups_test.rb +++ b/test/orb/resources/dimensional_price_groups_test.rb @@ -4,11 +4,12 @@ class Orb::Test::Resources::DimensionalPriceGroupsTest < Orb::Test::ResourceTest def test_create_required_params - response = @orb.dimensional_price_groups.create( - billable_metric_id: "billable_metric_id", - dimensions: %w[region instance_type], - name: "name" - ) + response = + @orb.dimensional_price_groups.create( + billable_metric_id: "billable_metric_id", + dimensions: %w[region instance_type], + name: "name" + ) assert_pattern do response => Orb::Models::DimensionalPriceGroup @@ -53,6 +54,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::DimensionalPriceGroup end diff --git a/test/orb/resources/events/backfills_test.rb b/test/orb/resources/events/backfills_test.rb index e8756863..233f5e36 100644 --- a/test/orb/resources/events/backfills_test.rb +++ b/test/orb/resources/events/backfills_test.rb @@ -4,10 +4,11 @@ class Orb::Test::Resources::Events::BackfillsTest < Orb::Test::ResourceTest def test_create_required_params - response = @orb.events.backfills.create( - timeframe_end: "2019-12-27T18:11:19.117Z", - timeframe_start: "2019-12-27T18:11:19.117Z" - ) + response = + @orb.events.backfills.create( + timeframe_end: "2019-12-27T18:11:19.117Z", + timeframe_start: "2019-12-27T18:11:19.117Z" + ) assert_pattern do response => Orb::Models::Events::BackfillCreateResponse @@ -38,6 +39,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Events::BackfillListResponse end diff --git a/test/orb/resources/events_test.rb b/test/orb/resources/events_test.rb index bba05c49..731e94fd 100644 --- a/test/orb/resources/events_test.rb +++ b/test/orb/resources/events_test.rb @@ -4,12 +4,13 @@ class Orb::Test::Resources::EventsTest < Orb::Test::ResourceTest def test_update_required_params - response = @orb.events.update( - "event_id", - event_name: "event_name", - properties: {}, - timestamp: "2020-12-09T16:09:53Z" - ) + response = + @orb.events.update( + "event_id", + event_name: "event_name", + properties: {}, + timestamp: "2020-12-09T16:09:53Z" + ) assert_pattern do response => Orb::Models::EventUpdateResponse @@ -37,16 +38,17 @@ def test_deprecate end def test_ingest_required_params - response = @orb.events.ingest( - events: [ - { - event_name: "event_name", - idempotency_key: "idempotency_key", - properties: {}, - timestamp: "2020-12-09T16:09:53Z" - } - ] - ) + response = + @orb.events.ingest( + events: [ + { + event_name: "event_name", + idempotency_key: "idempotency_key", + properties: {}, + timestamp: "2020-12-09T16:09:53Z" + } + ] + ) assert_pattern do response => Orb::Models::EventIngestResponse diff --git a/test/orb/resources/invoice_line_items_test.rb b/test/orb/resources/invoice_line_items_test.rb index 6664a17f..a180705f 100644 --- a/test/orb/resources/invoice_line_items_test.rb +++ b/test/orb/resources/invoice_line_items_test.rb @@ -4,14 +4,15 @@ class Orb::Test::Resources::InvoiceLineItemsTest < Orb::Test::ResourceTest def test_create_required_params - response = @orb.invoice_line_items.create( - amount: "12.00", - end_date: "2023-09-22", - invoice_id: "4khy3nwzktxv7", - name: "Item Name", - quantity: 1, - start_date: "2023-09-22" - ) + response = + @orb.invoice_line_items.create( + amount: "12.00", + end_date: "2023-09-22", + invoice_id: "4khy3nwzktxv7", + name: "Item Name", + quantity: 1, + start_date: "2023-09-22" + ) assert_pattern do response => Orb::Models::InvoiceLineItemCreateResponse diff --git a/test/orb/resources/invoices_test.rb b/test/orb/resources/invoices_test.rb index 8851f159..91ec9f2d 100644 --- a/test/orb/resources/invoices_test.rb +++ b/test/orb/resources/invoices_test.rb @@ -4,22 +4,23 @@ class Orb::Test::Resources::InvoicesTest < Orb::Test::ResourceTest def test_create_required_params - response = @orb.invoices.create( - currency: "USD", - invoice_date: "2019-12-27T18:11:19.117Z", - line_items: [ - { - end_date: "2023-09-22", - item_id: "4khy3nwzktxv7", - model_type: :unit, - name: "Line Item Name", - quantity: 1, - start_date: "2023-09-22", - unit_config: {unit_amount: "unit_amount"} - } - ], - net_terms: 0 - ) + response = + @orb.invoices.create( + currency: "USD", + invoice_date: "2019-12-27T18:11:19.117Z", + line_items: [ + { + end_date: "2023-09-22", + item_id: "4khy3nwzktxv7", + model_type: :unit, + name: "Line Item Name", + quantity: 1, + start_date: "2023-09-22", + unit_config: {unit_amount: "unit_amount"} + } + ], + net_terms: 0 + ) assert_pattern do response => Orb::Models::Invoice @@ -134,6 +135,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Invoice end diff --git a/test/orb/resources/items_test.rb b/test/orb/resources/items_test.rb index 19bdf7a6..ee45dc22 100644 --- a/test/orb/resources/items_test.rb +++ b/test/orb/resources/items_test.rb @@ -45,6 +45,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Item end diff --git a/test/orb/resources/metrics_test.rb b/test/orb/resources/metrics_test.rb index 541db249..941a454a 100644 --- a/test/orb/resources/metrics_test.rb +++ b/test/orb/resources/metrics_test.rb @@ -4,12 +4,13 @@ class Orb::Test::Resources::MetricsTest < Orb::Test::ResourceTest def test_create_required_params - response = @orb.metrics.create( - description: "Sum of bytes downloaded in fast mode", - item_id: "item_id", - name: "Bytes downloaded", - sql: "SELECT sum(bytes_downloaded) FROM events WHERE download_speed = 'fast'" - ) + response = + @orb.metrics.create( + description: "Sum of bytes downloaded in fast mode", + item_id: "item_id", + name: "Bytes downloaded", + sql: "SELECT sum(bytes_downloaded) FROM events WHERE download_speed = 'fast'" + ) assert_pattern do response => Orb::Models::BillableMetric @@ -54,6 +55,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::BillableMetric end diff --git a/test/orb/resources/plans_test.rb b/test/orb/resources/plans_test.rb index 2a5d2310..9e0ab612 100644 --- a/test/orb/resources/plans_test.rb +++ b/test/orb/resources/plans_test.rb @@ -4,19 +4,20 @@ class Orb::Test::Resources::PlansTest < Orb::Test::ResourceTest def test_create_required_params - response = @orb.plans.create( - currency: "currency", - name: "name", - prices: [ - { - cadence: :annual, - item_id: "item_id", - model_type: :unit, - name: "Annual fee", - unit_config: {unit_amount: "unit_amount"} - } - ] - ) + response = + @orb.plans.create( + currency: "currency", + name: "name", + prices: [ + { + cadence: :annual, + item_id: "item_id", + model_type: :unit, + name: "Annual fee", + unit_config: {unit_amount: "unit_amount"} + } + ] + ) assert_pattern do response => Orb::Models::Plan @@ -97,6 +98,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Plan end diff --git a/test/orb/resources/prices_test.rb b/test/orb/resources/prices_test.rb index 4738eb1f..2632969b 100644 --- a/test/orb/resources/prices_test.rb +++ b/test/orb/resources/prices_test.rb @@ -4,14 +4,15 @@ class Orb::Test::Resources::PricesTest < Orb::Test::ResourceTest def test_create_required_params - response = @orb.prices.create( - cadence: :annual, - currency: "currency", - item_id: "item_id", - model_type: :unit, - name: "Annual fee", - unit_config: {unit_amount: "unit_amount"} - ) + response = + @orb.prices.create( + cadence: :annual, + currency: "currency", + item_id: "item_id", + model_type: :unit, + name: "Annual fee", + unit_config: {unit_amount: "unit_amount"} + ) assert_pattern do response => Orb::Models::Price @@ -1566,6 +1567,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Price end @@ -2338,11 +2341,12 @@ def test_list end def test_evaluate_required_params - response = @orb.prices.evaluate( - "price_id", - timeframe_end: "2019-12-27T18:11:19.117Z", - timeframe_start: "2019-12-27T18:11:19.117Z" - ) + response = + @orb.prices.evaluate( + "price_id", + timeframe_end: "2019-12-27T18:11:19.117Z", + timeframe_start: "2019-12-27T18:11:19.117Z" + ) assert_pattern do response => Orb::Models::PriceEvaluateResponse diff --git a/test/orb/resources/subscriptions_test.rb b/test/orb/resources/subscriptions_test.rb index e634e8e1..dda4a156 100644 --- a/test/orb/resources/subscriptions_test.rb +++ b/test/orb/resources/subscriptions_test.rb @@ -87,6 +87,8 @@ def test_list end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::Subscription end @@ -220,6 +222,8 @@ def test_fetch_schedule end row = response.to_enum.first + return if row.nil? + assert_pattern do row => Orb::Models::SubscriptionFetchScheduleResponse end @@ -406,10 +410,8 @@ def test_unschedule_cancellation end def test_unschedule_fixed_fee_quantity_updates_required_params - response = @orb.subscriptions.unschedule_fixed_fee_quantity_updates( - "subscription_id", - price_id: "price_id" - ) + response = + @orb.subscriptions.unschedule_fixed_fee_quantity_updates("subscription_id", price_id: "price_id") assert_pattern do response => Orb::Models::SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse @@ -485,11 +487,8 @@ def test_unschedule_pending_plan_changes end def test_update_fixed_fee_quantity_required_params - response = @orb.subscriptions.update_fixed_fee_quantity( - "subscription_id", - price_id: "price_id", - quantity: 0 - ) + response = + @orb.subscriptions.update_fixed_fee_quantity("subscription_id", price_id: "price_id", quantity: 0) assert_pattern do response => Orb::Models::SubscriptionUpdateFixedFeeQuantityResponse